v0.13.2
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 = 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>

Definition at line 28 of file helmholtz.cpp.

◆ OpBoundarySource

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

Definition at line 30 of file helmholtz.cpp.

◆ OpDomainGradGrad

Examples
helmholtz.cpp.

Definition at line 24 of file helmholtz.cpp.

◆ OpDomainMass

using OpDomainMass = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::BiLinearForm<GAUSS>::OpMass<1, 1>

Definition at line 26 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]

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