![]() |
ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
|
General class for surface tension for the velocity-equilibrium system of equations. More...
#include <APUEqSurfaceTension.h>
Inherits APUEq.
Public Member Functions | |
APUEqSurfaceTension (tinyxml2::XMLElement *element, int &numberQPA, std::vector< std::string > nameTransports, std::vector< std::string > namePhases, std::string nameFichier="Unknown file") | |
virtual | ~APUEqSurfaceTension () |
virtual void | addQuantityAddPhys (Cell *cell) |
Add the quantities for the additional physic. | |
virtual double | computeEnergyAddPhys (QuantitiesAddPhys *QPA) |
Compute and send back mass energy linked to the physic (0 if no linked energy) | |
virtual void | solveFluxAddPhys (CellInterface *cellInterface) |
Solve the additional physic flux between two cells. | |
virtual void | solveFluxAddPhysBoundary (CellInterface *cellInterface) |
Solve the additional physic flux at a domain boundary. | |
void | solveFluxSurfaceTensionInner (const Coord &velocityLeft, const Coord &velocityRight, const Coord &gradCLeft, const Coord &gradCRight) const |
Solve the surface-tension flux between two cells. | |
void | solveFluxSurfaceTensionNonReflecting (const Coord &velocityLeft, const Coord &gradCLeft) const |
Solve the surface-tension flux at a boundary with an non-reflecting type. | |
void | solveFluxSurfaceTensionWall (const Coord &gradCLeft) const |
Solve the surface-tension flux at a boundary with a wall type. | |
void | solveFluxSurfaceTensionInletInjStagState () const |
Solve the surface-tension flux at a boundary with an inlet injection using stagnation state type. | |
void | solveFluxSurfaceTensionOutletPressure () const |
Solve the surface-tension flux at a boundary with an outlet at imposed pressure type. | |
void | solveFluxSurfaceTensionOther () const |
Solve the surface-tension flux at a boundary with non-defined type yet. | |
virtual void | addNonCons (Cell *) |
Add the non-conservative terms of the corresponding additional physic in a cell. | |
virtual void | addSymmetricTermsRadialAxisOnX (Cell *cell) |
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on X) | |
virtual void | addSymmetricTermsRadialAxisOnY (Cell *cell) |
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on Y) | |
virtual void | reinitializeColorFunction (std::vector< Cell * > *cellsLvl, const int &lvl) |
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 void | communicationsAddPhys (const int &dim, const int &lvl) |
Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinement. | |
virtual const int & | getNumTransportAssociated () const |
Return the associated number of the transport equation (only used for surface tension) | |
![]() | |
APUEq () | |
virtual | ~APUEq () |
![]() | |
AddPhys () | |
virtual | ~AddPhys () |
virtual std::string | whoAmI () const |
void | computeFluxAddPhys (CellInterface *cellInterface) |
Compute the additional physic flux between two cells. | |
void | computeFluxAddPhysBoundary (CellInterface *cellInterface) |
Compute the additional physic flux at a domain boundary. | |
void | addNonConsAddPhys (Cell *cell) |
Add the non-conservative terms of the additional physic in a cell. | |
virtual void | addFluxAddPhys (CellInterface *cellInterface, const double &coefAMR) |
Add the additional physic flux between two cells at the corresponding cell. | |
virtual void | subtractFluxAddPhys (CellInterface *cellInterface, const double &coefAMR) |
Subtract the additional physic flux between two cells at the corresponding cell. | |
Private Attributes | |
std::string | m_nameTransportAssociated |
Name of the associated variable for each cell (m_vecTransports) | |
int | m_numTransportAssociated |
Number of the associated variable for each cell (m_vecTransports) | |
int | m_numQPAGradC |
Number of the associated variable for each cell (m_vecGrandeursAddPhys) | |
double | m_sigma |
Surface tension coefficient. | |
bool | m_reinitializationActivated |
Reinitialization of the transported variable with the volume fraction of a phase. | |
std::string | m_namePhaseAssociated |
Name of the associated variable for each cell (m_vecPhases) | |
int | m_numPhaseAssociated |
Number of the associated variable for each cell (m_vecPhases) | |
Coord | m_velocityLeft |
Left velocity vector for the flux computation (buffer) | |
Coord | m_gradCLeft |
Left gradient of the color function for the flux computation (buffer) | |
Coord | m_velocityRight |
Right velocity vector for the flux computation (buffer) | |
Coord | m_gradCRight |
Right gradient of the color function vector for the flux computation (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) | |
General class for surface tension for the velocity-equilibrium system of equations.
APUEqSurfaceTension::APUEqSurfaceTension | ( | tinyxml2::XMLElement * | element, |
int & | numberQPA, | ||
std::vector< std::string > | nameTransports, | ||
std::vector< std::string > | namePhases, | ||
std::string | nameFichier = "Unknown file" |
||
) |
APUEqSurfaceTension constructor from a read in XML format ex : <dataSurfaceTension transport="color1" sigma="800.">
|
virtual |
|
inlinevirtual |
Add the non-conservative terms of the corresponding additional physic in a cell.
cell | cell |
Reimplemented from AddPhys.
|
virtual |
Add the quantities for the additional physic.
cell | corresponding cell |
Reimplemented from AddPhys.
|
virtual |
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on X)
cell | cell |
Reimplemented from AddPhys.
|
virtual |
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on Y)
cell | cell |
Reimplemented from AddPhys.
|
virtual |
|
virtual |
Compute and send back mass energy linked to the physic (0 if no linked energy)
QPA | corresponding additional physic quantities |
Reimplemented from AddPhys.
|
inlinevirtual |
Return the associated number of the transport equation (only used for surface tension)
Reimplemented from AddPhys.
|
inlinevirtual |
Send back true if the reinitialization of the color function is activated.
Reimplemented from AddPhys.
|
virtual |
Reinitialize the color function for the surface-tension terms with the volume fraction equation.
cellsLvl | cells vector for every level |
lvl | level |
Reimplemented from AddPhys.
|
virtual |
Solve the additional physic flux between two cells.
cellInterface | cell interface |
Reimplemented from AddPhys.
|
virtual |
Solve the additional physic flux at a domain boundary.
cellInterface | cell interface |
Reimplemented from AddPhys.
void APUEqSurfaceTension::solveFluxSurfaceTensionInletInjStagState | ( | ) | const |
Solve the surface-tension flux at a boundary with an inlet injection using stagnation state type.
void APUEqSurfaceTension::solveFluxSurfaceTensionInner | ( | const Coord & | velocityLeft, |
const Coord & | velocityRight, | ||
const Coord & | gradCLeft, | ||
const Coord & | gradCRight | ||
) | const |
Solve the surface-tension flux between two cells.
velocityLeft | velocity of the left cell |
velocityRight | velocity of the right cell |
gradCLeft | color function gradient of the left cell |
gradCRight | color function gradient of the right cell |
void APUEqSurfaceTension::solveFluxSurfaceTensionNonReflecting | ( | const Coord & | velocityLeft, |
const Coord & | gradCLeft | ||
) | const |
Solve the surface-tension flux at a boundary with an non-reflecting type.
velocityLeft | velocity of the left cell |
gradCLeft | color function gradient of the left cell |
void APUEqSurfaceTension::solveFluxSurfaceTensionOther | ( | ) | const |
Solve the surface-tension flux at a boundary with non-defined type yet.
void APUEqSurfaceTension::solveFluxSurfaceTensionOutletPressure | ( | ) | const |
Solve the surface-tension flux at a boundary with an outlet at imposed pressure type.
void APUEqSurfaceTension::solveFluxSurfaceTensionWall | ( | const Coord & | gradCLeft | ) | const |
Solve the surface-tension flux at a boundary with a wall type.
gradCLeft | color function gradient of the left cell |
|
private |
Binormal vector of the corresponding face for the flux computation (buffer)
|
private |
Left gradient of the color function for the flux computation (buffer)
|
private |
Right gradient of the color function vector for the flux computation (buffer)
|
private |
Name of the associated variable for each cell (m_vecPhases)
|
private |
Name of the associated variable for each cell (m_vecTransports)
|
private |
Normal vector of the corresponding face for the flux computation (buffer)
|
private |
Number of the associated variable for each cell (m_vecPhases)
|
private |
Number of the associated variable for each cell (m_vecGrandeursAddPhys)
|
private |
Number of the associated variable for each cell (m_vecTransports)
|
private |
Reinitialization of the transported variable with the volume fraction of a phase.
|
private |
Surface tension coefficient.
|
private |
Tangent vector of the corresponding face for the flux computation (buffer)
|
private |
Left velocity vector for the flux computation (buffer)
|
private |
Right velocity vector for the flux computation (buffer)