v0.14.0
Loading...
Searching...
No Matches
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 603 of file elec_phys_2D.cpp.

603 {
604 const char param_file[] = "param_file.petsc";
606 try {
607 moab::Core mb_instance;
608 moab::Interface &moab = mb_instance;
609 MoFEM::Core core(moab);
610 DMType dm_name = "DMMOFEM";
611 CHKERR DMRegister_MoFEM(dm_name);
612
613 int order = 1;
614 CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
615 RDProblem reac_diff_problem(core, order + 1);
616 CHKERR reac_diff_problem.run_analysis();
617 }
620 return 0;
621 }
std::string param_file
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
constexpr int order
static char help[]
Definition: elec_phys_2D.cpp:8
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:47
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
Core (interface) class.
Definition: Core.hpp:82
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:72
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112

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.