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

Examples
nonlinear_elastic.cpp.

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 49 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]

Definition at line 510 of file nonlinear_elastic.cpp.

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

Variable Documentation

◆ help

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

[Check]

Definition at line 508 of file nonlinear_elastic.cpp.

◆ poisson_ratio

constexpr double poisson_ratio = 0.3
constexpr
Examples
nonlinear_elastic.cpp.

Definition at line 52 of file nonlinear_elastic.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr
Initial value:
Examples
nonlinear_elastic.cpp.

Definition at line 14 of file nonlinear_elastic.cpp.

◆ young_modulus

constexpr double young_modulus = 100
constexpr
Examples
nonlinear_elastic.cpp.

Definition at line 51 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:2002
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:1140
help
static char help[]
[Check]
Definition: nonlinear_elastic.cpp:508