v0.14.0
Classes | Typedefs | Functions | Variables
minimal_surface_equation.cpp File Reference
#include <stdlib.h>
#include <MoFEM.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 23 of file minimal_surface_equation.cpp.

◆ AssemblyDomainEleOp

Definition at line 21 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 14 of file minimal_surface_equation.cpp.

◆ OpBoundarySource

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

Definition at line 18 of file minimal_surface_equation.cpp.

◆ OpBoundaryTimeScalarField

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

Definition at line 16 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";
461  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
462 
463  // Add logging channel for example
464  auto core_log = logging::core::get();
465  core_log->add_sink(
466  LogManager::createSink(LogManager::getStrmWorld(), "EXAMPLE"));
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  }
488  CATCH_ERRORS;
489 
490  // Finish work: cleaning memory, getting statistics, etc.
492 
493  return 0;
494 }

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.

help
static char help[]
Definition: minimal_surface_equation.cpp:5
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
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
MinimalSurfaceEqn
Definition: minimal_surface_equation.cpp:176
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