v0.14.0
Loading...
Searching...
No Matches
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< 2 >
 
struct  PostProcEleByDim< 3 >
 
struct  Example
 [Example] More...
 
struct  Monitor
 [Push operators to pipeline] More...
 

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 PostProcEdges
 

Functions

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

Variables

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

Typedef Documentation

◆ BoundaryEle

◆ BoundaryNaturalBC

◆ DomainEle

◆ DomainNaturalBC

◆ OpBodyForce

◆ OpForce

◆ PostProcEdges

◆ PostProcEleBdy

◆ 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 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(
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 }
544
546}
#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.
[Example]
Definition plastic.cpp:213
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.
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[]
[Check]

Variable Documentation

◆ help

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

[Check]

Definition at line 506 of file nonlinear_elastic.cpp.

◆ SPACE_DIM

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

Definition at line 14 of file nonlinear_elastic.cpp.