v0.13.1
Loading...
Searching...
No Matches
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 776 of file mixed_reac_diff.cpp.

776 {
777 const char param_file[] = "param_file.petsc";
779 try {
780 moab::Core mb_instance;
781 moab::Interface &moab = mb_instance;
782 MoFEM::Core core(moab);
783 DMType dm_name = "DMMOFEM";
784 CHKERR DMRegister_MoFEM(dm_name);
785
786 int order = 1;
787 CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
788 int nb_species = 1;
789 RDProblem reac_diff_problem(core, order+1);
790 CHKERR reac_diff_problem.run_analysis(nb_species);
791 }
794 return 0;
795}
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: DMMMoFEM.cpp:47
static char help[]
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

◆ 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