v0.14.0
Classes | Typedefs | Functions | Variables
incompressible_elasticity.cpp File Reference

Incompressible elasticity problem. More...

#include <MoFEM.hpp>

Go to the source code of this file.

Classes

struct  MonitorIncompressible
 
struct  DomainEleOpStab
 Element used to specialise assembly. More...
 
struct  Incompressible
 
struct  OpCalculateLameStress< DIM >
 
struct  SetUpSchur
 [Push operators to pipeline] More...
 
struct  SetUpSchurImpl
 

Typedefs

using EntData = EntitiesFieldData::EntData
 
using DomainEle = PipelineManager::ElementsAndOpsByDim< SPACE_DIM >::DomainEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using BoundaryEle = PipelineManager::ElementsAndOpsByDim< SPACE_DIM >::BoundaryEle
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using PostProcEle = PostProcBrokenMeshInMoab< DomainEle >
 
using SkinPostProcEle = PostProcBrokenMeshInMoab< BoundaryEle >
 
using SetPtsData = FieldEvaluatorInterface::SetPtsData
 

Functions

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

Variables

constexpr int SPACE_DIM
 
constexpr AssemblyType AT
 
constexpr IntegrationType IT
 
constexpr CoordinateTypes coord_type = CARTESIAN
 
PetscBool doEvalField
 
int order = 2
 [Specialisation for assembly] More...
 
int geom_order = 1
 
static double young_modulus = 100
 
static double poisson_ratio = 0.25
 
static double mu
 
static double lambda
 
PetscBool isDiscontinuousPressure = PETSC_FALSE
 
static char help [] = "...\n\n"
 [Check] More...
 

Detailed Description

Incompressible elasticity problem.

Definition in file incompressible_elasticity.cpp.

Typedef Documentation

◆ BoundaryEle

Definition at line 25 of file incompressible_elasticity.cpp.

◆ BoundaryEleOp

Definition at line 26 of file incompressible_elasticity.cpp.

◆ DomainEle

Definition at line 22 of file incompressible_elasticity.cpp.

◆ DomainEleOp

Definition at line 23 of file incompressible_elasticity.cpp.

◆ EntData

Definition at line 21 of file incompressible_elasticity.cpp.

◆ PostProcEle

Definition at line 27 of file incompressible_elasticity.cpp.

◆ SetPtsData

Definition at line 29 of file incompressible_elasticity.cpp.

◆ SkinPostProcEle

Definition at line 28 of file incompressible_elasticity.cpp.

Function Documentation

◆ main()

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

[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 interface

[Create MoFEM]

[Load mesh]

[Load mesh]

[CONTACT]

[CONTACT]

Definition at line 885 of file incompressible_elasticity.cpp.

885  {
886 
887  // Initialisation of MoFEM/PETSc and MOAB data structures
888  const char param_file[] = "param_file.petsc";
889  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
890 
891  // Add logging channel for CONTACT
892  auto core_log = logging::core::get();
893  core_log->add_sink(
894  LogManager::createSink(LogManager::getStrmWorld(), "INCOMP_ELASTICITY"));
895  LogManager::setLog("INCOMP_ELASTICITY");
896  MOFEM_LOG_TAG("INCOMP_ELASTICITY", "Indent");
897 
898  try {
899 
900  //! [Register MoFEM discrete manager in PETSc]
901  DMType dm_name = "DMMOFEM";
902  CHKERR DMRegister_MoFEM(dm_name);
903  //! [Register MoFEM discrete manager in PETSc
904 
905  //! [Create MoAB]
906  moab::Core mb_instance; ///< mesh database
907  moab::Interface &moab = mb_instance; ///< mesh database interface
908  //! [Create MoAB]
909 
910  //! [Create MoFEM]
911  MoFEM::Core core(moab); ///< finite element database
912  MoFEM::Interface &m_field = core; ///< finite element database interface
913  //! [Create MoFEM]
914 
915  //! [Load mesh]
916  Simple *simple = m_field.getInterface<Simple>();
917  CHKERR simple->getOptions();
918  CHKERR simple->loadFile("");
919  //! [Load mesh]
920 
921  //! [CONTACT]
922  Incompressible ex(m_field);
923  CHKERR ex.runProblem();
924  //! [CONTACT]
925  }
926  CATCH_ERRORS;
927 
929 
930  return 0;
931 }

Variable Documentation

◆ AT

constexpr AssemblyType AT
constexpr
Initial value:

Definition at line 13 of file incompressible_elasticity.cpp.

◆ coord_type

constexpr CoordinateTypes coord_type = CARTESIAN
constexpr

Definition at line 19 of file incompressible_elasticity.cpp.

◆ doEvalField

PetscBool doEvalField
Examples
seepage.cpp, and thermo_elastic.cpp.

Definition at line 41 of file incompressible_elasticity.cpp.

◆ geom_order

int geom_order = 1

Definition at line 195 of file incompressible_elasticity.cpp.

◆ help

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

[Check]

Definition at line 883 of file incompressible_elasticity.cpp.

◆ isDiscontinuousPressure

PetscBool isDiscontinuousPressure = PETSC_FALSE

Definition at line 201 of file incompressible_elasticity.cpp.

◆ IT

constexpr IntegrationType IT
constexpr
Initial value:

Definition at line 17 of file incompressible_elasticity.cpp.

◆ lambda

double lambda
inlinestatic

◆ mu

double mu
inlinestatic

Definition at line 198 of file incompressible_elasticity.cpp.

◆ order

int order = 2

[Specialisation for assembly]

Definition at line 194 of file incompressible_elasticity.cpp.

◆ poisson_ratio

double poisson_ratio = 0.25
inlinestatic

Definition at line 197 of file incompressible_elasticity.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr
Initial value:

Definition at line 10 of file incompressible_elasticity.cpp.

◆ young_modulus

double young_modulus = 100
inlinestatic

Definition at line 196 of file incompressible_elasticity.cpp.

MoFEM::UnknownInterface::getInterface
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
Definition: UnknownInterface.hpp:93
EXECUTABLE_DIMENSION
#define EXECUTABLE_DIMENSION
Definition: plastic.cpp:13
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
MoFEM::PETSC
@ PETSC
Definition: FormsIntegrators.hpp:105
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
MoFEM::Simple
Simple interface for fast problem set-up.
Definition: Simple.hpp:27
SCHUR_ASSEMBLE
#define SCHUR_ASSEMBLE
Definition: contact.cpp:18
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
simple
void simple(double P1[], double P2[], double P3[], double c[], const int N)
Definition: acoustic.cpp:69
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:43
MoFEM::GAUSS
@ GAUSS
Definition: FormsIntegrators.hpp:136
MOFEM_LOG_TAG
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339
help
static char help[]
[Check]
Definition: incompressible_elasticity.cpp:883
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
Incompressible
Definition: incompressible_elasticity.cpp:203
MoFEM::SCHUR
@ SCHUR
Definition: FormsIntegrators.hpp:106