v0.14.0
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 38 of file heat_method.cpp.

◆ OpMass

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

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]

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";
386  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
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  }
417  CATCH_ERRORS;
418 
420 }

Variable Documentation

◆ dt

double dt = 2

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

help
static char help[]
Definition: heat_method.cpp:24
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
MoFEM::Interface
DeprecatedCoreInterface Interface
Definition: Interface.hpp:2002
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
Example
[Example]
Definition: plastic.cpp:177
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:43
MOFEM_LOG_TAG
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339
MoFEM::CoreTmp< 0 >::Initialize
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
CATCH_ERRORS
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:385
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1140