![]() |
ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
|
General class for additional physics. More...
#include <AddPhys.h>
Inherited by APEuler, and APUEq.
Public Member Functions | |
AddPhys () | |
virtual | ~AddPhys () |
virtual void | addQuantityAddPhys (Cell *) |
Add the quantities for the additional physic. | |
virtual std::string | whoAmI () const |
virtual double | computeEnergyAddPhys (QuantitiesAddPhys *) |
Compute and send back mass energy linked to the physic (0 if no linked energy) | |
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 | solveFluxAddPhys (CellInterface *) |
Solve the additional physic flux between two cells. | |
virtual void | solveFluxAddPhysBoundary (CellInterface *) |
Solve the additional physic flux at a domain boundary. | |
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. | |
virtual void | addNonCons (Cell *) |
Add the non-conservative terms of the corresponding additional physic in a cell. | |
virtual void | addSymmetricTermsRadialAxisOnX (Cell *) |
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on X) | |
virtual void | addSymmetricTermsRadialAxisOnY (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 * > *, 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 void | communicationsAddPhys (const int &, const int &) |
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) | |
General class for additional physics.
This is a pure virtual class: can not be instantiated
AddPhys::AddPhys | ( | ) |
|
virtual |
|
virtual |
Add the additional physic flux between two cells at the corresponding cell.
cellInterface | cell interface |
coefAMR | Adaptive Mesh Refinement coefficient for numerical scheme purposes |
|
inlinevirtual |
Add the non-conservative terms of the corresponding additional physic in a cell.
cell | cell |
Reimplemented in APEConductivity, APUEqConductivity, APUEqSurfaceTension, APEViscosity, and APUEqViscosity.
void AddPhys::addNonConsAddPhys | ( | Cell * | cell | ) |
Add the non-conservative terms of the additional physic in a cell.
cell | cell |
|
inlinevirtual |
Add the quantities for the additional physic.
cell | corresponding cell |
Reimplemented in APEConductivity, APUEqConductivity, APUEqSurfaceTension, APEViscosity, and APUEqViscosity.
|
inlinevirtual |
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on X)
cell | cell |
Reimplemented in APEViscosity, APUEqSurfaceTension, and APUEqViscosity.
|
inlinevirtual |
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on Y)
cell | cell |
Reimplemented in APEViscosity, APUEqSurfaceTension, and APUEqViscosity.
|
inlinevirtual |
Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinement.
dim | dimension |
lvl | level |
Reimplemented in APEConductivity, APUEqConductivity, APUEqSurfaceTension, APEViscosity, and APUEqViscosity.
|
inlinevirtual |
Compute and send back mass energy linked to the physic (0 if no linked energy)
QPA | corresponding additional physic quantities |
Reimplemented in APUEqSurfaceTension.
void AddPhys::computeFluxAddPhys | ( | CellInterface * | cellInterface | ) |
Compute the additional physic flux between two cells.
cellInterface | cell interface |
void AddPhys::computeFluxAddPhysBoundary | ( | CellInterface * | cellInterface | ) |
Compute the additional physic flux at a domain boundary.
cellInterface | cell interface |
|
inlinevirtual |
Return the associated number of the transport equation (only used for surface tension)
Reimplemented in APUEqSurfaceTension.
|
inlinevirtual |
Send back true if the reinitialization of the color function is activated.
Reimplemented in APUEqSurfaceTension.
|
inlinevirtual |
Reinitialize the color function for the surface-tension terms with the volume fraction equation.
cellsLvl | cells vector for every level |
lvl | level |
Reimplemented in APUEqSurfaceTension.
|
inlinevirtual |
Solve the additional physic flux between two cells.
cellInterface | cell interface |
Reimplemented in APEConductivity, APUEqConductivity, APUEqSurfaceTension, APEViscosity, and APUEqViscosity.
|
inlinevirtual |
Solve the additional physic flux at a domain boundary.
cellInterface | cell interface |
Reimplemented in APEConductivity, APUEqConductivity, APUEqSurfaceTension, APEViscosity, and APUEqViscosity.
|
virtual |
Subtract the additional physic flux between two cells at the corresponding cell.
cellInterface | cell interface |
coefAMR | Adaptive Mesh Refinement coefficient for numerical scheme purposes |
|
inlinevirtual |