v0.16.0
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
plot_base.cpp File Reference
#include <MoFEM.hpp>

Go to the source code of this file.

Classes

struct  ElementsAndOps< DIM >
 [Operators_definition] More...
 
struct  ElementsAndOps< 2 >
 
struct  ElementsAndOps< 3 >
 
struct  MyPostProc
 
struct  Example
 [Example] More...
 

Typedefs

using EntData = EntitiesFieldData::EntData
 
using DomainEle = ElementsAndOps< SPACE_DIM >::DomainEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using PostProcEle = PostProcBrokenMeshInMoab< DomainEle >
 

Functions

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

Variables

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

Typedef Documentation

◆ DomainEle

Definition at line 30 of file plot_base.cpp.

◆ DomainEleOp

Definition at line 31 of file plot_base.cpp.

◆ EntData

Definition at line 29 of file plot_base.cpp.

◆ PostProcEle

Definition at line 32 of file plot_base.cpp.

Function Documentation

◆ main()

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

[Check results]

[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 insterface

[Create MoFEM]

[Example]

[Example]

Definition at line 385 of file plot_base.cpp.

385 {
386
387 // Initialisation of MoFEM/PETSc and MOAB data structures
388 MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
389
390 try {
391
392 //! [Register MoFEM discrete manager in PETSc]
393 DMType dm_name = "DMMOFEM";
394 CHKERR DMRegister_MoFEM(dm_name);
395 //! [Register MoFEM discrete manager in PETSc
396
397 // Add logging channel for example
398 auto core_log = logging::core::get();
399 core_log->add_sink(
401 LogManager::setLog("PLOTBASE");
402 MOFEM_LOG_TAG("PLOTBASE", "plotbase");
403
404 //! [Create MoAB]
405 moab::Core mb_instance; ///< mesh database
406 moab::Interface &moab = mb_instance; ///< mesh database interface
407 //! [Create MoAB]
408
409 //! [Create MoFEM]
410 MoFEM::Core core(moab); ///< finite element database
411 MoFEM::Interface &m_field = core; ///< finite element database insterface
412 //! [Create MoFEM]
413
414 //! [Example]
415 Example ex(m_field);
416 CHKERR ex.runProblem();
417 //! [Example]
418 }
420
422
423 return 0;
424}
#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.
static char help[]
Definition plot_base.cpp:12
[Example]
Definition plastic.cpp:217
Core (interface) class.
Definition Core.hpp:83
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition Core.cpp:68
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition Core.cpp:123
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 12 of file plot_base.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr
Initial value:
=
#define EXECUTABLE_DIMENSION
Definition plastic.cpp:13
Examples
mofem/tutorials/fun-2_plot_base/plot_base.cpp.

Definition at line 26 of file plot_base.cpp.