v0.16.3
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
poisson_2d_homogeneous.cpp File Reference
#include <poisson_2d_homogeneous.hpp>

Go to the source code of this file.

Classes

struct  Poisson2DHomogeneous
 

Typedefs

using PostProcFaceEle = PostProcBrokenMeshInMoab< DomainEle >
 

Functions

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

Variables

constexpr auto field_name = "U"
 
constexpr int SPACE_DIM
 
static char help [] = "...\n\n"
 

Typedef Documentation

◆ PostProcFaceEle

Definition at line 23 of file poisson_2d_homogeneous.cpp.

Function Documentation

◆ main()

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

[Run program]

[Main]

Definition at line 376 of file poisson_2d_homogeneous.cpp.

376 {
377
378 // Initialisation of MoFEM/PETSc and MOAB data structures
379 const char param_file[] = "param_file.petsc";
380 MoFEM::Core::Initialize(&argc, &argv, param_file, help);
381
382 // Error handling
383 try {
384 // Register MoFEM discrete manager in PETSc
385 DMType dm_name = "DMMOFEM";
386 CHKERR DMRegister_MoFEM(dm_name);
387
388 // Create MOAB instance
389 moab::Core mb_instance; // mesh database
390 moab::Interface &moab = mb_instance; // mesh database interface
391
392 // Create MoFEM instance
393 MoFEM::Core core(moab); // finite element database
394 MoFEM::Interface &m_field = core; // finite element interface
395
396 // Run the main analysis
397 Poisson2DHomogeneous poisson_problem(m_field);
398 CHKERR poisson_problem.runProgram();
399 }
401
402 // Finish work: cleaning memory, getting statistics, etc.
404
405 return 0;
406}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition DMMoFEM.cpp:43
static char help[]
Core (interface) class.
Definition Core.hpp:83
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition Core.cpp:68
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition Core.cpp:123
Deprecated interface functions.

Variable Documentation

◆ field_name

constexpr auto field_name = "U"
constexpr

◆ help

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

Definition at line 25 of file poisson_2d_homogeneous.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr