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

Go to the source code of this file.

Classes

struct  RDProblem
 
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 = 2.0 * M_PI
 

Function Documentation

◆ main()

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

Definition at line 634 of file std_reac_diff.cpp.

634  {
635  const char param_file[] = "param_file.petsc";
636  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
637  try {
638  moab::Core mb_instance;
639  moab::Interface &moab = mb_instance;
640  MoFEM::Core core(moab);
641  DMType dm_name = "DMMOFEM";
642  CHKERR DMRegister_MoFEM(dm_name);
643 
644  int order = 1;
645  CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
646  int nb_species = 1;
647  RDProblem reac_diff_problem(mb_instance, core, order, nb_species);
648  CHKERR reac_diff_problem.run_analysis();
649  }
650  CATCH_ERRORS;
652  return 0;
653 }
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
static char help[]

Variable Documentation

◆ help

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

Definition at line 8 of file std_reac_diff.cpp.

◆ ramp_t

const double ramp_t = 1.0

Definition at line 150 of file std_reac_diff.cpp.

◆ sml

const double sml = 0.0

Definition at line 151 of file std_reac_diff.cpp.

◆ T

const double T = 2.0 * M_PI

Definition at line 152 of file std_reac_diff.cpp.