v0.13.1
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 = 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] More...
 

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

Examples
heat_method.cpp.

Definition at line 32 of file heat_method.cpp.

◆ OpGradGrad

using OpGradGrad = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpGradGrad<1, 1, 3>
Examples
heat_method.cpp.

Definition at line 37 of file heat_method.cpp.

◆ OpMass

using OpMass = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpMass<1, 1>
Examples
heat_method.cpp.

Definition at line 41 of file heat_method.cpp.

Function Documentation

◆ main()

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

[Check results]

Examples
heat_method.cpp.

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(
391 LogManager::createSink(LogManager::getStrmWorld(), "EXAMPLE"));
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.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:47
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:332
static char help[]
Definition: heat_method.cpp:24
CoreTmp< 0 > Core
Definition: Core.hpp:1086
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1955
[Example]
Definition: plastic.cpp:120
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.

Variable Documentation

◆ dt

double dt = 2
Examples
heat_method.cpp, and lorentz_force.cpp.

Definition at line 26 of file heat_method.cpp.

◆ help

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

Definition at line 24 of file heat_method.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 3
constexpr
Examples
heat_method.cpp.

Definition at line 34 of file heat_method.cpp.