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

Go to the source code of this file.

Classes

struct  MixedPoisson
 
struct  MixedPoisson::CommonData
 
struct  MixedPoisson::OpError
 

Typedefs

using DomainEle = PipelineManager::FaceEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using EntData = EntitiesFieldData::EntData
 
using OpHdivHdiv = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 3, 2 >
 
using OpHdivU = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMixDivTimesScalar< 2 >
 
using OpDomainSource = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpSource< 1, 1 >
 

Functions

double sqr (double x)
 
int main (int argc, char *argv[])
 [OpError] More...
 

Variables

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

Typedef Documentation

◆ DomainEle

Definition at line 18 of file mixed_poisson.cpp.

◆ DomainEleOp

Definition at line 19 of file mixed_poisson.cpp.

◆ EntData

Examples
mixed_poisson.cpp.

Definition at line 20 of file mixed_poisson.cpp.

◆ OpDomainSource

using OpDomainSource = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpSource<1, 1>
Examples
mixed_poisson.cpp.

Definition at line 27 of file mixed_poisson.cpp.

◆ OpHdivHdiv

using OpHdivHdiv = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpMass<3, 2>
Examples
mixed_poisson.cpp.

Definition at line 23 of file mixed_poisson.cpp.

◆ OpHdivU

using OpHdivU = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpMixDivTimesScalar<2>
Examples
mixed_poisson.cpp, and test_broken_space.cpp.

Definition at line 25 of file mixed_poisson.cpp.

Function Documentation

◆ main()

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

[OpError]

[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 interface

[Create MoFEM]

[MixedPoisson]

[MixedPoisson]

Examples
mixed_poisson.cpp.

Definition at line 568 of file mixed_poisson.cpp.

568  {
569  // Initialisation of MoFEM/PETSc and MOAB data structures
570  const char param_file[] = "param_file.petsc";
571  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
572 
573  // Add logging channel for example problem
574  auto core_log = logging::core::get();
575  core_log->add_sink(
576  LogManager::createSink(LogManager::getStrmWorld(), "EXAMPLE"));
577  LogManager::setLog("EXAMPLE");
578  MOFEM_LOG_TAG("EXAMPLE", "MixedPoisson");
579 
580  try {
581  //! [Register MoFEM discrete manager in PETSc]
582  DMType dm_name = "DMMOFEM";
583  CHKERR DMRegister_MoFEM(dm_name);
584  //! [Register MoFEM discrete manager in PETSc
585 
586  //! [Create MoAB]
587  moab::Core mb_instance; ///< mesh database
588  moab::Interface &moab = mb_instance; ///< mesh database interface
589  //! [Create MoAB]
590 
591  //! [Create MoFEM]
592  MoFEM::Core core(moab); ///< finite element database
593  MoFEM::Interface &m_field = core; ///< finite element database interface
594  //! [Create MoFEM]
595 
596  //! [MixedPoisson]
597  MixedPoisson ex(m_field);
598  CHKERR ex.runProblem();
599  //! [MixedPoisson]
600  }
601  CATCH_ERRORS;
602 
604 }

◆ sqr()

double sqr ( double  x)
inline
Examples
mixed_poisson.cpp.

Definition at line 29 of file mixed_poisson.cpp.

29 { return x * x; }

Variable Documentation

◆ help

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

Definition at line 14 of file mixed_poisson.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
help
static char help[]
Definition: mixed_poisson.cpp:14
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:43
MOFEM_LOG_TAG
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339
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
MixedPoisson
Definition: mixed_poisson.cpp:31