v0.9.1
Classes | Typedefs | Functions | Variables
basic_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"
 
FTensor::Index< 'i', 3 > i
 
FTensor::Index< 'j', 3 > j
 

Typedef Documentation

◆ Element

Definition at line 32 of file basic_moment_of_inertia.cpp.

◆ EntData

Examples
basic_moment_of_inertia.cpp.

Definition at line 34 of file basic_moment_of_inertia.cpp.

◆ OpElement

Examples
basic_moment_of_inertia.cpp.

Definition at line 33 of file basic_moment_of_inertia.cpp.

Function Documentation

◆ main()

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

[Test example]

Examples
basic_moment_of_inertia.cpp.

Definition at line 286 of file basic_moment_of_inertia.cpp.

286  {
287 
288  MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
289 
290  try {
291 
292  //! [Register MoFEM discrete manager in PETSc]
293  DMType dm_name = "DMMOFEM";
294  CHKERR DMRegister_MoFEM(dm_name);
295  //! [Register MoFEM discrete manager in PETSc
296 
297  //! [Create MoAB]
298  moab::Core mb_instance; ///< mesh database
299  moab::Interface &moab = mb_instance; ///< mesh database interface
300  //! [Create MoAB]
301 
302  //! [Create MoFEM]
303  MoFEM::Core core(moab); ///< finite element database
304  MoFEM::Interface &m_field = core; ///< finite element database insterface
305  //! [Create MoFEM]
306 
307  Example ex(m_field);
308  CHKERR ex.runProblem();
309  }
310  CATCH_ERRORS;
311 
313 }
static char help[]
Deprecated interface functions.
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
basic_moment_of_inertia.cpp.

Definition at line 30 of file basic_moment_of_inertia.cpp.

◆ i

FTensor::Index<'i', 3> i

◆ j

FTensor::Index<'j', 3> j