LifeV
NavierStokesCavity Class Reference

#include <NavierStokesCavity.hpp>

+ Inheritance diagram for NavierStokesCavity:
+ Collaboration diagram for NavierStokesCavity:

Static Private Attributes

static const Int LEFTWALL = 4
 
static const Int RIGHTWALL = 2
 
static const Int FRONTWALL = 1
 
static const Int BACKWALL = 3
 
static const Int TOPWALL = 6
 
static const Int BOTTOMWALL = 5
 
static const Int BOTTOMEDGE1 = 7
 
static const Int BOTTOMEDGE2 = 8
 
static const Int BOTTOMEDGE3 = 9
 
static const Int BOTTOMEDGE4 = 10
 
static const Int SIDEEDGE1 = 11
 
static const Int SIDEEDGE2 = 12
 
static const Int SIDEEDGE3 = 13
 
static const Int SIDEEDGE4 = 14
 
static const Int TOPEDGE1 = 15
 
static const Int TOPEDGE2 = 16
 
static const Int TOPEDGE3 = 17
 
static const Int TOPEDGE4 = 18
 
static const Int BOTTOMCORNER1 = 19
 
static const Int BOTTOMCORNER2 = 20
 
static const Int BOTTOMCORNER3 = 21
 
static const Int BOTTOMCORNER4 = 22
 
static const Int TOPCORNER1 = 23
 
static const Int TOPCORNER2 = 24
 
static const Int TOPCORNER3 = 25
 
static const Int TOPCORNER4 = 26
 

Constructors, destructor

 NavierStokesCavity ()
 Empty constructor. More...
 
virtual ~NavierStokesCavity ()
 Destructor. More...
 

Methods

void showMe (std::ostream &output=std::cout) const
 Display general information about the problem. More...
 

Boundary conditions methods

static Real lidBC (const LifeV::Real &, const LifeV::Real &, const LifeV::Real &, const LifeV::Real &, const LifeV::ID &i)
 
static Real fZero (const LifeV::Real &, const LifeV::Real &, const LifeV::Real &, const LifeV::Real &, const LifeV::ID &)
 

Get Methods

void mesh (std::shared_ptr< RegionMesh< LinearTetra > > &meshPart) const
 Getter for the problem mesh. More...
 
void boundaryConditions (std::shared_ptr< BCHandler > bcHandler) const
 Getter for the boundary conditions in the provided BCHandler. More...
 
std::string name () const
 Returns the name of the problem. More...
 

Additional Inherited Members

- Public Types inherited from NavierStokesProblem< RegionMesh< LinearTetra > >
typedef Real(* function_Type) (const Real &, const Real &, const Real &, const Real &, const ID &)
 
- Public Member Functions inherited from NavierStokesProblem< RegionMesh< LinearTetra > >
 NavierStokesProblem ()
 
virtual ~NavierStokesProblem ()
 
virtual bool hasExactSolution () const
 Returns true if the problem has an exact solution. More...
 
virtual function_Type xexact ()
 Returns the value of the exact solution. More...
 
virtual function_Type uexact ()
 Returns the value of the exact solution (velocity components only) More...
 
virtual function_Type uderexact ()
 Returns the value of the derivative of the exact solution with respect to the time (velocity components only) More...
 
virtual function_Type pexact ()
 Returns the value of the exact solution (pressure component only) More...
 
void setMesh (const UInt &refinement, const std::string &ressourcesPath="./Ressources/")
 Setup the problem mesh. More...
 
virtual void setViscosity (const Real &viscosity)
 Set the viscosity of the fluid. More...
 
virtual void setDensity (const Real &density)
 Set the density of the fluid. More...
 
Real viscosity () const
 Returns the viscosity. More...
 
Real density () const
 Returns the density. More...
 
virtual function_Type force ()
 Returns the value of the forces. More...
 
- Static Public Member Functions inherited from NavierStokesProblem< RegionMesh< LinearTetra > >
static Real nullFunction (const Real &, const Real &, const Real &, const Real &, const ID &)
 
- Protected Attributes inherited from NavierStokesProblem< RegionMesh< LinearTetra > >
UInt M_refinement
 
std::string M_resourcesPath
 
Real M_viscosity
 
Real M_density
 

Detailed Description

Definition at line 44 of file NavierStokesCavity.hpp.

Constructor & Destructor Documentation

◆ NavierStokesCavity()

Empty constructor.

Definition at line 74 of file NavierStokesCavity.cpp.

◆ ~NavierStokesCavity()

~NavierStokesCavity ( )
virtual

Destructor.

Definition at line 80 of file NavierStokesCavity.cpp.

Member Function Documentation

◆ showMe()

void showMe ( std::ostream &  output = std::cout) const
virtual

Display general information about the problem.

Parameters
outputspecify the output stream (std::cout by default)

Implements NavierStokesProblem< RegionMesh< LinearTetra > >.

Definition at line 86 of file NavierStokesCavity.cpp.

◆ lidBC()

Real lidBC ( const LifeV::Real ,
const LifeV::Real ,
const LifeV::Real ,
const LifeV::Real ,
const LifeV::ID i 
)
static

Definition at line 92 of file NavierStokesCavity.cpp.

