Go to the documentation of this file.
36 virtual std::string
type()
const {
71 virtual std::vector<std::string>
fullStates()
const;
81 virtual doublereal
cp_mole()
const;
82 virtual doublereal
cv_mole()
const;
160 virtual void setState_HP(
double h,
double p,
double tol=1e-9);
161 virtual void setState_UV(
double u,
double v,
double tol=1e-9);
162 virtual void setState_SV(
double s,
double v,
double tol=1e-9);
163 virtual void setState_SP(
double s,
double p,
double tol=1e-9);
164 virtual void setState_ST(
double s,
double t,
double tol=1e-9);
165 virtual void setState_TV(
double t,
double v,
double tol=1e-9);
166 virtual void setState_PV(
double p,
double v,
double tol=1e-9);
167 virtual void setState_UP(
double u,
double p,
double tol=1e-9);
168 virtual void setState_VH(
double v,
double h,
double tol=1e-9);
169 virtual void setState_TH(
double t,
double h,
double tol=1e-9);
170 virtual void setState_SH(
double s,
double h,
double tol=1e-9);
196 virtual std::string
report(
bool show_thermo=
true,
197 doublereal threshold=1e-14)
const;
210 void Set(tpx::PropertyPair::type n,
double x,
double y)
const;
214 mutable std::unique_ptr<tpx::Substance>
m_sub;
virtual void getChemPotentials(doublereal *mu) const
Get the species chemical potentials. Units: J/kmol.
virtual doublereal critDensity() const
Critical density (kg/m3).
virtual void setState_SV(double s, double v, double tol=1e-9)
Set the specific entropy (J/kg/K) and specific volume (m^3/kg).
virtual doublereal critTemperature() const
Critical temperature (K).
virtual double maxTemp(size_t k=npos) const
Maximum temperature for which the thermodynamic data for the species are valid.
virtual void getPartialMolarCp(doublereal *cpbar) const
Return an array of partial molar heat capacities for the species in the mixture.
virtual doublereal satTemperature(doublereal p) const
Return the saturation temperature given the pressure.
virtual void getStandardChemPotentials(doublereal *mu) const
virtual std::vector< std::string > fullStates() const
Return a vector containing full states defining a phase.
tpx::Substance & TPX_Substance()
Returns a reference to the substance object.
virtual void setState_PV(double p, double v, double tol=1e-9)
Set the pressure (Pa) and specific volume (m^3/kg).
virtual void getEntropy_R(doublereal *sr) const
Get the array of nondimensional Entropy functions for the standard state species at the current T and...
virtual void setState_Tsat(doublereal t, doublereal x)
Set the state to a saturated system at a particular temperature.
bool m_verbose
flag to turn on some printing.
virtual bool compatibleWithMultiPhase() const
Indicates whether this phase type can be used with class MultiPhase for equilibrium calculations.
virtual void setState_VH(double v, double h, double tol=1e-9)
Set the specific volume (m^3/kg) and the specific enthalpy (J/kg)
virtual doublereal cp_mole() const
Molar heat capacity at constant pressure. Units: J/kmol/K.
virtual doublereal satPressure(doublereal t)
Return the saturation pressure given the temperature.
virtual doublereal intEnergy_mole() const
Molar internal energy. Units: J/kmol.
virtual void getPartialMolarVolumes(doublereal *vbar) const
Return an array of partial molar volumes for the species in the mixture.
virtual void getActivityConcentrations(doublereal *c) const
This method returns an array of generalized concentrations.
virtual std::string report(bool show_thermo=true, doublereal threshold=1e-14) const
returns a summary of the state of the phase as a string
virtual void setTemperature(const double T)
Set the internally stored temperature of the phase (K).
virtual doublereal enthalpy_mole() const
Molar enthalpy. Units: J/kmol.
virtual void getGibbs_RT(doublereal *grt) const
Get the nondimensional Gibbs functions for the species in their standard states at the current T and ...
virtual void getPartialMolarEntropies(doublereal *sbar) const
Returns an array of partial molar entropies of the species in the solution.
std::string name() const
Return the name of the phase.
virtual bool hasPhaseTransition() const
Return whether phase represents a substance with phase transitions.
int m_subflag
Int indicating the type of the fluid.
virtual void setState_TH(double t, double h, double tol=1e-9)
Set the temperature (K) and the specific enthalpy (J/kg)
PureFluidPhase()
Empty Base Constructor.
virtual doublereal thermalExpansionCoeff() const
Return the volumetric thermal expansion coefficient. Units: 1/K.
virtual doublereal standardConcentration(size_t k=0) const
Return the standard concentration for the kth species.
virtual void getPartialMolarEnthalpies(doublereal *hbar) const
Returns an array of partial molar enthalpies for the species in the mixture.
virtual Units standardConcentrationUnits() const
Returns the units of the "standard concentration" for this phase.
virtual void setState_ST(double s, double t, double tol=1e-9)
Set the specific entropy (J/kg/K) and temperature (K).
std::unique_ptr< tpx::Substance > m_sub
Pointer to the underlying tpx object Substance that does the work.
void setSubstance(const std::string &name)
Set the name of the TPX substance to use for the equation of state.
virtual void setState_Psat(doublereal p, doublereal x)
Set the state to a saturated system at a particular pressure.
virtual std::string type() const
String indicating the thermodynamic model implemented.
virtual doublereal vaporFraction() const
Return the fraction of vapor at the current conditions.
virtual doublereal gibbs_mole() const
Molar Gibbs function. Units: J/kmol.
virtual void getEnthalpy_RT_ref(doublereal *hrt) const
virtual void setState_UP(double u, double p, double tol=1e-9)
Set the specific internal energy (J/kg) and pressure (Pa).
Class XML_Node is a tree-based representation of the contents of an XML file.
virtual void setDensity(const double rho)
Set the internally stored density (kg/m^3) of the phase.
virtual doublereal pressure() const
Return the thermodynamic pressure (Pa).
Base class for a phase with thermodynamic properties.
virtual void setState_HP(double h, double p, double tol=1e-9)
Set the internally stored specific enthalpy (J/kg) and pressure (Pa) of the phase.
virtual void getEntropy_R_ref(doublereal *er) const
Returns the vector of nondimensional entropies of the reference state at the current temperature of t...
virtual void setParametersFromXML(const XML_Node &eosdata)
Set equation of state parameter values from XML entries.
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.
virtual void setState_TV(double t, double v, double tol=1e-9)
Set the temperature (K) and specific volume (m^3/kg).
std::string m_tpx_name
Name for this substance used by the TPX package.
virtual void getEnthalpy_RT(doublereal *hrt) const
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
virtual std::string phaseOfMatter() const
String indicating the mechanical phase of the matter in this Phase.
virtual doublereal entropy_mole() const
Molar entropy. Units: J/kmol/K.
virtual doublereal critPressure() const
Critical pressure (Pa).
virtual doublereal cv_mole() const
Molar heat capacity at constant volume. Units: J/kmol/K.
A representation of the units associated with a dimensional quantity.
This phase object consists of a single component that can be a gas, a liquid, a mixed gas-liquid flui...
virtual void getPartialMolarIntEnergies(doublereal *ubar) const
Return an array of partial molar internal energies for the species in the mixture.
virtual void getGibbs_RT_ref(doublereal *grt) const
Returns the vector of nondimensional Gibbs Free Energies of the reference state at the current temper...
virtual bool isPure() const
Return whether phase represents a pure (single species) substance.
const size_t npos
index returned by functions to indicate "no position"
virtual doublereal isothermalCompressibility() const
Returns the isothermal compressibility. Units: 1/Pa.
virtual void setState_SH(double s, double h, double tol=1e-9)
Set the specific entropy (J/kg/K) and the specific enthalpy (J/kg)
doublereal m_mw
Molecular weight of the substance (kg kmol-1)
virtual double minTemp(size_t k=npos) const
Minimum temperature for which the thermodynamic data for the species or phase are valid.
Namespace for the Cantera kernel.
virtual void setPressure(doublereal p)
sets the thermodynamic pressure (Pa).
virtual void setState_SP(double s, double p, double tol=1e-9)
Set the specific entropy (J/kg/K) and pressure (Pa).
virtual std::vector< std::string > partialStates() const
Return a vector of settable partial property sets within a phase.
virtual void setState_UV(double u, double v, double tol=1e-9)
Set the specific internal energy (J/kg) and specific volume (m^3/kg).
virtual void getGibbs_ref(doublereal *g) const
Returns the vector of the Gibbs function of the reference state at the current temperature of the sol...
void Set(tpx::PropertyPair::type n, double x, double y) const
Main call to the tpx level to set the state of the system.
virtual void getActivities(doublereal *a) const
Get the array of non-dimensional activities at the current solution temperature, pressure,...