v0.13.2
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
poisson_3d_homogeneous.cpp File Reference
#include <BasicFiniteElements.hpp>
#include <poisson_3d_homogeneous.hpp>

Go to the source code of this file.

Classes

struct  Poisson3DHomogeneous
 

Typedefs

using PostProcVolEle = PostProcBrokenMeshInMoab< VolumeElementForcesAndSourcesCore >
 

Functions

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

Variables

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

Typedef Documentation

◆ PostProcVolEle

Definition at line 16 of file poisson_3d_homogeneous.cpp.

Function Documentation

◆ main()

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

Definition at line 234 of file poisson_3d_homogeneous.cpp.

234 {
235
236 // Initialisation of MoFEM/PETSc and MOAB data structures
237 const char param_file[] = "param_file.petsc";
239
240 // Error handling
241 try {
242 // Register MoFEM discrete manager in PETSc
243 DMType dm_name = "DMMOFEM";
244 CHKERR DMRegister_MoFEM(dm_name);
245
246 // Create MOAB instance
247 moab::Core mb_instance; // mesh database
248 moab::Interface &moab = mb_instance; // mesh database interface
249
250 // Create MoFEM instance
251 MoFEM::Core core(moab); // finite element database
252 MoFEM::Interface &m_field = core; // finite element interface
253
254 // Run the main analysis
255 Poisson3DHomogeneous poisson_problem(m_field);
256 CHKERR poisson_problem.runProgram();
257 }
259
260 // Finish work: cleaning memory, getting statistics, etc.
262
263 return 0;
264}
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
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
Deprecated interface functions.

Variable Documentation

◆ help

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

Definition at line 19 of file poisson_3d_homogeneous.cpp.