41 EosSG(std::vector<std::string>& nameParameterEos,
int& number);
123 virtual double computePressureIsentropic(
const double& initialPressure,
const double& initialDensity,
const double& finalDensity)
const;
131 virtual double computePressureHugoniot(
const double& initialPressure,
const double& initialDensity,
const double& finalDensity)
const;
139 virtual double computeDensityIsentropic(
const double& initialPressure,
const double& initialDensity,
const double& finalPressure,
double* drhodp=0)
const;
147 virtual double computeDensityHugoniot(
const double& initialPressure,
const double& initialDensity,
const double& finalPressure,
double* drhodp = 0)
const;
155 virtual double computeDensityPfinal(
const double& initialPressure,
const double& initialDensity,
const double& finalPressure,
double* drhodp = 0)
const;
163 virtual double computeEnthalpyIsentropic(
const double& initialPressure,
const double& initialDensity,
const double& finalPressure,
double* dhdp = 0)
const;
186 virtual void sendSpecialMixtureEos(
double& gamPinfOverGamMinusOne,
double& eRef,
double& oneOverGamMinusOne,
double& covolume)
const;
193 virtual double vfpfh(
const double&
pressure,
const double& enthalpy)
const;
200 virtual double dvdpch(
const double&
pressure,
const double& enthalpy)
const;
TypeEOS
Enumeration for the type of EOS (IG: ideal gas, SG: stiffened gas, NASG: Noble-Abel stiffened gas,...
Definition Eos.h:40
Class describing a stiffened gas equation of state.
Definition EosSG.h:39
virtual double drhodpcT(const double &, const double &temperature) const
compute the partial derivative of density versus pressure at constant temperature
Definition EosSG.cpp:239
virtual TypeEOS getType() const
Get the type that is to say the reduced name of the EOS in ECOGEN.
Definition EosSG.h:244
double m_sRef
Enthalpy of the fluid.
Definition EosSG.h:251
double m_pInf
Infinit (reference) pressure of the fluid.
Definition EosSG.h:248
virtual const double & getSRef() const
Get the entropy of reference of the fluid.
Definition EosSG.h:241
virtual void sendSpecialMixtureEos(double &gamPinfOverGamMinusOne, double &eRef, double &oneOverGamMinusOne, double &covolume) const
Send specific values of the parameters useful for mixture EOS based on Ideal Gas and Stiffened Gas.
Definition EosSG.cpp:208
virtual double computeEntropy(const double &temperature, const double &pressure) const
Compute entropy.
Definition EosSG.cpp:122
virtual double computeDensityTimesInterfaceSoundSpeedSquare(const double &, const double &interfacePressure, const double &pressure) const
Compute density times interface sound speed square.
Definition EosSG.cpp:115
virtual const double & getERef() const
Get the energy of reference of the fluid.
Definition EosSG.h:238
virtual void verifyAndCorrectDensityMax(double &) const
Do nothing for SG.
Definition EosSG.h:224
virtual const double & getPInf() const
Get the constant pressure.
Definition EosSG.h:232
virtual ~EosSG()
Definition EosSG.cpp:47
virtual double computeDensity(const double &pressure, const double &temperature) const
Compute density.
Definition EosSG.cpp:87
virtual double computePressureIsentropic(const double &initialPressure, const double &initialDensity, const double &finalDensity) const
Compute phase pressure along an isentropic path.
Definition EosSG.cpp:129
virtual double vfpfh(const double &pressure, const double &enthalpy) const
Compute the specific volume with the pressure and the enthalpy.
Definition EosSG.cpp:218
virtual double computeTemperature(const double &density, const double &pressure) const
Compute temperature.
Definition EosSG.cpp:66
virtual double dvdhcp(const double &pressure) const
Compute the partial derivative of the specific volume versus enthalpy at constant pressure.
Definition EosSG.cpp:232
virtual double computeDensityHugoniot(const double &initialPressure, const double &initialDensity, const double &finalPressure, double *drhodp=0) const
Compute density along the Hugoniot curve AND its derivature versus the pressure along Hugoniot curve.
Definition EosSG.cpp:152
virtual void assignParametersEos(std::string name, std::vector< double > parametersEos)
assign the values of the attributes for EosSG from data defined in the code
Definition EosSG.cpp:51
virtual double computeDensityIsentropic(const double &initialPressure, const double &initialDensity, const double &finalPressure, double *drhodp=0) const
Compute density along an isentropic path AND its derivature versus the pressure at constant entropy.
Definition EosSG.cpp:143
double m_eRef
Energy of reference of the fluid.
Definition EosSG.h:250
virtual double computeAcousticImpedance(const double &density, const double &pressure) const
Compute acoustic impedance.
Definition EosSG.cpp:108
virtual const double & getCv() const
Get the volume calorific energy of the fluid.
Definition EosSG.h:235
virtual double computeEnthalpyIsentropic(const double &initialPressure, const double &initialDensity, const double &finalPressure, double *dhdp=0) const
Compute enthalpy at the end of an isentropic path AND the enthalpy derivature versus the pressure.
Definition EosSG.cpp:174
virtual void verifyAndModifyPressure(double &pressure) const
Modify the pressure if its value is under a limit value equal to .
Definition EosSG.cpp:253
virtual double computeDensityPfinal(const double &initialPressure, const double &initialDensity, const double &finalPressure, double *drhodp=0) const
Compute density during relaxation step AND its derivative versus the pressure.
Definition EosSG.cpp:163
virtual const double & getGamma() const
Get the adiabatic exponent of the fluid.
Definition EosSG.h:229
virtual double computeSoundSpeed(const double &density, const double &pressure) const
Compute sound speed.
Definition EosSG.cpp:94
virtual double computeDensityEnergySaturation(const double &pressure, const double &rho, const double &drhodp, double *drhoedp=0) const
Compute the volumic internal energy at the saturation AND its derivative versus the pressure at const...
Definition EosSG.cpp:198
virtual double computeEnergy(const double &density, const double &pressure) const
Compute internal energy.
Definition EosSG.cpp:73
virtual double computePressure(const double &density, const double &energy) const
Compute pressure.
Definition EosSG.cpp:80
double m_cv
Volume calorific energy of the fluid.
Definition EosSG.h:249
virtual double computeDensitySaturation(const double &pressure, const double &Tsat, const double &dTsatdP, double *drhodp=0) const
Compute density on the saturation curve at the saturation temperature AND its derivative versus the p...
Definition EosSG.cpp:185
virtual void verifyAndCorrectDensityMax(const double &, double &, double &) const
Do nothing for SG.
Definition EosSG.h:222
virtual double dvdpch(const double &pressure, const double &enthalpy) const
Compute the partial derivative of the specific volume versus pressure at constant enthalpy.
Definition EosSG.cpp:225
virtual double computePressureHugoniot(const double &initialPressure, const double &initialDensity, const double &finalDensity) const
Compute pressure along the Hugoniot curve.
Definition EosSG.cpp:136
virtual double computeInterfaceSoundSpeed(const double &density, const double &interfacePressure, const double &pressure) const
Compute interface sound speed.
Definition EosSG.cpp:101
double m_gamma
Adiabatic exponent of the fluid.
Definition EosSG.h:247
virtual void verifyPressure(const double &pressure, const std::string &message="") const
Add a message error if the pressure is too low and under a limit value equal to .
Definition EosSG.cpp:246
General class for Equation of State (EOS).
Definition Eos.h:54