LifeV
NavierStokesProblem< mesh_Type > Class Template Referenceabstract

#include <NavierStokesProblem.hpp>

+ Collaboration diagram for NavierStokesProblem< mesh_Type >:

Public Types

typedef Real(* function_Type) (const Real &, const Real &, const Real &, const Real &, const ID &)
 

Static Public Member Functions

static Real nullFunction (const Real &, const Real &, const Real &, const Real &, const ID &)
 

Protected Attributes

UInt M_refinement
 
std::string M_resourcesPath
 
Real M_viscosity
 
Real M_density
 

Constructors, destructor

 NavierStokesProblem ()
 
virtual ~NavierStokesProblem ()
 

Methods

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...
 
virtual void showMe (std::ostream &output=std::cout) const =0
 Display general information about the problem. More...
 

Set Methods

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...
 

Get Methods

virtual void mesh (std::shared_ptr< mesh_Type > &mesh) const =0
 Getter for the problem mesh. More...
 
virtual void boundaryConditions (std::shared_ptr< BCHandler > bcHandler) const =0
 Getter for the boundary conditions in the provided BCHandler. More...
 
virtual std::string name () const =0
 Returns the name of the problem. 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...
 

Detailed Description

template<class mesh_Type>
class LifeV::NavierStokesProblem< mesh_Type >

Definition at line 49 of file NavierStokesProblem.hpp.

Member Typedef Documentation

◆ function_Type

typedef Real(* function_Type) (const Real &, const Real &, const Real &, const Real &, const ID &)

Definition at line 53 of file NavierStokesProblem.hpp.

Constructor & Destructor Documentation

◆ NavierStokesProblem()

Definition at line 159 of file NavierStokesProblem.hpp.

+ Here is the caller graph for this function:

◆ ~NavierStokesProblem()

~NavierStokesProblem ( )
virtual

Definition at line 166 of file NavierStokesProblem.hpp.

Member Function Documentation

◆ nullFunction()

Real nullFunction ( const Real ,
const Real ,
const Real ,
const Real ,
const ID  
)
static

Definition at line 152 of file NavierStokesProblem.hpp.

+ Here is the caller graph for this function:

◆ hasExactSolution()

bool hasExactSolution ( ) const
virtual

Returns true if the problem has an exact solution.

Reimplemented in NavierStokesEthierSteinman.

Definition at line 173 of file NavierStokesProblem.hpp.

◆ xexact()

Returns the value of the exact solution.

Reimplemented in NavierStokesEthierSteinman.

Definition at line 180 of file NavierStokesProblem.hpp.

◆ uexact()

Returns the value of the exact solution (velocity components only)

Reimplemented in NavierStokesEthierSteinman.

Definition at line 187 of file NavierStokesProblem.hpp.

◆ uderexact()

NavierStokesProblem< mesh_Type >::function_Type uderexact ( )
virtual

Returns the value of the derivative of the exact solution with respect to the time (velocity components only)

Reimplemented in NavierStokesEthierSteinman.

Definition at line 194 of file NavierStokesProblem.hpp.

◆ pexact()

Returns the value of the exact solution (pressure component only)

Reimplemented in NavierStokesEthierSteinman.

Definition at line 201 of file NavierStokesProblem.hpp.

◆ showMe()

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

Display general information about the problem.

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

Implemented in NavierStokesEthierSteinman, and NavierStokesCavity.

◆ setMesh()

void setMesh ( const UInt refinement,
const std::string &  ressourcesPath = "./Ressources/" 
)

Setup the problem mesh.

Definition at line 208 of file NavierStokesProblem.hpp.

◆ setViscosity()

void setViscosity ( const Real viscosity)
virtual

Set the viscosity of the fluid.

Parameters
viscosityviscosity of the fluid

Reimplemented in NavierStokesEthierSteinman.

Definition at line 217 of file NavierStokesProblem.hpp.

◆ setDensity()

void setDensity ( const Real density)
virtual

Set the density of the fluid.

Parameters
densitydensity of the fluid

Reimplemented in NavierStokesEthierSteinman.

Definition at line 224 of file NavierStokesProblem.hpp.

◆ mesh()

virtual void mesh ( std::shared_ptr< mesh_Type > &  mesh) const
pure virtual

Getter for the problem mesh.

Implemented in NavierStokesEthierSteinman, and NavierStokesCavity.

◆ boundaryConditions()

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

Getter for the boundary conditions in the provided BCHandler.

Parameters
bcHandlershared pointer on a BCHandler object

Implemented in NavierStokesEthierSteinman, and NavierStokesCavity.

◆ name()

virtual std::string name ( ) const
pure virtual

Returns the name of the problem.

Implemented in NavierStokesEthierSteinman, and NavierStokesCavity.

◆ viscosity()

Real viscosity ( ) const

Returns the viscosity.

Definition at line 231 of file NavierStokesProblem.hpp.

◆ density()

Real density ( ) const

Returns the density.

Definition at line 238 of file NavierStokesProblem.hpp.

◆ force()

Returns the value of the forces.

Definition at line 245 of file NavierStokesProblem.hpp.

Field Documentation

◆ M_refinement

UInt M_refinement
protected

Definition at line 143 of file NavierStokesProblem.hpp.

◆ M_resourcesPath

std::string M_resourcesPath
protected

Definition at line 144 of file NavierStokesProblem.hpp.

◆ M_viscosity

Real M_viscosity
protected

Definition at line 145 of file NavierStokesProblem.hpp.

◆ M_density

Real M_density
protected

Definition at line 146 of file NavierStokesProblem.hpp.


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