v0.9.1
Classes | Typedefs | Functions | Variables
lesson5_helmholtz.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...
 

Typedefs

using EntData = DataForcesAndSourcesCore::EntData
 
using DomainEle = FaceElementForcesAndSourcesCoreBase
 
using DomainEleOp = DomainEle::UserDataOperator
 
using EdgeEle = EdgeElementForcesAndSourcesCoreBase
 
using EdgeEleOp = EdgeEle::UserDataOperator
 
using OpDomainGradGrad = OpTools< DomainEleOp >::OpGradGrad< 2 >
 
using OpDomainMass = OpTools< DomainEleOp >::OpMass
 
using OpDomainSource = OpTools< DomainEleOp >::OpSource< 2 >
 
using OpBoundaryMass = OpTools< EdgeEleOp >::OpMass
 

Functions

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

Variables

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

Typedef Documentation

◆ DomainEle

Definition at line 34 of file lesson5_helmholtz.cpp.

◆ DomainEleOp

Definition at line 35 of file lesson5_helmholtz.cpp.

◆ EdgeEle

Definition at line 36 of file lesson5_helmholtz.cpp.

◆ EdgeEleOp

Definition at line 37 of file lesson5_helmholtz.cpp.

◆ EntData

Examples
lesson5_helmholtz.cpp.

Definition at line 32 of file lesson5_helmholtz.cpp.

◆ OpBoundaryMass

using OpBoundaryMass = OpTools<EdgeEleOp>::OpMass
Examples
lesson5_helmholtz.cpp.

Definition at line 44 of file lesson5_helmholtz.cpp.

◆ OpDomainGradGrad

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

Definition at line 41 of file lesson5_helmholtz.cpp.

◆ OpDomainMass

using OpDomainMass = OpTools<DomainEleOp>::OpMass
Examples
lesson5_helmholtz.cpp.

Definition at line 42 of file lesson5_helmholtz.cpp.

◆ OpDomainSource

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

Definition at line 43 of file lesson5_helmholtz.cpp.

Function Documentation

◆ main()

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

[Postprocess results]

Examples
lesson5_helmholtz.cpp.

Definition at line 205 of file lesson5_helmholtz.cpp.

205  {
206 
207  MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
208 
209  try {
210 
211  //! [Register MoFEM discrete manager in PETSc]
212  DMType dm_name = "DMMOFEM";
213  CHKERR DMRegister_MoFEM(dm_name);
214  //! [Register MoFEM discrete manager in PETSc
215 
216  //! [Create MoAB]
217  moab::Core mb_instance; ///< mesh database
218  moab::Interface &moab = mb_instance; ///< mesh database interface
219  //! [Create MoAB]
220 
221  //! [Create MoFEM]
222  MoFEM::Core core(moab); ///< finite element database
223  MoFEM::Interface &m_field = core; ///< finite element database insterface
224  //! [Create MoFEM]
225 
226  //! [Load mesh]
227  Simple *simple = m_field.getInterface<Simple>();
228  CHKERR simple->getOptions();
229  CHKERR simple->loadFile();
230  //! [Load mesh]
231 
232  //! [Example]
233  Example ex(m_field);
234  CHKERR ex.runProblem();
235  //! [Example]
236  }
237  CATCH_ERRORS;
238 
240 }
Deprecated interface functions.
Core (interface) class.
Definition: Core.hpp:50
static char help[]
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:602
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1879
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:439
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:67

Variable Documentation

◆ help

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

Definition at line 28 of file lesson5_helmholtz.cpp.