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

Go to the source code of this file.

Classes

struct  PostProcEleByDim< 2 >
 
struct  PostProcEleByDim< 3 >
 
struct  ArcTimeScale
 

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 = ArcTimeScale
 

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 72 of file arc_length.cpp.

◆ OpBodyForce

using OpBodyForce
Initial value:

Definition at line 27 of file arc_length.cpp.

◆ OpForce

◆ PostProcEdges

◆ PostProcEleBdy

◆ PostProcEleDomain

◆ SideEle

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

77 {
78
79 // Initialisation of MoFEM/PETSc and MOAB data structures
80 const char param_file[] = "param_file.petsc";
81 MoFEM::Core::Initialize(&argc, &argv, param_file, help);
82
83 // Add logging channel for example
84 auto core_log = logging::core::get();
85 core_log->add_sink(
87 LogManager::setLog("EXAMPLE");
88 MOFEM_LOG_TAG("EXAMPLE", "example");
89
90 try {
91
92 //! [Register MoFEM discrete manager in PETSc]
93 DMType dm_name = "DMMOFEM";
94 CHKERR DMRegister_MoFEM(dm_name);
95 //! [Register MoFEM discrete manager in PETSc
96
97 //! [Create MoAB]
98 moab::Core mb_instance; ///< mesh database
99 moab::Interface &moab = mb_instance; ///< mesh database interface
100 //! [Create MoAB]
101
102 //! [Create MoFEM]
103 MoFEM::Core core(moab); ///< finite element database
104 MoFEM::Interface &m_field = core; ///< finite element database interface
105 //! [Create MoFEM]
106
107 //! [Example]
108 ExampleArcLength ex(m_field);
109 CHKERR ex.runProblem();
110 //! [Example]
111 }
113
115}
static char help[]
#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.

Variable Documentation

◆ help

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

Definition at line 75 of file arc_length.cpp.

◆ SPACE_DIM

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

Definition at line 15 of file arc_length.cpp.