v0.13.1
Classes | Functions | Variables
navier_stokes.cpp File Reference
#include <BasicFiniteElements.hpp>

Go to the source code of this file.

Classes

struct  NavierStokesExample
 [Example Navier Stokes] More...
 

Functions

int main (int argc, char *argv[])
 [Post process] More...
 

Variables

static char help [] = "Navier-Stokes Example\n"
 

Function Documentation

◆ main()

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

[Post process]

[Main function]

Examples
navier_stokes.cpp.

Definition at line 680 of file navier_stokes.cpp.

680 {
681
682 const char param_file[] = "param_file.petsc";
683 // Initialise MoFEM
685
686
687
688 try {
689
690 // Create mesh database
691 moab::Core mb_instance; // create database
692 moab::Interface &moab = mb_instance; // create interface to database
693
694 // Create MoFEM database and link it to MoAB
695 MoFEM::Core core(moab);
696 MoFEM::Interface &m_field = core;
697
698 NavierStokesExample ex(m_field);
699 CHKERR ex.runProblem();
700 }
702
703 // finish work cleaning memory, getting statistics, etc
705 return 0;
706}
std::string param_file
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:385
#define CHKERR
Inline error check.
Definition: definitions.h:548
CoreTmp< 0 > Core
Definition: Core.hpp:1096
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1965
static char help[]
Core (interface) class.
Definition: Core.hpp:92
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:85
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:125
Deprecated interface functions.
[Example Navier Stokes]

Variable Documentation

◆ help

char help[] = "Navier-Stokes Example\n"
static
Examples
navier_stokes.cpp.

Definition at line 28 of file navier_stokes.cpp.