v0.14.0
Loading...
Searching...
No Matches
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< 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< 1 >
 
struct  OpCheckGaussCoords< ELE_OP, PARENT_ELE >
 

Typedefs

using DomainEle = ElementsAndOps<SPACE_DIM>::DomainEle
 [Define dimension]
 
using DomainParentEle = ElementsAndOps<SPACE_DIM>::DomianParentEle
 
using DomainEleOp = DomainEle::UserDataOperator
 Finire element operator type.
 
using EntData = EntitiesFieldData::EntData
 Data on entities.
 
using BoundaryEle = ElementsAndOps<SPACE_DIM>::BoundaryEle
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using BoundaryParentEle = ElementsAndOps<SPACE_DIM>::BoundaryParentEle
 
using OpDomainMass
 
using OpDomainSource
 

Functions

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

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]
 
boost::shared_ptr< DomainEledomainChildRhs
 

Typedef Documentation

◆ BoundaryEle

◆ BoundaryEleOp

◆ BoundaryParentEle

◆ DomainEle

◆ DomainEleOp

◆ DomainParentEle

◆ EntData

Data on entities.

[Define entities]

[Define dimension]

Definition at line 37 of file child_and_parent.cpp.

◆ OpDomainMass

◆ OpDomainSource

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]

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 }
600
602}
static char help[]
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition DMMoFEM.cpp:43
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

◆ 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

◆ FIELD_NAME

char FIELD_NAME[] = "U"
constexpr

◆ help

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

Definition at line 12 of file child_and_parent.cpp.

◆ SPACE_DIM