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 564 of file mixed_poisson.cpp.

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