v0.13.1
Classes | Typedefs | Functions | Variables
elastic.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  Example
 [Example] More...
 

Typedefs

using EntData = EntitiesFieldData::EntData
 [Define dimension] More...
 
using DomainEle = ElementsAndOps< SPACE_DIM >::DomainEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using BoundaryEle = ElementsAndOps< SPACE_DIM >::BoundaryEle
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using PostProcEle = PostProcBrokenMeshInMoab< DomainEle >
 
using OpK = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpGradSymTensorGrad< 1, SPACE_DIM, SPACE_DIM, 0 >
 
using OpBodyForce = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpBaseTimesVector< 1, SPACE_DIM, 0 >
 
using OpInternalForce = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpGradTimesSymTensor< 1, SPACE_DIM, SPACE_DIM >
 

Functions

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

Variables

constexpr int SPACE_DIM = 2
 [Define dimension] More...
 
constexpr double young_modulus = 100
 
constexpr double poisson_ratio = 0.3
 
constexpr double bulk_modulus_K = young_modulus / (3 * (1 - 2 * poisson_ratio))
 
constexpr double shear_modulus_G = young_modulus / (2 * (1 + poisson_ratio))
 
static char help [] = "...\n\n"
 [Check] More...
 

Typedef Documentation

◆ BoundaryEle

Definition at line 32 of file elastic.cpp.

◆ BoundaryEleOp

Definition at line 33 of file elastic.cpp.

◆ DomainEle

Definition at line 30 of file elastic.cpp.

◆ DomainEleOp

Definition at line 31 of file elastic.cpp.

◆ EntData

[Define dimension]

Definition at line 29 of file elastic.cpp.

◆ OpBodyForce

using OpBodyForce = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::LinearForm< GAUSS>::OpBaseTimesVector<1, SPACE_DIM, 0>

Definition at line 38 of file elastic.cpp.

◆ OpInternalForce

using OpInternalForce = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpGradTimesSymTensor<1, SPACE_DIM, SPACE_DIM>

Definition at line 40 of file elastic.cpp.

◆ OpK

using OpK = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpGradSymTensorGrad<1, SPACE_DIM, SPACE_DIM, 0>

Definition at line 36 of file elastic.cpp.

◆ PostProcEle

Definition at line 34 of file elastic.cpp.

Function Documentation

◆ main()

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

Definition at line 363 of file elastic.cpp.

363 {
364
365 // Initialisation of MoFEM/PETSc and MOAB data structures
366 const char param_file[] = "param_file.petsc";
368
369 try {
370
371 //! [Register MoFEM discrete manager in PETSc]
372 DMType dm_name = "DMMOFEM";
373 CHKERR DMRegister_MoFEM(dm_name);
374 //! [Register MoFEM discrete manager in PETSc
375
376 //! [Create MoAB]
377 moab::Core mb_instance; ///< mesh database
378 moab::Interface &moab = mb_instance; ///< mesh database interface
379 //! [Create MoAB]
380
381 //! [Create MoFEM]
382 MoFEM::Core core(moab); ///< finite element database
383 MoFEM::Interface &m_field = core; ///< finite element database insterface
384 //! [Create MoFEM]
385
386 //! [Example]
387 Example ex(m_field);
388 CHKERR ex.runProblem();
389 //! [Example]
390 }
392
394}
std::string param_file
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
static char help[]
[Check]
Definition: elastic.cpp:361
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:47
CoreTmp< 0 > Core
Definition: Core.hpp:1086
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1955
[Example]
Definition: plastic.cpp:111
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

◆ bulk_modulus_K

constexpr double bulk_modulus_K = young_modulus / (3 * (1 - 2 * poisson_ratio))
constexpr
Examples
contact.cpp, plastic.cpp, and thermo_plastic.cpp.

Definition at line 45 of file elastic.cpp.

◆ help

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

[Check]

Definition at line 361 of file elastic.cpp.

◆ poisson_ratio

constexpr double poisson_ratio = 0.3
constexpr

Definition at line 44 of file elastic.cpp.

◆ shear_modulus_G

constexpr double shear_modulus_G = young_modulus / (2 * (1 + poisson_ratio))
constexpr
Examples
contact.cpp, plastic.cpp, and thermo_plastic.cpp.

Definition at line 46 of file elastic.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 2
constexpr

[Define dimension]

Definition at line 26 of file elastic.cpp.

◆ young_modulus

constexpr double young_modulus = 100
constexpr

Definition at line 43 of file elastic.cpp.