v0.15.0
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
child_and_parent.cpp File Reference

projection from parent to child element More...

#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 >::DomainParentEle
 
using DomainEleOp = DomainEle::UserDataOperator
 Finire element operator type.
 
using EntData = EntitiesFieldData::EntData
 [Define entities]
 
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]
 

Variables

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

Detailed Description

projection from parent to child element

Definition in file child_and_parent.cpp.

Typedef Documentation

◆ BoundaryEle

Definition at line 40 of file child_and_parent.cpp.

◆ BoundaryEleOp

◆ BoundaryParentEle

Examples
mofem/tutorials/vec-5/free_surface.cpp.

Definition at line 42 of file child_and_parent.cpp.

◆ DomainEle

◆ DomainEleOp

◆ DomainParentEle

Definition at line 36 of file child_and_parent.cpp.

◆ EntData

[Define entities]

Definition at line 38 of file child_and_parent.cpp.

◆ OpDomainMass

◆ OpDomainSource

using OpDomainSource = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpSource<1, FIELD_DIM>

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 573 of file child_and_parent.cpp.

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

Variable Documentation

◆ domainChildLhs

boost::shared_ptr<DomainEle> domainChildLhs

[Set up problem]

Examples
mofem/atom_tests/child_and_parent.cpp.

Definition at line 288 of file child_and_parent.cpp.

◆ domainChildRhs

boost::shared_ptr<DomainEle> domainChildRhs
Examples
mofem/atom_tests/child_and_parent.cpp.

Definition at line 288 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 13 of file child_and_parent.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 2
constexpr

[Define dimension]

Examples
EdgeFlippingOps.hpp, HenckyOps.hpp, SolutionMapping.hpp, ThermoElasticOps.hpp, ThermoPlasticOps.hpp, ep.cpp, mofem/atom_tests/child_and_parent.cpp, mofem/atom_tests/dg_projection.cpp, mofem/atom_tests/hanging_node_approx.cpp, mofem/atom_tests/hcurl_check_approx_in_2d.cpp, mofem/atom_tests/hcurl_divergence_operator_2d.cpp, mofem/atom_tests/hdiv_check_approx_in_3d.cpp, mofem/atom_tests/higher_derivatives.cpp, mofem/atom_tests/operators_tests.cpp, mofem/atom_tests/remove_entities_from_problem.cpp, mofem/atom_tests/remove_entities_from_problem_not_partitioned.cpp, mofem/atom_tests/scalar_check_approximation.cpp, mofem/atom_tests/schur_test_diag_mat.cpp, mofem/atom_tests/simple_l2_only.cpp, mofem/atom_tests/tensor_divergence_operator.cpp, mofem/atom_tests/test_broken_space.cpp, mofem/tutorials/adv-0/plastic.cpp, mofem/tutorials/adv-2/src/ThermoElasticOps.hpp, mofem/tutorials/adv-2/thermo_elastic.cpp, mofem/tutorials/adv-3/level_set.cpp, mofem/tutorials/adv-4/dynamic_first_order_con_law.cpp, mofem/tutorials/adv-5/seepage.cpp, mofem/tutorials/adv-6/between_meshes_dg_projection.cpp, mofem/tutorials/clx-0/helmholtz.cpp, mofem/tutorials/cor-6/simple_elasticity.cpp, mofem/tutorials/fun-2/plot_base.cpp, mofem/tutorials/scl-0/approximaton.cpp, mofem/tutorials/scl-1/poisson_2d_homogeneous.cpp, mofem/tutorials/scl-1/src/poisson_2d_homogeneous.hpp, mofem/tutorials/scl-10/initial_diffusion.cpp, mofem/tutorials/scl-10/photon_diffusion.cpp, mofem/tutorials/scl-11/poisson_2d_dis_galerkin.cpp, mofem/tutorials/scl-11/src/PoissonDiscontinousGalerkin.hpp, mofem/tutorials/scl-12/electrostatics.cpp, mofem/tutorials/scl-6/heat_equation.cpp, mofem/tutorials/scl-7/wave_equation.cpp, mofem/tutorials/scl-9/heat_method.cpp, mofem/tutorials/vec-0/elastic.cpp, mofem/tutorials/vec-1/eigen_elastic.cpp, mofem/tutorials/vec-10/schur_elastic.cpp, mofem/tutorials/vec-2/nonlinear_elastic.cpp, mofem/tutorials/vec-2/src/HenckyOps.hpp, mofem/tutorials/vec-2/src/NonlinearElasticExample.hpp, mofem/tutorials/vec-3/nonlinear_dynamic_elastic.cpp, mofem/tutorials/vec-5/free_surface.cpp, mofem/tutorials/vec-6/plate.cpp, mofem/tutorials/vec-7/adjoint.cpp, mofem/tutorials/vec-9/arc_length.cpp, mofem/tutorials/vec-9/src/ArcLengthExample.hpp, mofem/users_modules/adolc-plasticity/adolc_plasticity.cpp, mofem/users_modules/eshelbian_plasticity/ep.cpp, mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianOperators.cpp, mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianPlasticity.cpp, nonlinear_elastic.cpp, plastic.cpp, thermo_elastic.cpp, and thermoplastic.cpp.

Definition at line 17 of file child_and_parent.cpp.