ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
QAPViscosity Class Reference

General class for viscous quantities. More...

#include <QAPViscosity.h>

Inherits QuantitiesAddPhys.

Public Member Functions

 QAPViscosity (AddPhys *addPhys)
 
virtual ~QAPViscosity ()
 
virtual void computeQuantities (Cell *cell)
 Compute the needed quantities for the additional physic.
 
virtual void setGrad (const Coord &grad, const int &num=-1)
 Set the additional-physic gradient with the transmitted values.
 
virtual const CoordgetGrad (const int &num=-1) const
 Get the additional-physic gradient.
 
- Public Member Functions inherited from QuantitiesAddPhys
 QuantitiesAddPhys (AddPhys *addPhys)
 Generic model constructor.
 
virtual ~QuantitiesAddPhys ()
 
double computeEnergyAddPhys ()
 Compute and send back mass energy linked to the physic (0 if no linked energy)
 
virtual void setGradU (const Coord &)
 Set the gradient of the velocity along the x-direction with the transmitted values.
 
virtual void setGradV (const Coord &)
 Set the gradient of the velocity along the y-direction with the transmitted values.
 
virtual void setGradW (const Coord &)
 Set the gradient of the velocity along the z-direction with the transmitted values.
 
virtual void setGradTk (const int &, const Coord &)
 Set the gradient of the phase temperature with the transmitted values.
 
virtual Coord getGradU () const
 Return the gradient of the velocity along the x-direction.
 
virtual Coord getGradV () const
 Return the gradient of the velocity along the y-direction.
 
virtual Coord getGradW () const
 Return the gradient of the velocity along the z-direction.
 
virtual const CoordgetGradTk (const int &) const
 Return the gradient of the phase temperature.
 
AddPhysgetAddPhys ()
 Return the corresponding additional-physic class of this quantities class.
 

Protected Attributes

std::vector< Coordm_grads
 Vector of the velocity gradients of the cell in x-, y- and z-directions (ex: m_grads[0] = (du/dx, du/dy, du/dz))
 
- Protected Attributes inherited from QuantitiesAddPhys
AddPhysm_addPhys
 Corresponding additional-physic class of this quantities class.
 

Detailed Description

General class for viscous quantities.

Constructor & Destructor Documentation

◆ QAPViscosity()

QAPViscosity::QAPViscosity ( AddPhys addPhys)

◆ ~QAPViscosity()

QAPViscosity::~QAPViscosity ( )
virtual

Member Function Documentation

◆ computeQuantities()

void QAPViscosity::computeQuantities ( Cell )
virtual

Compute the needed quantities for the additional physic.

Parameters
cellcorresponding cell

Reimplemented from QuantitiesAddPhys.

◆ getGrad()

virtual const Coord & QAPViscosity::getGrad ( const int &  = -1) const
inlinevirtual

Get the additional-physic gradient.

Parameters
numnumber to determine the corresponding gradient

Reimplemented from QuantitiesAddPhys.

◆ setGrad()

void QAPViscosity::setGrad ( const Coord ,
const int &  = -1 
)
virtual

Set the additional-physic gradient with the transmitted values.

Parameters
gradtransmitted gradient
numnumber to determine the corresponding gradient

Reimplemented from QuantitiesAddPhys.

Member Data Documentation

◆ m_grads

std::vector<Coord> QAPViscosity::m_grads
protected

Vector of the velocity gradients of the cell in x-, y- and z-directions (ex: m_grads[0] = (du/dx, du/dy, du/dz))


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