v0.15.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 383 of file heat_method.cpp.

383 {
384
385 // Initialisation of MoFEM/PETSc and MOAB data structures
386 const char param_file[] = "param_file.petsc";
387 MoFEM::Core::Initialize(&argc, &argv, param_file, help);
388
389 // Add logging channel for example
390 auto core_log = logging::core::get();
391 core_log->add_sink(
393 LogManager::setLog("EXAMPLE");
394 MOFEM_LOG_TAG("EXAMPLE", "example");
395
396 try {
397
398 //! [Register MoFEM discrete manager in PETSc]
399 DMType dm_name = "DMMOFEM";
400 CHKERR DMRegister_MoFEM(dm_name);
401 //! [Register MoFEM discrete manager in PETSc
402
403 //! [Create MoAB]
404 moab::Core mb_instance; ///< mesh database
405 moab::Interface &moab = mb_instance; ///< mesh database interface
406 //! [Create MoAB]
407
408 //! [Create MoFEM]
409 MoFEM::Core core(moab); ///< finite element database
410 MoFEM::Interface &m_field = core; ///< finite element database insterface
411 //! [Create MoFEM]
412
413 //! [Example]
414 Example ex(m_field);
415 CHKERR ex.runProblem();
416 //! [Example]
417 }
419
421}
#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:216
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

◆ 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.