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

Go to the source code of this file.

Classes

struct  Example
 [Example] More...
 
struct  Example::OpRhs
 

Typedefs

using DomainEle = PipelineManager::FaceEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using EntData = EntitiesFieldData::EntData
 
using OpGradGrad = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpGradGrad< 1, 1, 3 >
 
using OpMass = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, 1 >
 

Functions

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

Variables

static char help [] = "...\n\n"
 
double dt = 2
 
constexpr int SPACE_DIM = 3
 

Typedef Documentation

◆ DomainEle

Definition at line 31 of file heat_method.cpp.

◆ DomainEleOp

Definition at line 32 of file heat_method.cpp.

◆ EntData

Definition at line 33 of file heat_method.cpp.

◆ OpGradGrad

using OpGradGrad = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpGradGrad<1, 1, 3>

Definition at line 38 of file heat_method.cpp.

◆ OpMass

using OpMass = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpMass<1, 1>

Definition at line 42 of file heat_method.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 377 of file heat_method.cpp.

377 {
378
379 // Initialisation of MoFEM/PETSc and MOAB data structures
380 const char param_file[] = "param_file.petsc";
381 MoFEM::Core::Initialize(&argc, &argv, param_file, help);
382
383 // Add logging channel for example
384 auto core_log = logging::core::get();
385 core_log->add_sink(
387 LogManager::setLog("EXAMPLE");
388 MOFEM_LOG_TAG("EXAMPLE", "example");
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 //! [Create MoAB]
398 moab::Core mb_instance; ///< mesh database
399 moab::Interface &moab = mb_instance; ///< mesh database interface
400 //! [Create MoAB]
401
402 //! [Create MoFEM]
403 MoFEM::Core core(moab); ///< finite element database
404 MoFEM::Interface &m_field = core; ///< finite element database insterface
405 //! [Create MoFEM]
406
407 //! [Example]
408 Example ex(m_field);
409 CHKERR ex.runProblem();
410 //! [Example]
411 }
413
415}
#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[]
[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

◆ dt

double dt = 2

◆ help

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

Definition at line 25 of file heat_method.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 3
constexpr

Definition at line 35 of file heat_method.cpp.