v0.13.2
Loading...
Searching...
No Matches
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 636 of file std_reac_diff.cpp.

636 {
637 const char param_file[] = "param_file.petsc";
639 try {
640 moab::Core mb_instance;
641 moab::Interface &moab = mb_instance;
642 MoFEM::Core core(moab);
643 DMType dm_name = "DMMOFEM";
644 CHKERR DMRegister_MoFEM(dm_name);
645
646 int order = 1;
647 CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
648 int nb_species = 1;
649 RDProblem reac_diff_problem(mb_instance, core, order, nb_species);
650 CHKERR reac_diff_problem.run_analysis();
651 }
654 return 0;
655}
std::string param_file
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
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)
static char help[]
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

◆ 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.