v0.9.2
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 775 of file mixed_reac_diff.cpp.

775  {
776  const char param_file[] = "param_file.petsc";
777  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
778  try {
779  moab::Core mb_instance;
780  moab::Interface &moab = mb_instance;
781  MoFEM::Core core(moab);
782  DMType dm_name = "DMMOFEM";
783  CHKERR DMRegister_MoFEM(dm_name);
784 
785  int order = 1;
786  CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
787  int nb_species = 1;
788  RDProblem reac_diff_problem(core, order+1);
789  CHKERR reac_diff_problem.run_analysis(nb_species);
790  }
791  CATCH_ERRORS;
793  return 0;
794 }
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 char help[]
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:69

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