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

Go to the source code of this file.

Classes

struct  RDProblem
 
struct  KinkFunction
 
struct  DerKinkFunction
 
struct  ExactFunction
 Function. More...
 
struct  ExactFunctionGrad
 Exact gradient. More...
 
struct  ExactFunctionLap
 
struct  ExactFunctionDot
 

Functions

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

Variables

static char help [] = "...\n\n"
 
const double ramp_t = 1.0
 
const double sml = 0.0
 
const double T = M_PI / 2.0
 

Function Documentation

◆ main()

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

Definition at line 706 of file mixed_reac_diff.cpp.

706  {
707  const char param_file[] = "param_file.petsc";
708  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
709  try {
710  moab::Core mb_instance;
711  moab::Interface &moab = mb_instance;
712  MoFEM::Core core(moab);
713  DMType dm_name = "DMMOFEM";
714  CHKERR DMRegister_MoFEM(dm_name);
715 
716  int order = 1;
717  CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
718  int nb_species = 1;
719  RDProblem reac_diff_problem(core, order+1);
720  CHKERR reac_diff_problem.run_analysis(nb_species);
721  }
722  CATCH_ERRORS;
724  return 0;
725 }
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 char help[]
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:61

Variable Documentation

◆ help

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

Definition at line 8 of file mixed_reac_diff.cpp.

◆ ramp_t

const double ramp_t = 1.0

Definition at line 156 of file mixed_reac_diff.cpp.

◆ sml

const double sml = 0.0

Definition at line 157 of file mixed_reac_diff.cpp.

◆ T

const double T = M_PI / 2.0