![]() |
ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
|
#include <APEViscosity.h>
Inherits APEuler.
Public Member Functions | |
| APEViscosity () | |
| APEViscosity (int &numberQPA, Eos **eos) | |
| ~APEViscosity () override | |
| void | addQuantityAddPhys (Cell *cell) override |
| Add the quantities for the additional physics. | |
| void | solveFluxAddPhys (CellInterface *cellInterface) override |
| Solve the additional physics flux between two cells. | |
| void | solveFluxAddPhysBoundary (CellInterface *cellInterface) override |
| Solve the additional physics flux at a domain boundary. | |
| void | solveFluxViscosityInner (const Coord &velocityLeft, const Coord &velocityRight, const Coord &gradULeft, const Coord &gradURight, const Coord &gradVLeft, const Coord &gradVRight, const Coord &gradWLeft, const Coord &gradWRight, const double &mu) const |
| Solve the viscosity flux between two cells. | |
| void | solveFluxViscosityNonReflecting (const Coord &velocityLeft, const Coord &gradULeft, const Coord &gradVLeft, const Coord &gradWLeft, const double &muLeft) const |
| Solve the viscosity flux at a boundary with a non-reflecting type. | |
| void | solveFluxViscosityWall (const Coord &velocityLeft, const double &muLeft, const double &distLeft, Coord &velocityWall=Coord::defaultCoordNonConst) const |
| Solve the viscosity flux at a boundary with a wall type in MRF case. | |
| void | solveFluxViscositySymmetry (const Coord &gradULeft, const Coord &gradVLeft, const Coord &gradWLeft, const double &muLeft) const |
| Solve the viscosity flux at a boundary with a symmetry type. | |
| void | solveFluxViscosityOther () const |
| Solve the viscosity flux at a boundary with non-defined type yet. | |
| void | addNonCons (Cell *) override |
| Add the non-conservative terms of the corresponding additional physics in a cell. | |
| void | addSymmetricTermsRadialAxisOnX (Cell *) override |
| Add the symmetrical terms of the corresponding additional physics in a cell (when radial axis is on X). | |
| void | addSymmetricTermsRadialAxisOnY (Cell *) override |
| Add the symmetrical terms of the corresponding additional physics in a cell (when radial axis is on Y). | |
| void | communicationsAddPhys (const int &dim, const int &lvl) override |
| Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinement. | |
| virtual void | computeTurbulenceParameters () const override |
| Print the diagnostics for turbulence decay cases. | |
| Public Member Functions inherited from APEuler | |
| APEuler () | |
| ~APEuler () override | |
| Public Member Functions inherited from AddPhys | |
| AddPhys () | |
| virtual | ~AddPhys () |
| virtual std::string | whoAmI () const |
| virtual double | computeEnergyAddPhys (QuantitiesAddPhys *) |
| Compute and send back mass energy linked to the physics (0 if no linked energy). | |
| void | computeFluxAddPhys (CellInterface *cellInterface) |
| Compute the additional physics flux between two cells. | |
| void | computeFluxAddPhysBoundary (CellInterface *cellInterface) |
| Compute the additional physics flux at a domain boundary. | |
| void | addNonConsAddPhys (Cell *cell) |
| Add the non-conservative terms of the additional physics in a cell. | |
| virtual void | addFluxAddPhys (CellInterface *cellInterface, const double &coefAMR) |
| Add the additional physics flux between two cells at the corresponding cell. | |
| virtual void | subtractFluxAddPhys (CellInterface *cellInterface, const double &coefAMR) |
| Subtract the additional physics flux between two cells at the corresponding cell. | |
| virtual void | reinitializeColorFunction (std::vector< Cell * > *, const int &) |
| Reinitialize the color function for the surface-tension terms with the volume fraction equation. | |
| virtual bool | reinitializationActivated () |
| Send back true if the reinitialization of the color function is activated. | |
| virtual const int & | getNumTransportAssociated () const |
| Return the associated number of the transport equation (only used for surface tension). | |
Private Attributes | |
| double | m_mu |
| Dynamic viscosity (kg/m/s or Pa.s) (taken from the EOS class) (buffer). | |
| int | m_numQPA |
| Number of the associated variable for each cell (m_vecGrandeursAddPhys). | |
| Coord | m_velocityLeft |
| Left velocity vector for the flux computation (buffer). | |
| Coord | m_gradULeft |
| Left gradient of the velocity in the x-direction for the flux computation (buffer). | |
| Coord | m_gradVLeft |
| Left gradient of the velocity in the y-direction for the flux computation (buffer). | |
| Coord | m_gradWLeft |
| Left gradient of the velocity in the z-direction for the flux computation (buffer). | |
| Tensor | m_tensorLeft |
| Left tensor of the velocity gradients (buffer). | |
| Coord | m_velocityRight |
| Right velocity vector for the flux computation (buffer). | |
| Coord | m_gradURight |
| Right gradient of the velocity in the x-direction for the flux computation (buffer). | |
| Coord | m_gradVRight |
| Right gradient of the velocity in the y-direction for the flux computation (buffer). | |
| Coord | m_gradWRight |
| Right gradient of the velocity in the z-direction for the flux computation (buffer). | |
| Tensor | m_tensorRight |
| Right tensor of the velocity gradients (buffer). | |
| Coord | m_normal |
| Normal vector of the corresponding face for the flux computation (buffer). | |
| Coord | m_tangent |
| Tangent vector of the corresponding face for the flux computation (buffer). | |
| Coord | m_binormal |
| Binormal vector of the corresponding face for the flux computation (buffer). | |
| APEViscosity::APEViscosity | ( | ) |
| APEViscosity::APEViscosity | ( | int & | numberQPA, |
| Eos ** | eos ) |
|
override |
|
inlineoverridevirtual |
Add the non-conservative terms of the corresponding additional physics in a cell.
| cell | cell |
Reimplemented from AddPhys.
|
overridevirtual |
Add the quantities for the additional physics.
| cell | corresponding cell |
Reimplemented from AddPhys.
|
inlineoverridevirtual |
Add the symmetrical terms of the corresponding additional physics in a cell (when radial axis is on X).
| cell | cell |
Reimplemented from AddPhys.
|
inlineoverridevirtual |
Add the symmetrical terms of the corresponding additional physics in a cell (when radial axis is on Y).
| cell | cell |
Reimplemented from AddPhys.
|
overridevirtual |
|
overridevirtual |
Print the diagnostics for turbulence decay cases.
Reimplemented from AddPhys.
|
overridevirtual |
Solve the additional physics flux between two cells.
| cellInterface | cell interface |
Reimplemented from AddPhys.
|
overridevirtual |
Solve the additional physics flux at a domain boundary.
| cellInterface | cell interface |
Reimplemented from AddPhys.
| void APEViscosity::solveFluxViscosityInner | ( | const Coord & | velocityLeft, |
| const Coord & | velocityRight, | ||
| const Coord & | gradULeft, | ||
| const Coord & | gradURight, | ||
| const Coord & | gradVLeft, | ||
| const Coord & | gradVRight, | ||
| const Coord & | gradWLeft, | ||
| const Coord & | gradWRight, | ||
| const double & | mu ) const |
Solve the viscosity flux between two cells.
| velocityLeft | velocity of the left cell |
| velocityRight | velocity of the right cell |
| gradULeft | gradient of the velocity in the x-direction of the left cell |
| gradURight | gradient of the velocity in the x-direction of the right cell |
| gradVLeft | gradient of the velocity in the y-direction of the left cell |
| gradVRight | gradient of the velocity in the y-direction of the right cell |
| gradWLeft | gradient of the velocity in the z-direction of the left cell |
| gradWRight | gradient of the velocity in the z-direction of the right cell |
| mu | dynamic viscosity |
| void APEViscosity::solveFluxViscosityNonReflecting | ( | const Coord & | velocityLeft, |
| const Coord & | gradULeft, | ||
| const Coord & | gradVLeft, | ||
| const Coord & | gradWLeft, | ||
| const double & | muLeft ) const |
Solve the viscosity flux at a boundary with a non-reflecting type.
| velocityLeft | velocity of the left cell |
| gradULeft | gradient of the velocity in the x-direction of the left cell |
| gradVLeft | gradient of the velocity in the y-direction of the left cell |
| gradWLeft | gradient of the velocity in the z-direction of the left cell |
| muLeft | dynamic viscosity of the left cell |
| void APEViscosity::solveFluxViscosityOther | ( | ) | const |
Solve the viscosity flux at a boundary with non-defined type yet.
| void APEViscosity::solveFluxViscositySymmetry | ( | const Coord & | gradULeft, |
| const Coord & | gradVLeft, | ||
| const Coord & | gradWLeft, | ||
| const double & | muLeft ) const |
Solve the viscosity flux at a boundary with a symmetry type.
| gradULeft | gradient of the velocity in the x-direction of the left cell |
| gradVLeft | gradient of the velocity in the y-direction of the left cell |
| gradWLeft | gradient of the velocity in the z-direction of the left cell |
| mu | dynamic viscosity of the left cell |
| void APEViscosity::solveFluxViscosityWall | ( | const Coord & | velocityLeft, |
| const double & | muLeft, | ||
| const double & | distLeft, | ||
| Coord & | velocityWall = Coord::defaultCoordNonConst ) const |
Solve the viscosity flux at a boundary with a wall type in MRF case.
| velocityLeft | velocity of the left cell |
| muLeft | dynamic viscosity of the left cell |
| distLeft | distance between the center of the left cell and its corresponding edge |
| velocityWall | velocity of the wall in the Moving Reference Frame context (MRF) |
|
private |
Binormal vector of the corresponding face for the flux computation (buffer).
|
private |
Left gradient of the velocity in the x-direction for the flux computation (buffer).
|
private |
Right gradient of the velocity in the x-direction for the flux computation (buffer).
|
private |
Left gradient of the velocity in the y-direction for the flux computation (buffer).
|
private |
Right gradient of the velocity in the y-direction for the flux computation (buffer).
|
private |
Left gradient of the velocity in the z-direction for the flux computation (buffer).
|
private |
Right gradient of the velocity in the z-direction for the flux computation (buffer).
|
private |
Dynamic viscosity (kg/m/s or Pa.s) (taken from the EOS class) (buffer).
|
private |
Normal vector of the corresponding face for the flux computation (buffer).
|
private |
Number of the associated variable for each cell (m_vecGrandeursAddPhys).
|
private |
Tangent vector of the corresponding face for the flux computation (buffer).
|
private |
Left tensor of the velocity gradients (buffer).
|
private |
Right tensor of the velocity gradients (buffer).
|
private |
Left velocity vector for the flux computation (buffer).
|
private |
Right velocity vector for the flux computation (buffer).