v0.16.3
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 566 of file mixed_poisson.cpp.

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

Definition at line 29 of file mixed_poisson.cpp.

29{ return x * x; }

Variable Documentation

◆ help

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