v0.10.0
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 }

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
Examples
minimal_surface_area.cpp.

Definition at line 158 of file mixed_reac_diff.cpp.

MoFEM::PetscOptionsGetInt
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
Definition: DeprecatedPetsc.hpp:153
MoFEM::Interface
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1943
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:604
param_file
std::string param_file
Definition: DefaultParams.hpp:29
MoFEM::CoreTmp< 0 >::Initialize
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:60
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:48
StdRDOperators::order
const int order
Definition: rd_stdOperators.hpp:28
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:77
RDProblem
Definition: elec_phys_2D.cpp:91
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:100
CATCH_ERRORS
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:441
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1129
help
static char help[]
Definition: mixed_reac_diff.cpp:8