v0.14.0
Loading...
Searching...
No Matches
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

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 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(
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 }
391
393
394 return 0;
395}
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:47
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
Definition: LogManager.cpp:389
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339
static char help[]
Definition: plot_base.cpp:12
[Example]
Definition: plastic.cpp:228
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.
Definition: LogManager.cpp:298
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.
Definition: LogManager.cpp:344

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
plot_base.cpp.

Definition at line 26 of file plot_base.cpp.