v0.14.0
Classes | Typedefs | Functions | Variables
plot_base.cpp File Reference
#include <MoFEM.hpp>
#include <BasicFiniteElements.hpp>

Go to the source code of this file.

Classes

struct  ElementsAndOps< DIM >
 
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] More...
 

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

Examples
plot_base.cpp.

Definition at line 29 of file plot_base.cpp.

◆ PostProcEle

Examples
plot_base.cpp.

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]

Examples
plot_base.cpp.

Definition at line 356 of file plot_base.cpp.

356  {
357 
358  // Initialisation of MoFEM/PETSc and MOAB data structures
359  MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
360 
361  try {
362 
363  //! [Register MoFEM discrete manager in PETSc]
364  DMType dm_name = "DMMOFEM";
365  CHKERR DMRegister_MoFEM(dm_name);
366  //! [Register MoFEM discrete manager in PETSc
367 
368  // Add logging channel for example
369  auto core_log = logging::core::get();
370  core_log->add_sink(
371  LogManager::createSink(LogManager::getStrmWorld(), "PLOTBASE"));
372  LogManager::setLog("PLOTBASE");
373  MOFEM_LOG_TAG("PLOTBASE", "plotbase");
374 
375  //! [Create MoAB]
376  moab::Core mb_instance; ///< mesh database
377  moab::Interface &moab = mb_instance; ///< mesh database interface
378  //! [Create MoAB]
379 
380  //! [Create MoFEM]
381  MoFEM::Core core(moab); ///< finite element database
382  MoFEM::Interface &m_field = core; ///< finite element database insterface
383  //! [Create MoFEM]
384 
385  //! [Example]
386  Example ex(m_field);
387  CHKERR ex.runProblem();
388  //! [Example]
389  }
390  CATCH_ERRORS;
391 
393 
394  return 0;
395 }

Variable Documentation

◆ help

char help[] = "...\n\n"
static
Examples
plot_base.cpp.

Definition at line 12 of file plot_base.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr
Initial value:
Examples
plot_base.cpp.

Definition at line 26 of file plot_base.cpp.

help
static char help[]
Definition: plot_base.cpp:12
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:1975
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:535
Example
[Example]
Definition: plastic.cpp:228
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:47
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:372
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1094