v0.10.0
Classes | Typedefs | Functions | Variables
lesson3_poisson.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::CommonData
 [Example] More...
 
struct  Example::OpError
 

Typedefs

using EntData = DataForcesAndSourcesCore::EntData
 
using DomainEle = FaceElementForcesAndSourcesCoreBase
 
using DomainEleOp = DomainEle::UserDataOperator
 
using BoundaryEle = EdgeElementForcesAndSourcesCoreBase
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using OpDomainGradGrad = OpTools< DomainEleOp >::OpGradGrad< 2 >
 
using OpDomainSource = OpTools< DomainEleOp >::OpSource< 2 >
 
using OpBoundaryMass = OpTools< BoundaryEleOp >::OpMass
 
using OpBoundarySource = OpTools< BoundaryEleOp >::OpSource< 2 >
 

Functions

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

Variables

static char help [] = "...\n\n"
 

Typedef Documentation

◆ BoundaryEle

Definition at line 37 of file lesson3_poisson.cpp.

◆ BoundaryEleOp

Definition at line 38 of file lesson3_poisson.cpp.

◆ DomainEle

Definition at line 35 of file lesson3_poisson.cpp.

◆ DomainEleOp

Examples
lesson3_poisson.cpp, and OpPostProcElastic.hpp.

Definition at line 36 of file lesson3_poisson.cpp.

◆ EntData

Examples
lesson3_poisson.cpp.

Definition at line 34 of file lesson3_poisson.cpp.

◆ OpBoundaryMass

Examples
lesson3_poisson.cpp.

Definition at line 44 of file lesson3_poisson.cpp.

◆ OpBoundarySource

using OpBoundarySource = OpTools<BoundaryEleOp>::OpSource<2>
Examples
lesson3_poisson.cpp.

Definition at line 45 of file lesson3_poisson.cpp.

◆ OpDomainGradGrad

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

Definition at line 42 of file lesson3_poisson.cpp.

◆ OpDomainSource

using OpDomainSource = OpTools<DomainEleOp>::OpSource<2>
Examples
lesson3_poisson.cpp.

Definition at line 43 of file lesson3_poisson.cpp.

Function Documentation

◆ main()

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

[Solver]

Examples
lesson3_poisson.cpp.

Definition at line 258 of file lesson3_poisson.cpp.

258  {
259 
260  MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
261 
262  try {
263 
264  //! [Register MoFEM discrete manager in PETSc]
265  DMType dm_name = "DMMOFEM";
266  CHKERR DMRegister_MoFEM(dm_name);
267  //! [Register MoFEM discrete manager in PETSc
268 
269  //! [Create MoAB]
270  moab::Core mb_instance; ///< mesh database
271  moab::Interface &moab = mb_instance; ///< mesh database interface
272  //! [Create MoAB]
273 
274  //! [Create MoFEM]
275  MoFEM::Core core(moab); ///< finite element database
276  MoFEM::Interface &m_field = core; ///< finite element database insterface
277  //! [Create MoFEM]
278 
279  //! [Load mesh]
280  Simple *simple = m_field.getInterface<Simple>();
281  CHKERR simple->getOptions();
282  CHKERR simple->loadFile("");
283  //! [Load mesh]
284 
285  //! [Example]
286  Example ex(m_field);
287  CHKERR ex.runProblem();
288  //! [Example]
289  }
290  CATCH_ERRORS;
291 
293 }
Deprecated interface functions.
CoreTmp< 0 > Core
Definition: Core.hpp:1129
[Example]
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:60
Simple interface for fast problem set-up.
Definition: Simple.hpp:36
static char help[]
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:604
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1943
Core (interface) class.
Definition: Core.hpp:77
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:441
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:100

Variable Documentation

◆ help

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

Definition at line 30 of file lesson3_poisson.cpp.