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 602 of file elec_phys_2D.cpp.

602  {
603  const char param_file[] = "param_file.petsc";
604  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
605  try {
606  moab::Core mb_instance;
607  moab::Interface &moab = mb_instance;
608  MoFEM::Core core(moab);
609  DMType dm_name = "DMMOFEM";
610  CHKERR DMRegister_MoFEM(dm_name);
611 
612  int order = 1;
613  CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
614  RDProblem reac_diff_problem(core, order + 1);
615  CHKERR reac_diff_problem.run_analysis();
616  }
617  CATCH_ERRORS;
619  return 0;
620  }
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
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:48
#define CHKERR
Inline error check.
Definition: definitions.h:602
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
constexpr int order
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1879
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:439
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:67

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.