v0.14.0
Loading...
Searching...
No Matches
Classes | Typedefs | 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...
 

Typedefs

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

Functions

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

Variables

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

Typedef Documentation

◆ PostProcFace

Definition at line 11 of file navier_stokes.cpp.

◆ PostProcVol

Definition at line 10 of file navier_stokes.cpp.

Function Documentation

◆ main()

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

[Post process]

[Main function]

Definition at line 717 of file navier_stokes.cpp.

717 {
718
719 const char param_file[] = "param_file.petsc";
720 // Initialise MoFEM
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 }
737
738 // finish work cleaning memory, getting statistics, etc
740 return 0;
741}
std::string param_file
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
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.
[Example Navier Stokes]

Variable Documentation

◆ help

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

Definition at line 17 of file navier_stokes.cpp.