◆ fZero()

Real fZero ( const LifeV::Real ,
const LifeV::Real ,
const LifeV::Real ,
const LifeV::Real ,
const LifeV::ID  
)
static

Definition at line 108 of file NavierStokesCavity.cpp.

◆ mesh()

void mesh ( std::shared_ptr< RegionMesh< LinearTetra > > &  meshPart) const
virtual

Getter for the problem mesh.

Implements NavierStokesProblem< RegionMesh< LinearTetra > >.

Definition at line 118 of file NavierStokesCavity.cpp.

◆ boundaryConditions()

void boundaryConditions ( std::shared_ptr< BCHandler bcHandler) const
virtual

Getter for the boundary conditions in the provided BCHandler.

Parameters
bcHandlershared pointer on a BCHandler object

Implements NavierStokesProblem< RegionMesh< LinearTetra > >.

Definition at line 133 of file NavierStokesCavity.cpp.

◆ name()

std::string name ( ) const
virtual

Returns the name of the problem.

Implements NavierStokesProblem< RegionMesh< LinearTetra > >.

Definition at line 170 of file NavierStokesCavity.cpp.

Field Documentation

◆ LEFTWALL

const Int LEFTWALL = 4
staticprivate

Definition at line 50 of file NavierStokesCavity.hpp.

◆ RIGHTWALL

const Int RIGHTWALL = 2
staticprivate

Definition at line 51 of file NavierStokesCavity.hpp.

◆ FRONTWALL

const Int FRONTWALL = 1
staticprivate

Definition at line 52 of file NavierStokesCavity.hpp.

◆ BACKWALL

const Int BACKWALL = 3
staticprivate

Definition at line 53 of file NavierStokesCavity.hpp.

◆ TOPWALL

const Int TOPWALL = 6
staticprivate

Definition at line 54 of file NavierStokesCavity.hpp.

◆ BOTTOMWALL

const Int BOTTOMWALL = 5
staticprivate

Definition at line 55 of file NavierStokesCavity.hpp.

◆ BOTTOMEDGE1

const Int BOTTOMEDGE1 = 7
staticprivate

Definition at line 57 of file NavierStokesCavity.hpp.

◆ BOTTOMEDGE2

const Int BOTTOMEDGE2 = 8
staticprivate

Definition at line 58 of file NavierStokesCavity.hpp.

◆ BOTTOMEDGE3

const Int BOTTOMEDGE3 = 9
staticprivate

Definition at line 59 of file NavierStokesCavity.hpp.

◆ BOTTOMEDGE4

const Int BOTTOMEDGE4 = 10
staticprivate

Definition at line 60 of file NavierStokesCavity.hpp.

◆ SIDEEDGE1

const Int SIDEEDGE1 = 11
staticprivate

Definition at line 61 of file NavierStokesCavity.hpp.

◆ SIDEEDGE2

const Int SIDEEDGE2 = 12
staticprivate

Definition at line 62 of file NavierStokesCavity.hpp.

◆ SIDEEDGE3

const Int SIDEEDGE3 = 13
staticprivate

Definition at line 63 of file NavierStokesCavity.hpp.

◆ SIDEEDGE4

const Int SIDEEDGE4 = 14
staticprivate

Definition at line 64 of file NavierStokesCavity.hpp.

◆ TOPEDGE1

const Int TOPEDGE1 = 15
staticprivate

Definition at line 65 of file NavierStokesCavity.hpp.

◆ TOPEDGE2

const Int TOPEDGE2 = 16
staticprivate

Definition at line 66 of file NavierStokesCavity.hpp.

◆ TOPEDGE3

const Int TOPEDGE3 = 17
staticprivate

Definition at line 67 of file NavierStokesCavity.hpp.

◆ TOPEDGE4

const Int TOPEDGE4 = 18
staticprivate

Definition at line 68 of file NavierStokesCavity.hpp.

◆ BOTTOMCORNER1

const Int BOTTOMCORNER1 = 19
staticprivate

Definition at line 70 of file NavierStokesCavity.hpp.

◆ BOTTOMCORNER2

const Int BOTTOMCORNER2 = 20
staticprivate

Definition at line 71 of file NavierStokesCavity.hpp.

◆ BOTTOMCORNER3

const Int BOTTOMCORNER3 = 21
staticprivate

Definition at line 72 of file NavierStokesCavity.hpp.

◆ BOTTOMCORNER4

const Int BOTTOMCORNER4 = 22
staticprivate

Definition at line 73 of file NavierStokesCavity.hpp.

◆ TOPCORNER1

const Int TOPCORNER1 = 23
staticprivate

Definition at line 74 of file NavierStokesCavity.hpp.

◆ TOPCORNER2

const Int TOPCORNER2 = 24
staticprivate

Definition at line 75 of file NavierStokesCavity.hpp.

◆ TOPCORNER3

const Int TOPCORNER3 = 25
staticprivate

Definition at line 76 of file NavierStokesCavity.hpp.

◆ TOPCORNER4

const Int TOPCORNER4 = 26
staticprivate

Definition at line 77 of file NavierStokesCavity.hpp.


The documentation for this class was generated from the following files: