v0.14.0
Classes | Typedefs | Functions | Variables
navier_stokes.cpp File Reference
#include <MoFEM.hpp>

Go to the source code of this file.

Classes

struct  NavierStokesExample
 [Example Navier Stokes] More...
 

Typedefs

using PostProcVol = PostProcBrokenMeshInMoab< VolumeElementForcesAndSourcesCore >
 
using PostProcFace = PostProcBrokenMeshInMoab< FaceElementForcesAndSourcesCore >
 

Functions

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

Variables

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

Typedef Documentation

◆ PostProcFace

Definition at line 12 of file navier_stokes.cpp.

◆ PostProcVol

Definition at line 11 of file navier_stokes.cpp.

Function Documentation

◆ main()

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

[Post process]

[Main function]

Examples
navier_stokes.cpp.

Definition at line 717 of file navier_stokes.cpp.

717  {
718 
719  const char param_file[] = "param_file.petsc";
720  // Initialise MoFEM
721  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
722 
723  try {
724 
725  // Create mesh database
726  moab::Core mb_instance; // create database
727  moab::Interface &moab = mb_instance; // create interface to database
728 
729  // Create MoFEM database and link it to MoAB
730  MoFEM::Core core(moab);
731  MoFEM::Interface &m_field = core;
732 
733  NavierStokesExample ex(m_field);
734  CHKERR ex.runProblem();
735  }
736  CATCH_ERRORS;
737 
738  // finish work cleaning memory, getting statistics, etc
740  return 0;
741 }

Variable Documentation

◆ help

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

Definition at line 17 of file navier_stokes.cpp.

MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
help
static char help[]
Definition: navier_stokes.cpp:17
NavierStokesExample
[Example Navier Stokes]
Definition: navier_stokes.cpp:22
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::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