v0.9.1
Classes | Typedefs | Functions | Variables
second_moment_of_inertia.cpp File Reference
#include <MoFEM.hpp>

Go to the source code of this file.

Classes

struct  Example
 
struct  Example::CommonData
 [Common data] More...
 
struct  Example::OpZero
 [Common data] More...
 
struct  Example::OpFirst
 
struct  Example::OpSecond
 

Typedefs

using Element = MoFEM::VolumeElementForcesAndSourcesCoreBase
 
using OpElement = Element::UserDataOperator
 
using EntData = DataForcesAndSourcesCore::EntData
 

Functions

int main (int argc, char *argv[])
 [Test example] More...
 

Variables

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

Typedef Documentation

◆ Element

Definition at line 30 of file second_moment_of_inertia.cpp.

◆ EntData

Examples
second_moment_of_inertia.cpp.

Definition at line 32 of file second_moment_of_inertia.cpp.

◆ OpElement

Examples
second_moment_of_inertia.cpp.

Definition at line 31 of file second_moment_of_inertia.cpp.

Function Documentation

◆ main()

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

[Test example]

Examples
second_moment_of_inertia.cpp.

Definition at line 254 of file second_moment_of_inertia.cpp.

254  {
255 
256  MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
257 
258  try {
259 
260  //! [Register MoFEM discrete manager in PETSc]
261  DMType dm_name = "DMMOFEM";
262  CHKERR DMRegister_MoFEM(dm_name);
263  //! [Register MoFEM discrete manager in PETSc
264 
265  //! [Create MoAB]
266  moab::Core mb_instance; ///< mesh database
267  moab::Interface &moab = mb_instance; ///< mesh database interface
268  //! [Create MoAB]
269 
270  //! [Create MoFEM]
271  MoFEM::Core core(moab); ///< finite element database
272  MoFEM::Interface &m_field = core; ///< finite element database insterface
273  //! [Create MoFEM]
274 
275  Example ex(m_field);
276  CHKERR ex.runProblem();
277 
278  }
279  CATCH_ERRORS;
280 
282 }
Deprecated interface functions.
static char help[]
Core (interface) class.
Definition: Core.hpp:50
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:51
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:48
#define CHKERR
Inline error check.
Definition: definitions.h:601
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1791
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:438
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:61

Variable Documentation

◆ help

char help[] = "...\n\n"
static
Examples
second_moment_of_inertia.cpp.

Definition at line 28 of file second_moment_of_inertia.cpp.