v0.9.1
Classes | Functions | Variables
elec_phys_2D.cpp File Reference
#include <stdlib.h>
#include <BasicFiniteElements.hpp>
#include <ElecPhysOperators2D.hpp>

Go to the source code of this file.

Classes

struct  Istimulus
 
struct  RhsU
 
struct  DRhsU_u
 
struct  RhsV
 
struct  DRhsV_v
 
struct  RK4
 
struct  RDProblem
 

Functions

int main (int argc, char *argv[])
 

Variables

static char help [] = "...\n\n"
 
const int dim = 2
 
double init_val_u = 0.4
 
double init_val_v = 0.0
 
const double Tol = 1e-9
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 570 of file elec_phys_2D.cpp.

570  {
571  const char param_file[] = "param_file.petsc";
572  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
573  try {
574  moab::Core mb_instance;
575  moab::Interface &moab = mb_instance;
576  MoFEM::Core core(moab);
577  DMType dm_name = "DMMOFEM";
578  CHKERR DMRegister_MoFEM(dm_name);
579 
580  int order = 1;
581  CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
582  RDProblem reac_diff_problem(core, order + 1);
583  CHKERR reac_diff_problem.run_analysis();
584  }
585  CATCH_ERRORS;
587  return 0;
588  }
static char help[]
Definition: elec_phys_2D.cpp:8
Core (interface) class.
Definition: Core.hpp:50
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:51
constexpr int order
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:48
#define CHKERR
Inline error check.
Definition: definitions.h:601
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1791
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:438
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:61

Variable Documentation

◆ dim

const int dim = 2

◆ help

char help[] = "...\n\n"
static

Definition at line 8 of file elec_phys_2D.cpp.

◆ init_val_u

double init_val_u = 0.4

Definition at line 14 of file elec_phys_2D.cpp.

◆ init_val_v

double init_val_v = 0.0

Definition at line 15 of file elec_phys_2D.cpp.

◆ Tol

const double Tol = 1e-9

Definition at line 59 of file elec_phys_2D.cpp.