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
 
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 508 of file nonlinear_elastic.cpp.

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

Variable Documentation

◆ help

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

[Check]

Examples
nonlinear_elastic.cpp.

Definition at line 506 of file nonlinear_elastic.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr
Initial value:

Definition at line 14 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:506