v0.15.0
Loading...
Searching...
No Matches
nonlinear_elastic.cpp File Reference
#include <MoFEM.hpp>
#include <MatrixFunction.hpp>
#include <HenckyOps.hpp>
#include <Monitor.hpp>
#include <ExampleNonlinearElastic.hpp>

Go to the source code of this file.

Classes

struct  PostProcEleByDim< 2 >
 
struct  PostProcEleByDim< 3 >
 

Typedefs

using DomainEle = PipelineManager::ElementsAndOpsByDim<SPACE_DIM>::DomainEle
 
using BoundaryEle
 
using DomainNaturalBC
 
using OpBodyForce
 
using BoundaryNaturalBC
 
using OpForce = BoundaryNaturalBC::OpFlux<NaturalForceMeshsets, 1, SPACE_DIM>
 
using SideEle = PostProcEleByDim<SPACE_DIM>::SideEle
 
using PostProcEleBdy = PostProcEleByDim<SPACE_DIM>::PostProcEleBdy
 
using PostProcEleDomain = PostProcEleByDim<SPACE_DIM>::PostProcEleDomain
 
using PostProcEdges
 
using ExampleTimeScale = TimeScale
 

Functions

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

Variables

constexpr int SPACE_DIM
 
static char help [] = "...\n\n"
 

Typedef Documentation

◆ BoundaryEle

◆ BoundaryNaturalBC

◆ DomainEle

◆ DomainNaturalBC

◆ ExampleTimeScale

Definition at line 58 of file nonlinear_elastic.cpp.

◆ OpBodyForce

◆ OpForce

◆ PostProcEdges

◆ PostProcEleBdy

◆ PostProcEleDomain

◆ SideEle

Definition at line 48 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 63 of file nonlinear_elastic.cpp.

63 {
64
65 // Initialisation of MoFEM/PETSc and MOAB data structures
66 const char param_file[] = "param_file.petsc";
67 MoFEM::Core::Initialize(&argc, &argv, param_file, help);
68
69 // Add logging channel for example
70 auto core_log = logging::core::get();
71 core_log->add_sink(
73 LogManager::setLog("EXAMPLE");
74 MOFEM_LOG_TAG("EXAMPLE", "example");
75
76 try {
77
78 //! [Register MoFEM discrete manager in PETSc]
79 DMType dm_name = "DMMOFEM";
80 CHKERR DMRegister_MoFEM(dm_name);
81 //! [Register MoFEM discrete manager in PETSc
82
83 //! [Create MoAB]
84 moab::Core mb_instance; ///< mesh database
85 moab::Interface &moab = mb_instance; ///< mesh database interface
86 //! [Create MoAB]
87
88 //! [Create MoFEM]
89 MoFEM::Core core(moab); ///< finite element database
90 MoFEM::Interface &m_field = core; ///< finite element database interface
91 //! [Create MoFEM]
92
93 //! [Example]
94 ExampleNonlinearElastic ex(m_field);
95 CHKERR ex.runProblem();
96 //! [Example]
97 }
99
101}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition DMMoFEM.cpp:43
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
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:118
Deprecated interface functions.
static boost::shared_ptr< SinkType > createSink(boost::shared_ptr< std::ostream > stream_ptr, std::string comm_filter)
Create a sink object.
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.
static char help[]

Variable Documentation

◆ help

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

Definition at line 61 of file nonlinear_elastic.cpp.

◆ SPACE_DIM

int SPACE_DIM
constexpr
Initial value:
=
#define EXECUTABLE_DIMENSION
Definition plastic.cpp:13

Definition at line 15 of file nonlinear_elastic.cpp.