v0.14.0
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
heat_method.cpp File Reference
#include <MoFEM.hpp>
#include <BasicFiniteElements.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
 
using OpMass
 

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 30 of file heat_method.cpp.

◆ DomainEleOp

Definition at line 31 of file heat_method.cpp.

◆ EntData

Definition at line 32 of file heat_method.cpp.

◆ OpGradGrad

using OpGradGrad
Initial value:
FormsIntegrators< DomainEleOp >::Assembly< A >::BiLinearForm< I >::OpGradGrad< 1, FIELD_DIM, SPACE_DIM > OpGradGrad

Definition at line 37 of file heat_method.cpp.

◆ OpMass

using OpMass
Initial value:
FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, SPACE_DIM > OpMass

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

382 {
383
384 // Initialisation of MoFEM/PETSc and MOAB data structures
385 const char param_file[] = "param_file.petsc";
387
388 // Add logging channel for example
389 auto core_log = logging::core::get();
390 core_log->add_sink(
392 LogManager::setLog("EXAMPLE");
393 MOFEM_LOG_TAG("EXAMPLE", "example");
394
395 try {
396
397 //! [Register MoFEM discrete manager in PETSc]
398 DMType dm_name = "DMMOFEM";
399 CHKERR DMRegister_MoFEM(dm_name);
400 //! [Register MoFEM discrete manager in PETSc
401
402 //! [Create MoAB]
403 moab::Core mb_instance; ///< mesh database
404 moab::Interface &moab = mb_instance; ///< mesh database interface
405 //! [Create MoAB]
406
407 //! [Create MoFEM]
408 MoFEM::Core core(moab); ///< finite element database
409 MoFEM::Interface &m_field = core; ///< finite element database insterface
410 //! [Create MoFEM]
411
412 //! [Example]
413 Example ex(m_field);
414 CHKERR ex.runProblem();
415 //! [Example]
416 }
418
420}
std::string param_file
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
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.
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
static char help[]
[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.
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 24 of file heat_method.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 3
constexpr

Definition at line 34 of file heat_method.cpp.