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

Go to the source code of this file.

Classes

struct  ElementsAndOps< DIM >
 
struct  ElementsAndOps< 2 >
 
struct  ElementsAndOps< 3 >
 
struct  ApproxFieldFunction< FIELD_DIM >
 
struct  ApproxFieldFunction< 1 >
 third order polynomial used for testing More...
 
struct  AtomTest
 
struct  AtomTest::CommonData
 Collected data use d by operator to evaluate errors for the test. More...
 
struct  AtomTest::OpError
 Operator to evaluate errors. More...
 
struct  AtomTest::OpError< 1 >
 
struct  OpCheckGaussCoords< ELE_OP, PARENT_ELE >
 

Typedefs

using DomainEle = ElementsAndOps< SPACE_DIM >::DomainEle
 
using DomainParentEle = ElementsAndOps< SPACE_DIM >::DomianParentEle
 
using DomainEleOp = DomainEle::UserDataOperator
 Finire element operator type. More...
 
using EntData = EntitiesFieldData::EntData
 
using BoundaryEle = ElementsAndOps< SPACE_DIM >::BoundaryEle
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using BoundaryParentEle = ElementsAndOps< SPACE_DIM >::BoundaryParentEle
 
using OpDomainMass = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, FIELD_DIM >
 
using OpDomainSource = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpSource< 1, FIELD_DIM >
 

Functions

int main (int argc, char *argv[])
 [Check results] More...
 

Variables

static char help [] = "...\n\n"
 
constexpr char FIELD_NAME [] = "U"
 
constexpr int FIELD_DIM = 1
 
constexpr int SPACE_DIM = 2
 
boost::shared_ptr< DomainEledomainChildLhs
 [Set up problem] More...
 
boost::shared_ptr< DomainEledomainChildRhs
 

Typedef Documentation

◆ BoundaryEle

Definition at line 39 of file child_and_parent.cpp.

◆ BoundaryEleOp

Examples
PoissonDiscontinousGalerkin.hpp.

Definition at line 40 of file child_and_parent.cpp.

◆ BoundaryParentEle

Definition at line 41 of file child_and_parent.cpp.

◆ DomainEle

Definition at line 34 of file child_and_parent.cpp.

◆ DomainEleOp

Finire element operator type.

Examples
child_and_parent.cpp, PlasticOpsGeneric.hpp, and ThermoElasticOps.hpp.

Definition at line 36 of file child_and_parent.cpp.

◆ DomainParentEle

Definition at line 35 of file child_and_parent.cpp.

◆ EntData

◆ OpDomainMass

using OpDomainMass = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::BiLinearForm<GAUSS>::OpMass<1, FIELD_DIM>
Examples
child_and_parent.cpp.

Definition at line 53 of file child_and_parent.cpp.

◆ OpDomainSource

using OpDomainSource = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpSource<1, FIELD_DIM>
Examples
child_and_parent.cpp, and test_broken_space.cpp.

Definition at line 55 of file child_and_parent.cpp.

Function Documentation

◆ main()

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

[Check results]

[Register MoFEM discrete manager in PETSc]

[Register MoFEM discrete manager in PETSc

[Create MoAB]

< mesh database

< mesh database interface

[Create MoAB]

[Create MoFEM]

< finite element database

< finite element database insterface

[Create MoFEM]

[AtomTest]

[AtomTest]

Examples
child_and_parent.cpp.

Definition at line 572 of file child_and_parent.cpp.

572  {
573 
574  // Initialisation of MoFEM/PETSc and MOAB data structures
575  MoFEM::Core::Initialize(&argc, &argv, NULL, help);
576 
577  try {
578 
579  //! [Register MoFEM discrete manager in PETSc]
580  DMType dm_name = "DMMOFEM";
581  CHKERR DMRegister_MoFEM(dm_name);
582  //! [Register MoFEM discrete manager in PETSc
583 
584  //! [Create MoAB]
585  moab::Core mb_instance; ///< mesh database
586  moab::Interface &moab = mb_instance; ///< mesh database interface
587  //! [Create MoAB]
588 
589  //! [Create MoFEM]
590  MoFEM::Core core(moab); ///< finite element database
591  MoFEM::Interface &m_field = core; ///< finite element database insterface
592  //! [Create MoFEM]
593 
594  //! [AtomTest]
595  AtomTest ex(m_field);
596  CHKERR ex.runProblem();
597  //! [AtomTest]
598  }
599  CATCH_ERRORS;
600 
602 }

Variable Documentation

◆ domainChildLhs

boost::shared_ptr<DomainEle> domainChildLhs

[Set up problem]

Examples
child_and_parent.cpp.

Definition at line 287 of file child_and_parent.cpp.

◆ domainChildRhs

boost::shared_ptr<DomainEle> domainChildRhs
Examples
child_and_parent.cpp.

Definition at line 287 of file child_and_parent.cpp.

◆ FIELD_DIM

constexpr int FIELD_DIM = 1
constexpr
Examples
child_and_parent.cpp, and operators_tests.cpp.

Definition at line 15 of file child_and_parent.cpp.

◆ FIELD_NAME

constexpr char FIELD_NAME[] = "U"
constexpr
Examples
child_and_parent.cpp.

Definition at line 14 of file child_and_parent.cpp.

◆ help

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

Definition at line 12 of file child_and_parent.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 2
constexpr
AtomTest
Definition: child_and_parent.cpp:57
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
help
static char help[]
Definition: child_and_parent.cpp:12
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
MoFEM::Interface
DeprecatedCoreInterface Interface
Definition: Interface.hpp:2010
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:43
MoFEM::CoreTmp< 0 >::Initialize
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
CATCH_ERRORS
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:385
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1148