v0.13.1
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 = 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 19 of file helmholtz.cpp.

◆ DomainEleOp

Definition at line 20 of file helmholtz.cpp.

◆ EdgeEle

Definition at line 21 of file helmholtz.cpp.

◆ EdgeEleOp

Definition at line 22 of file helmholtz.cpp.

◆ OpBoundaryMass

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

Definition at line 30 of file helmholtz.cpp.

◆ OpBoundarySource

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

Definition at line 32 of file helmholtz.cpp.

◆ OpDomainGradGrad

Examples
helmholtz.cpp.

Definition at line 26 of file helmholtz.cpp.

◆ OpDomainMass

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

Definition at line 28 of file helmholtz.cpp.

Function Documentation

◆ main()

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

[Check results]

Examples
helmholtz.cpp.

Definition at line 324 of file helmholtz.cpp.

324 {
325
326 // Initialisation of MoFEM/PETSc and MOAB data structures
327 const char param_file[] = "param_file.petsc";
329
330 try {
331
332 //! [Register MoFEM discrete manager in PETSc]
333 DMType dm_name = "DMMOFEM";
334 CHKERR DMRegister_MoFEM(dm_name);
335 //! [Register MoFEM discrete manager in PETSc
336
337 //! [Create MoAB]
338 moab::Core mb_instance; ///< mesh database
339 moab::Interface &moab = mb_instance; ///< mesh database interface
340 //! [Create MoAB]
341
342 //! [Create MoFEM]
343 MoFEM::Core core(moab); ///< finite element database
344 MoFEM::Interface &m_field = core; ///< finite element database insterface
345 //! [Create MoFEM]
346
347 //! [Example]
348 Example ex(m_field);
349 CHKERR ex.runProblem();
350 //! [Example]
351 }
353
355}
std::string param_file
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:47
static char help[]
Definition: helmholtz.cpp:15
CoreTmp< 0 > Core
Definition: Core.hpp:1086
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1955
[Example]
Definition: plastic.cpp:120
Core (interface) class.
Definition: Core.hpp:82
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
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
Deprecated interface functions.

Variable Documentation

◆ help

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

Definition at line 15 of file helmholtz.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 2
constexpr
Examples
helmholtz.cpp.

Definition at line 24 of file helmholtz.cpp.