v0.13.1
Loading...
Searching...
No Matches
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< 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
 
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

◆ 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
PlasticOpsGeneric.hpp, ThermoElasticOps.hpp, and simple_l2_only.cpp.

Definition at line 36 of file child_and_parent.cpp.

◆ DomainParentEle

Definition at line 35 of file child_and_parent.cpp.

◆ EntData

Definition at line 37 of file child_and_parent.cpp.

◆ OpDomainMass

Examples
hcurl_check_approx_in_2d.cpp, and helmholtz.cpp.

Definition at line 52 of file child_and_parent.cpp.

◆ OpDomainSource

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

Definition at line 54 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]

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.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:47
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

constexpr int FIELD_DIM = 1
constexpr

◆ FIELD_NAME

constexpr char FIELD_NAME[] = "U"
constexpr

◆ help

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

Definition at line 12 of file child_and_parent.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 2
constexpr