v0.9.1
Classes | Typedefs | Functions | Variables
basic_radiation.cpp File Reference
#include <MoFEM.hpp>
#include <BasicFiniteElements.hpp>
#include <BaseOps.hpp>

Go to the source code of this file.

Classes

struct  Example
 [Example] More...
 
struct  Example::OpRadiationLhs
 
struct  Example::OpRadiationRhs
 
struct  Example::OpFluxRhs
 

Typedefs

using DomainEle = FaceElementForcesAndSourcesCoreBase
 
using DomainEleOp = DomainEle::UserDataOperator
 
using BoundaryEle = EdgeElementForcesAndSourcesCoreBase
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using EntData = DataForcesAndSourcesCore::EntData
 
using OpDomainGradGrad = OpTools< DomainEleOp >::OpGradGrad< 2 >
 
using OpVolGradGradResidual = OpTools< DomainEleOp >::OpGradGradResidual< 2 >
 
using OpFaceBase = OpTools< BoundaryEleOp >::OpBase
 

Functions

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

Variables

static char help [] = "...\n\n"
 
constexpr double emissivity = 1
 
constexpr double boltzmann_constant = 5.670367e-2
 
constexpr double Beta = emissivity * boltzmann_constant
 
constexpr double T_ambient = 3
 
constexpr double Flux = -1.0e6
 

Typedef Documentation

◆ BoundaryEle

Definition at line 34 of file basic_radiation.cpp.

◆ BoundaryEleOp

Definition at line 35 of file basic_radiation.cpp.

◆ DomainEle

Definition at line 32 of file basic_radiation.cpp.

◆ DomainEleOp

Definition at line 33 of file basic_radiation.cpp.

◆ EntData

Examples
basic_radiation.cpp.

Definition at line 36 of file basic_radiation.cpp.

◆ OpDomainGradGrad

using OpDomainGradGrad = OpTools<DomainEleOp>::OpGradGrad<2>
Examples
basic_radiation.cpp.

Definition at line 40 of file basic_radiation.cpp.

◆ OpFaceBase

using OpFaceBase = OpTools<BoundaryEleOp>::OpBase
Examples
basic_radiation.cpp.

Definition at line 42 of file basic_radiation.cpp.

◆ OpVolGradGradResidual

using OpVolGradGradResidual = OpTools<DomainEleOp>::OpGradGradResidual<2>
Examples
basic_radiation.cpp.

Definition at line 41 of file basic_radiation.cpp.

Function Documentation

◆ main()

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

[Check results]

Examples
basic_radiation.cpp.

Definition at line 255 of file basic_radiation.cpp.

255  {
256 
257  MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
258 
259  try {
260 
261  //! [Register MoFEM discrete manager in PETSc]
262  DMType dm_name = "DMMOFEM";
263  CHKERR DMRegister_MoFEM(dm_name);
264  //! [Register MoFEM discrete manager in PETSc
265 
266  //! [Create MoAB]
267  moab::Core mb_instance; ///< mesh database
268  moab::Interface &moab = mb_instance; ///< mesh database interface
269  //! [Create MoAB]
270 
271  //! [Create MoFEM]
272  MoFEM::Core core(moab); ///< finite element database
273  MoFEM::Interface &m_field = core; ///< finite element database insterface
274  //! [Create MoFEM]
275 
276  //! [Load mesh]
277  Simple *simple = m_field.getInterface<Simple>();
278  CHKERR simple->getOptions();
279  CHKERR simple->loadFile("");
280  //! [Load mesh]
281 
282  //! [Example]
283  Example ex(m_field);
284  CHKERR ex.runProblem();
285  //! [Example]
286  }
287  CATCH_ERRORS;
288 
290 }
Deprecated interface functions.
[Example]
static char help[]
Core (interface) class.
Definition: Core.hpp:50
Simple interface for fast problem set-up.
Definition: Simple.hpp:36
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:51
MoFEMErrorCode getInterface(const MOFEMuuid &uuid, IFACE *&iface) const
Get interface by uuid and return reference to pointer of interface.
void simple(double P1[], double P2[], double P3[], double c[], const int N)
Definition: acoustic.cpp:69
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:48
#define CHKERR
Inline error check.
Definition: definitions.h:601
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1791
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:438
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:61

Variable Documentation

◆ Beta

constexpr double Beta = emissivity * boltzmann_constant
Examples
basic_radiation.cpp.

Definition at line 46 of file basic_radiation.cpp.

◆ boltzmann_constant

constexpr double boltzmann_constant = 5.670367e-2
Examples
basic_radiation.cpp.

Definition at line 45 of file basic_radiation.cpp.

◆ emissivity

constexpr double emissivity = 1
Examples
basic_radiation.cpp.

Definition at line 44 of file basic_radiation.cpp.

◆ Flux

constexpr double Flux = -1.0e6
Examples
basic_radiation.cpp.

Definition at line 49 of file basic_radiation.cpp.

◆ help

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

Definition at line 28 of file basic_radiation.cpp.

◆ T_ambient

constexpr double T_ambient = 3
Examples
basic_radiation.cpp.

Definition at line 48 of file basic_radiation.cpp.