v0.13.2
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
minimal_surface_equation.cpp File Reference
#include <stdlib.h>
#include <BasicFiniteElements.hpp>

Go to the source code of this file.

Classes

struct  OpDomainTangentMatrix
 Integrate the domain tangent matrix (LHS) More...
 
struct  OpDomainResidualVector
 Integrate the domain residual vector (RHS) More...
 
struct  MinimalSurfaceEqn
 

Typedefs

using DomainEle = PipelineManager::FaceEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using BoundaryEle = PipelineManager::EdgeEle
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using PostProcEle = PostProcBrokenMeshInMoab< DomainEle >
 
using OpBoundaryMass = FormsIntegrators< BoundaryEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, 1 >
 
using OpBoundaryTimeScalarField = FormsIntegrators< BoundaryEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpBaseTimesScalar< 1 >
 
using OpBoundarySource = FormsIntegrators< BoundaryEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpSource< 1, 1 >
 
using AssemblyDomainEleOp = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::OpBase
 
using AssemblyBoundaryEleOp = FormsIntegrators< BoundaryEleOp >::Assembly< PETSC >::OpBase
 

Functions

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

Variables

static char help [] = "...\n\n"
 
FTensor::Index< 'i', 2 > i
 

Typedef Documentation

◆ AssemblyBoundaryEleOp

Definition at line 22 of file minimal_surface_equation.cpp.

◆ AssemblyDomainEleOp

Definition at line 20 of file minimal_surface_equation.cpp.

◆ BoundaryEle

Definition at line 9 of file minimal_surface_equation.cpp.

◆ BoundaryEleOp

Definition at line 10 of file minimal_surface_equation.cpp.

◆ DomainEle

Definition at line 7 of file minimal_surface_equation.cpp.

◆ DomainEleOp

Definition at line 8 of file minimal_surface_equation.cpp.

◆ OpBoundaryMass

using OpBoundaryMass = FormsIntegrators<BoundaryEleOp>::Assembly< PETSC>::BiLinearForm<GAUSS>::OpMass<1, 1>

Definition at line 13 of file minimal_surface_equation.cpp.

◆ OpBoundarySource

using OpBoundarySource = FormsIntegrators<BoundaryEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpSource<1, 1>

Definition at line 17 of file minimal_surface_equation.cpp.

◆ OpBoundaryTimeScalarField

using OpBoundaryTimeScalarField = FormsIntegrators<BoundaryEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpBaseTimesScalar<1>

Definition at line 15 of file minimal_surface_equation.cpp.

◆ PostProcEle

Definition at line 11 of file minimal_surface_equation.cpp.

Function Documentation

◆ main()

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

Definition at line 457 of file minimal_surface_equation.cpp.

457 {
458
459 // Initialisation of MoFEM/PETSc and MOAB data structures
460 const char param_file[] = "param_file.petsc";
462
463 // Add logging channel for example
464 auto core_log = logging::core::get();
465 core_log->add_sink(
467 LogManager::setLog("EXAMPLE");
468 MOFEM_LOG_TAG("EXAMPLE", "example")
469
470 // Error handling
471 try {
472 // Register MoFEM discrete manager in PETSc
473 DMType dm_name = "DMMOFEM";
474 CHKERR DMRegister_MoFEM(dm_name);
475
476 // Create MOAB instance
477 moab::Core mb_instance; // mesh database
478 moab::Interface &moab = mb_instance; // mesh database interface
479
480 // Create MoFEM instance
481 MoFEM::Core core(moab); // finite element database
482 MoFEM::Interface &m_field = core; // finite element interface
483
484 // Run the main analysis
485 MinimalSurfaceEqn minimal_surface_problem(m_field);
486 CHKERR minimal_surface_problem.runProgram();
487 }
489
490 // Finish work: cleaning memory, getting statistics, etc.
492
493 return 0;
494}
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 LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
Definition: LogManager.cpp:389
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339
static char help[]
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.
static boost::shared_ptr< SinkType > createSink(boost::shared_ptr< std::ostream > stream_ptr, std::string comm_filter)
Create a sink object.
Definition: LogManager.cpp:298
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.
Definition: LogManager.cpp:344

Variable Documentation

◆ help

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

Definition at line 5 of file minimal_surface_equation.cpp.

◆ i

FTensor::Index<'i', 2> i

Definition at line 25 of file minimal_surface_equation.cpp.