v0.13.0
Classes | Typedefs | Functions | Variables
helmholtz.cpp File Reference
#include <MoFEM.hpp>
#include <BasicFiniteElements.hpp>

Go to the source code of this file.

Classes

struct  Example
 [Example] More...
 

Typedefs

using DomainEle = FaceElementForcesAndSourcesCoreBase
 
using DomainEleOp = DomainEle::UserDataOperator
 
using EdgeEle = EdgeElementForcesAndSourcesCoreBase
 
using EdgeEleOp = EdgeEle::UserDataOperator
 
using OpDomainGradGrad = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpGradGrad< 1, 1, 2 >
 
using OpDomainMass = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, 1 >
 
using OpBoundaryMass = FormsIntegrators< EdgeEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, 1 >
 
using OpBoundarySource = FormsIntegrators< EdgeEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpSource< 1, 1 >
 

Functions

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

Variables

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

Typedef Documentation

◆ DomainEle

Definition at line 31 of file helmholtz.cpp.

◆ DomainEleOp

Definition at line 32 of file helmholtz.cpp.

◆ EdgeEle

Definition at line 33 of file helmholtz.cpp.

◆ EdgeEleOp

Definition at line 34 of file helmholtz.cpp.

◆ OpBoundaryMass

using OpBoundaryMass = FormsIntegrators<EdgeEleOp>::Assembly< PETSC>::BiLinearForm<GAUSS>::OpMass<1, 1>
Examples
helmholtz.cpp.

Definition at line 40 of file helmholtz.cpp.

◆ OpBoundarySource

using OpBoundarySource = FormsIntegrators<EdgeEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpSource<1, 1>
Examples
helmholtz.cpp.

Definition at line 42 of file helmholtz.cpp.

◆ OpDomainGradGrad

using OpDomainGradGrad = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::BiLinearForm<GAUSS>::OpGradGrad<1, 1, 2>
Examples
helmholtz.cpp.

Definition at line 36 of file helmholtz.cpp.

◆ OpDomainMass

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

Definition at line 38 of file helmholtz.cpp.

Function Documentation

◆ main()

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

[Check results]

Examples
helmholtz.cpp.

Definition at line 305 of file helmholtz.cpp.

305  {
306 
307  // Initialisation of MoFEM/PETSc and MOAB data structures
308  const char param_file[] = "param_file.petsc";
309  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
310 
311  try {
312 
313  //! [Register MoFEM discrete manager in PETSc]
314  DMType dm_name = "DMMOFEM";
315  CHKERR DMRegister_MoFEM(dm_name);
316  //! [Register MoFEM discrete manager in PETSc
317 
318  //! [Create MoAB]
319  moab::Core mb_instance; ///< mesh database
320  moab::Interface &moab = mb_instance; ///< mesh database interface
321  //! [Create MoAB]
322 
323  //! [Create MoFEM]
324  MoFEM::Core core(moab); ///< finite element database
325  MoFEM::Interface &m_field = core; ///< finite element database insterface
326  //! [Create MoFEM]
327 
328  //! [Example]
329  Example ex(m_field);
330  CHKERR ex.runProblem();
331  //! [Example]
332  }
333  CATCH_ERRORS;
334 
336 }
std::string param_file
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:385
#define CHKERR
Inline error check.
Definition: definitions.h:548
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:59
static char help[]
Definition: helmholtz.cpp:27
CoreTmp< 0 > Core
Definition: Core.hpp:1096
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1965
[Example]
Core (interface) class.
Definition: Core.hpp:92
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:85
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:125
Deprecated interface functions.

Variable Documentation

◆ help

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

Definition at line 27 of file helmholtz.cpp.