v0.14.0
Loading...
Searching...
No Matches
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 PostProcEle = PostProcBrokenMeshInMoab<DomainEle>
 
using OpBoundaryMass
 
using OpBoundaryTimeScalarField
 
using OpBoundarySource
 
using AssemblyDomainEleOp
 
using AssemblyBoundaryEleOp
 

Functions

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

Variables

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

Typedef Documentation

◆ AssemblyBoundaryEleOp

◆ AssemblyDomainEleOp

◆ OpBoundaryMass

◆ OpBoundarySource

◆ OpBoundaryTimeScalarField

◆ PostProcEle

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(
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}
#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: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.
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.

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.