v0.14.0
Classes | Typedefs | Functions | Variables
nonlinear_elastic.cpp File Reference
#include <MoFEM.hpp>
#include <MatrixFunction.hpp>
#include <HenckyOps.hpp>

Go to the source code of this file.

Classes

struct  PostProcEleByDim< DIM >
 
struct  PostProcEleByDim< 2 >
 
struct  PostProcEleByDim< 3 >
 
struct  Example
 [Example] More...
 
struct  Monitor
 [Push operators to pipeline] More...
 

Typedefs

using EntData = EntitiesFieldData::EntData
 
using DomainEle = PipelineManager::ElementsAndOpsByDim< SPACE_DIM >::DomainEle
 
using BoundaryEle = PipelineManager::ElementsAndOpsByDim< SPACE_DIM >::BoundaryEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using DomainNaturalBC = NaturalBC< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >
 
using OpBodyForce = DomainNaturalBC::OpFlux< NaturalMeshsetType< BLOCKSET >, 1, SPACE_DIM >
 
using BoundaryNaturalBC = NaturalBC< BoundaryEleOp >::Assembly< PETSC >::LinearForm< GAUSS >
 
using OpForce = BoundaryNaturalBC::OpFlux< NaturalForceMeshsets, 1, SPACE_DIM >
 
using SideEle = PostProcEleByDim< SPACE_DIM >::SideEle
 
using PostProcEleBdy = PostProcEleByDim< SPACE_DIM >::PostProcEleBdy
 
using PostProcEdges = PostProcBrokenMeshInMoabBase< EdgeElementForcesAndSourcesCore >
 

Functions

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

Variables

constexpr int SPACE_DIM
 
constexpr double young_modulus = 100
 
constexpr double poisson_ratio = 0.3
 
static char help [] = "...\n\n"
 [Check] More...
 

Typedef Documentation

◆ BoundaryEle

Definition at line 20 of file nonlinear_elastic.cpp.

◆ BoundaryEleOp

Definition at line 22 of file nonlinear_elastic.cpp.

◆ BoundaryNaturalBC

using BoundaryNaturalBC = NaturalBC<BoundaryEleOp>::Assembly<PETSC>::LinearForm<GAUSS>

Definition at line 30 of file nonlinear_elastic.cpp.

◆ DomainEle

Definition at line 18 of file nonlinear_elastic.cpp.

◆ DomainEleOp

Definition at line 21 of file nonlinear_elastic.cpp.

◆ DomainNaturalBC

using DomainNaturalBC = NaturalBC<DomainEleOp>::Assembly<PETSC>::LinearForm<GAUSS>

Definition at line 25 of file nonlinear_elastic.cpp.

◆ EntData

Definition at line 17 of file nonlinear_elastic.cpp.

◆ OpBodyForce

Definition at line 27 of file nonlinear_elastic.cpp.

◆ OpForce

Definition at line 31 of file nonlinear_elastic.cpp.

◆ PostProcEdges

Definition at line 50 of file nonlinear_elastic.cpp.

◆ PostProcEleBdy

Definition at line 48 of file nonlinear_elastic.cpp.

◆ SideEle

Definition at line 47 of file nonlinear_elastic.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]

[Example]

[Example]

Examples
nonlinear_elastic.cpp.

Definition at line 511 of file nonlinear_elastic.cpp.

511  {
512 
513  // Initialisation of MoFEM/PETSc and MOAB data structures
514  const char param_file[] = "param_file.petsc";
515  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
516 
517  // Add logging channel for example
518  auto core_log = logging::core::get();
519  core_log->add_sink(
520  LogManager::createSink(LogManager::getStrmWorld(), "EXAMPLE"));
521  LogManager::setLog("EXAMPLE");
522  MOFEM_LOG_TAG("EXAMPLE", "example");
523 
524  try {
525 
526  //! [Register MoFEM discrete manager in PETSc]
527  DMType dm_name = "DMMOFEM";
528  CHKERR DMRegister_MoFEM(dm_name);
529  //! [Register MoFEM discrete manager in PETSc
530 
531  //! [Create MoAB]
532  moab::Core mb_instance; ///< mesh database
533  moab::Interface &moab = mb_instance; ///< mesh database interface
534  //! [Create MoAB]
535 
536  //! [Create MoFEM]
537  MoFEM::Core core(moab); ///< finite element database
538  MoFEM::Interface &m_field = core; ///< finite element database interface
539  //! [Create MoFEM]
540 
541  //! [Example]
542  Example ex(m_field);
543  CHKERR ex.runProblem();
544  //! [Example]
545  }
546  CATCH_ERRORS;
547 
549 }

Variable Documentation

◆ help

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

[Check]

Examples
nonlinear_elastic.cpp.

Definition at line 509 of file nonlinear_elastic.cpp.

◆ poisson_ratio

constexpr double poisson_ratio = 0.3
constexpr

Definition at line 53 of file nonlinear_elastic.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr
Initial value:

Definition at line 14 of file nonlinear_elastic.cpp.

◆ young_modulus

constexpr double young_modulus = 100
constexpr

Definition at line 52 of file nonlinear_elastic.cpp.

EXECUTABLE_DIMENSION
#define EXECUTABLE_DIMENSION
Definition: plastic.cpp:13
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
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
Example
[Example]
Definition: plastic.cpp:177
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:43
MOFEM_LOG_TAG
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339
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
help
static char help[]
[Check]
Definition: nonlinear_elastic.cpp:509