![]() |
ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
|
Mixture variables for pressure-temperature-velocity (mechanical and thermal equilibrium) system of equations. More...
#include <MixPTUEq.h>
Inherits Mixture.
Public Member Functions | |
MixPTUEq () | |
MixPTUEq (tinyxml2::XMLElement *state, std::string fileName) | |
Mixture constructor from a XML format reading. | |
virtual | ~MixPTUEq () |
virtual void | allocateAndCopyMixture (Mixture **mixture) |
Copy mixture attributes in mixture. | |
virtual void | copyMixture (Mixture &mixture) |
Copy mixture in mixture attributes. | |
virtual double | computeDensity (const double *alphak, const double *rhok) |
Compute mixture density. | |
virtual double | computePressure (const double *alphak, const double *pk) |
Compute mixture pressure. | |
virtual double | computePressure (double *masses, const double &mixInternalEnerg, Phase **phases) |
virtual double | computeTemperature (double *masses, const double &pressure, Phase **phases) |
virtual double | computeInternalEnergy (const double *Yk, const double *ek) |
Compute mixture specific internal energy. | |
virtual double | computeFrozenSoundSpeed (const double *Yk, const double *ck) |
Compute mixture frozen speed of sound. | |
virtual double | computeTemperatureIsentrope (const double *Yk, const double &p0, const double &T0, const double &p, double *dTdp=0) |
Compute temperature for a mixture evolving at thermal equilibrium along mixture isentropic path. | |
virtual double | computeEnthalpyIsentrope (const double *Yk, const double &p0, const double &T0, const double &p, double *dhdp=0) |
Compute mixture enthalpy for a mixture evolving at thermal equilibrium along mixture isentropic path. | |
virtual double | computeVolumeIsentrope (const double *Yk, const double &p0, const double &T0, const double &p, double *dvdp=0) |
Compute mixture specific volume for a mixture evolving at thermal equilibrium along mixture isentropic path. | |
virtual void | computeMixtureVariables (Phase **vecPhase) |
Fills some mixture attributes from a phase array. | |
virtual void | computeTotalEnergy (std::vector< QuantitiesAddPhys * > &vecGPA) |
Compute mixture total specific energy from internal one taking account for energies associated to extra physics. | |
virtual void | totalEnergyToInternalEnergy (std::vector< QuantitiesAddPhys * > &vecGPA) |
Compute mixture internal specific energy from total one taking account for energies associated to extra physics. | |
virtual void | localProjection (const Coord &normal, const Coord &tangent, const Coord &binormal) |
velocity vector projection in a local Cartesian coordinate system | |
virtual void | reverseProjection (const Coord &normal, const Coord &tangent, const Coord &binormal) |
velocity vector reverse projection in the absolute Cartesian coordinate system | |
virtual int | getNumberScalars () const |
virtual int | getNumberVectors () const |
virtual double | returnScalar (const int &numVar) const |
virtual Coord | returnVector (const int &numVar) const |
virtual std::string | returnNameScalar (const int &numVar) const |
virtual std::string | returnNameVector (const int &numVar) const |
virtual void | setScalar (const int &numVar, const double &value) |
virtual void | setVector (const int &numVar, const Coord &value) |
virtual int | numberOfTransmittedVariables () const |
virtual void | fillBuffer (double *buffer, int &counter) const |
virtual void | fillBuffer (std::vector< double > &dataToSend) const |
virtual void | getBuffer (double *buffer, int &counter) |
virtual void | getBuffer (std::vector< double > &dataToReceive, int &counter) |
virtual void | computeSlopesMixture (const Mixture &sLeft, const Mixture &sRight, const double &distance) |
virtual void | setToZero () |
virtual void | setToMax () |
virtual void | extrapolate (const Mixture &slope, const double &distance) |
virtual void | limitSlopes (const Mixture &slopeGauche, const Mixture &slopeDroite, Limiter &globalLimiter) |
virtual void | setMin (const Mixture &mixture1, const Mixture &mixture2) |
virtual void | setMax (const Mixture &mixture1, const Mixture &mixture2) |
virtual void | computeGradientLimiter (const Limiter &globalLimiter, const Mixture &mixture, const Mixture &mixtureMin, const Mixture &mixtureMax, const Mixture &slope) |
virtual int | numberOfTransmittedSlopes () const |
virtual void | fillBufferSlopes (double *buffer, int &counter) const |
virtual void | getBufferSlopes (double *buffer, int &counter) |
virtual const double & | getDensity () const |
virtual const double & | getPressure () const |
virtual const double & | getTemperature () const |
virtual const double & | getU () const |
virtual const double & | getV () const |
virtual const double & | getW () const |
virtual const Coord & | getVelocity () const |
virtual Coord & | getVelocity () |
virtual const double & | getEnergy () const |
virtual const double & | getTotalEnergy () const |
virtual const double & | getMixSoundSpeed () const |
virtual void | setPressure (const double &p) |
virtual void | setVelocity (const double &u, const double &v, const double &w) |
virtual void | setVelocity (const Coord &vit) |
virtual void | setU (const double &u) |
virtual void | setV (const double &v) |
virtual void | setW (const double &w) |
virtual void | setTotalEnergy (double &totalEnergy) |
virtual void | setTemperature (const double &T) |
virtual void | changeSign () |
virtual void | multiplyAndAdd (const Mixture &slopesMixtureTemp, const double &coeff) |
virtual void | divide (const double &coeff) |
![]() | |
Mixture () | |
virtual | ~Mixture () |
void | printMixture (std::ofstream &fileStream) const |
Print mixture variables in file stream. | |
double | computeTsat (const Eos *eosLiq, const Eos *eosVap, const double &pressure, double *dTsat=0) |
Compute saturation temperature for a liq/vapor couple of fluid at given pressure. | |
double | computePsat (const Eos *eosLiq, const Eos *eosVap, const double &temp) |
Compute saturation pressure for a liq/vapor couple of fluid at given pressure. | |
double | computeCriticalPressure (const Eos *eosLiq, const Eos *eosVap) |
Compute the theoritical critical pressure. | |
virtual double | computePressure (double, const double &, Phase **, Mixture *, const int &, const int &) |
virtual const double & | getFrozenSoundSpeed () const |
virtual const double & | getWoodSoundSpeed () const |
virtual const double & | getEnergyCompaction () const |
virtual const double & | getEnergyElastic () const |
virtual const Tensor & | getStressTensor () const |
virtual Tensor & | getStressTensor () |
virtual void | setEnergyCompaction (const double &) |
virtual void | setEnergyElastic (const double &) |
virtual void | setStressTensor (const Tensor &) |
Private Attributes | |
double | m_density |
mixture density | |
double | m_pressure |
mixture pressure | |
Coord | m_velocity |
mixture velocity | |
double | m_temperature |
mixture temperature | |
double | m_energy |
mixture internal specific energy | |
double | m_totalEnergy |
mixture total specific energy | |
double | m_PTUEqSoundSpeed |
mixture thermal equilibrium sound speed | |
Mixture variables for pressure-temperature-velocity (mechanical and thermal equilibrium) system of equations.
MixPTUEq::MixPTUEq | ( | ) |
MixPTUEq::MixPTUEq | ( | tinyxml2::XMLElement * | state, |
std::string | fileName | ||
) |
Mixture constructor from a XML format reading.
Reading data from XML file under the following format: ex: <mixture> <dataMix pressure = "1.e5" temperature = "300."> <velocity x = "0." y = "0." z = "0." > </mixture>
state | XML element to read for mixture data |
fileName | string name of readed XML file |
|
virtual |
|
virtual |
Copy mixture attributes in mixture.
mixture | destination mixture variable |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Compute mixture density.
alphak | phase volume fraction array |
rhok | phase density array |
Reimplemented from Mixture.
|
virtual |
Compute mixture enthalpy for a mixture evolving at thermal equilibrium along mixture isentropic path.
Yk | array of mass fractions |
p0 | initial pressure |
T0 | initial temperature |
p | final pressure |
dhdp | derivative according to pressure |
Reimplemented from Mixture.
|
virtual |
Compute mixture frozen speed of sound.
Yk | phase mass fraction array |
ck | phase speed of sound array |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Compute mixture specific internal energy.
Yk | phase mass fraction array |
ek | phase specific internal energy array |
Reimplemented from Mixture.
|
virtual |
Fills some mixture attributes from a phase array.
vecPhase | phase array |
Reimplemented from Mixture.
|
virtual |
Compute mixture pressure.
alphak | phase volume fraction array |
pk | phase pressure array |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Compute temperature for a mixture evolving at thermal equilibrium along mixture isentropic path.
Yk | array of mass fractions |
p0 | initial pressure |
T0 | initial temperature |
p | final pressure |
dTdp | derivative according to pressure |
Reimplemented from Mixture.
|
virtual |
Compute mixture total specific energy from internal one taking account for energies associated to extra physics.
vecGPA | vector of additional physics variables |
Reimplemented from Mixture.
|
virtual |
Compute mixture specific volume for a mixture evolving at thermal equilibrium along mixture isentropic path.
Yk | array of mass fractions |
p0 | initial pressure |
T0 | initial temperature |
p | final pressure |
dvdp | derivative according to pressure |
Reimplemented from Mixture.
|
virtual |
Copy mixture in mixture attributes.
mixture | source mixture to copy |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
inlinevirtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
velocity vector projection in a local Cartesian coordinate system
normal | normal vector associated to the cell interface |
tangent | tangent vector associated to the cell interface |
binormal | binormal vector associated to the cell interface |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
velocity vector reverse projection in the absolute Cartesian coordinate system
normal | normal vector associated to the cell interface |
tangent | tangent vector associated to the cell interface |
binormal | binormal vector associated to the cell interface |
Reimplemented from Mixture.
Reimplemented from Mixture.
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Reimplemented from Mixture.
|
virtual |
Compute mixture internal specific energy from total one taking account for energies associated to extra physics.
vecGPA | vector of additional physics variables |
Reimplemented from Mixture.
|
private |
mixture density
|
private |
mixture internal specific energy
|
private |
mixture pressure
|
private |
mixture thermal equilibrium sound speed
|
private |
mixture temperature
|
private |
mixture total specific energy
|
private |
mixture velocity