v0.14.0
Loading...
Searching...
No Matches
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
 
using OpDomainMass
 
using OpBoundaryMass
 
using OpBoundarySource
 

Functions

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

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

◆ OpBoundarySource

◆ OpDomainGradGrad

Initial value:
Examples
helmholtz.cpp.

Definition at line 24 of file helmholtz.cpp.

◆ OpDomainMass

using OpDomainMass

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]

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";
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 }
342
344}
std::string param_file
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition DMMoFEM.cpp:47
static char help[]
Definition helmholtz.cpp:13
[Example]
Definition plastic.cpp:228
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

Definition at line 13 of file helmholtz.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = 2
constexpr

Definition at line 22 of file helmholtz.cpp.