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

Go to the source code of this file.

Classes

struct  Example
 [Example] More...
 

Typedefs

using DomainEle = FaceElementForcesAndSourcesCore
 
using DomainEleOp = DomainEle::UserDataOperator
 
using EdgeEle = EdgeElementForcesAndSourcesCore
 
using EdgeEleOp = EdgeEle::UserDataOperator
 
using OpDomainGradGrad = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpGradGrad< 1, 1, SPACE_DIM >
 
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"
 
constexpr int SPACE_DIM = 2
 

Typedef Documentation

◆ DomainEle

Definition at line 17 of file helmholtz.cpp.

◆ DomainEleOp

Definition at line 18 of file helmholtz.cpp.

◆ EdgeEle

Definition at line 19 of file helmholtz.cpp.

◆ EdgeEleOp

Definition at line 20 of file helmholtz.cpp.

◆ OpBoundaryMass

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

Definition at line 29 of file helmholtz.cpp.

◆ OpBoundarySource

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

Definition at line 31 of file helmholtz.cpp.

◆ OpDomainGradGrad

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

Definition at line 25 of file helmholtz.cpp.

◆ OpDomainMass

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

Definition at line 27 of file helmholtz.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
helmholtz.cpp.

Definition at line 313 of file helmholtz.cpp.

313  {
314 
315  // Initialisation of MoFEM/PETSc and MOAB data structures
316  const char param_file[] = "param_file.petsc";
317  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
318 
319  try {
320 
321  //! [Register MoFEM discrete manager in PETSc]
322  DMType dm_name = "DMMOFEM";
323  CHKERR DMRegister_MoFEM(dm_name);
324  //! [Register MoFEM discrete manager in PETSc
325 
326  //! [Create MoAB]
327  moab::Core mb_instance; ///< mesh database
328  moab::Interface &moab = mb_instance; ///< mesh database interface
329  //! [Create MoAB]
330 
331  //! [Create MoFEM]
332  MoFEM::Core core(moab); ///< finite element database
333  MoFEM::Interface &m_field = core; ///< finite element database insterface
334  //! [Create MoFEM]
335 
336  //! [Example]
337  Example ex(m_field);
338  CHKERR ex.runProblem();
339  //! [Example]
340  }
341  CATCH_ERRORS;
342 
344 }

Variable Documentation

◆ help

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

Definition at line 13 of file helmholtz.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 2
constexpr
Examples
helmholtz.cpp.

Definition at line 22 of file helmholtz.cpp.

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:2010
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
Example
[Example]
Definition: plastic.cpp:177
help
static char help[]
Definition: helmholtz.cpp:13
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:43
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:1148