v0.16.0
Loading...
Searching...
No Matches
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]
 

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

Definition at line 20 of file mixed_poisson.cpp.

◆ OpDomainSource

using OpDomainSource = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpSource<1, 1>

◆ OpHdivHdiv

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

◆ OpHdivU

using OpHdivU = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpMixDivTimesScalar<2>

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]

Definition at line 567 of file mixed_poisson.cpp.

567 {
568 // Initialisation of MoFEM/PETSc and MOAB data structures
569 const char param_file[] = "param_file.petsc";
570 MoFEM::Core::Initialize(&argc, &argv, param_file, help);
571
572 // Add logging channel for example problem
573 auto core_log = logging::core::get();
574 core_log->add_sink(
576 LogManager::setLog("EXAMPLE");
577 MOFEM_LOG_TAG("EXAMPLE", "MixedPoisson");
578
579 try {
580 //! [Register MoFEM discrete manager in PETSc]
581 DMType dm_name = "DMMOFEM";
582 CHKERR DMRegister_MoFEM(dm_name);
583 //! [Register MoFEM discrete manager in PETSc
584
585 //! [Create MoAB]
586 moab::Core mb_instance; ///< mesh database
587 moab::Interface &moab = mb_instance; ///< mesh database interface
588 //! [Create MoAB]
589
590 //! [Create MoFEM]
591 MoFEM::Core core(moab); ///< finite element database
592 MoFEM::Interface &m_field = core; ///< finite element database interface
593 //! [Create MoFEM]
594
595 //! [MixedPoisson]
596 MixedPoisson ex(m_field);
597 CHKERR ex.runProblem();
598 //! [MixedPoisson]
599 }
601
603}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition DMMoFEM.cpp:43
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
static char help[]
Core (interface) class.
Definition Core.hpp:83
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition Core.cpp:68
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition Core.cpp:123
Deprecated interface functions.
static boost::shared_ptr< SinkType > createSink(boost::shared_ptr< std::ostream > stream_ptr, std::string comm_filter)
Create a sink object.
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.

◆ sqr()

double sqr ( double  x)
inline

Definition at line 29 of file mixed_poisson.cpp.

29{ return x * x; }

Variable Documentation

◆ help

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