v0.14.0
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 258 of file poisson_2d_homogeneous.cpp.

258 {
259
260 // Initialisation of MoFEM/PETSc and MOAB data structures
261 const char param_file[] = "param_file.petsc";
263
264 // Error handling
265 try {
266 // Register MoFEM discrete manager in PETSc
267 DMType dm_name = "DMMOFEM";
268 CHKERR DMRegister_MoFEM(dm_name);
269
270 // Create MOAB instance
271 moab::Core mb_instance; // mesh database
272 moab::Interface &moab = mb_instance; // mesh database interface
273
274 // Create MoFEM instance
275 MoFEM::Core core(moab); // finite element database
276 MoFEM::Interface &m_field = core; // finite element interface
277
278 // Run the main analysis
279 Poisson2DHomogeneous poisson_problem(m_field);
280 CHKERR poisson_problem.runProgram();
281 }
283
284 // Finish work: cleaning memory, getting statistics, etc.
286
287 return 0;
288}
std::string param_file
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
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

◆ 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
Initial value:
=
#define EXECUTABLE_DIMENSION
Definition plastic.cpp:13
Examples
poisson_2d_homogeneous.cpp.

Definition at line 15 of file poisson_2d_homogeneous.cpp.