36 m_press = right.m_press;
38 m_tlast = right.m_tlast;
39 m_h0_RT = right.m_h0_RT;
40 m_cp0_R = right.m_cp0_R;
41 m_s0_R = right.m_s0_R;
89 "stoichiometric substances may only contain one species.");
101 if (tnow > tmin && tnow < tmax) {
104 tnow = 0.1 * (9 * tmin + tmax);
109 void StoichSubstance::_updateThermo()
const
112 if (m_tlast != tnow) {
152 for (
int i = 0; i < sizeUA; i++) {
226 grt[0] = m_h0_RT[0] - m_s0_R[0];
244 cprt[0] = m_cp0_R[0];
263 eosdata.
_require(
"model",
"StoichSubstance");
virtual doublereal enthalpy_mole() const
Molar enthalpy.
virtual doublereal gibbs_mole() const
Molar gibbs Function.
void _require(const std::string &a, const std::string &v) const
Require that the current xml node have an attribute named by the first argument, a, and that this attribute have the the string value listed in the second argument, v.
virtual doublereal density() const
Density (kg/m^3).
virtual void getActivityConcentrations(doublereal *c) const
This method returns the array of generalized concentrations.
virtual void getUnitsStandardConc(double *uA, int k=0, int sizeUA=6) const
Returns the units of the standard and generalized concentrations.
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.
const doublereal OneAtm
One atmosphere [Pa].
virtual void getEnthalpy_RT_ref(doublereal *hrt) const
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
ThermoPhase & operator=(const ThermoPhase &right)
Assignment operator.
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 doublereal maxTemp(size_t k=npos) const =0
Maximum temperature.
Class XML_Node is a tree-based representation of the contents of an XML file.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
Virtual base class for the calculation of multiple-species thermodynamic reference-state property man...
doublereal getFloat(const Cantera::XML_Node &parent, const std::string &name, const std::string &type)
Get a floating-point value from a child element.
ThermoPhase * duplMyselfAsThermoPhase() const
Duplicator from the ThermoPhase parent class.
doublereal molarDensity() const
Molar density (kmol/m^3).
virtual void getPartialMolarVolumes(doublereal *vbar) const
returns an array of partial molar volumes of the species in the solution.
virtual doublereal logStandardConc(size_t k=0) const
Returns the natural logarithm of the standard concentration of the kth species.
virtual doublereal cp_mole() const
Molar heat capacity at constant pressure.
virtual void setPressure(doublereal p)
Set the pressure at constant temperature. Units: Pa.
virtual void getStandardChemPotentials(doublereal *mu0) const
Get the array of chemical potentials at unit activity .
virtual void getPureGibbs(doublereal *gpure) const
Get the Gibbs functions for the standard state of the species at the current T and P of the solution...
Class StoichSubstance represents a stoichiometric (fixed composition) incompressible substance...
virtual void setParameters(int n, double *const c)
Base class for a phase with thermodynamic properties.
virtual void getGibbs_RT_ref(doublereal *grt) const
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
StoichSubstance & operator=(const StoichSubstance &right)
Assignment operator.
virtual void getStandardVolumes(doublereal *vol) const
Get the standard volumes for the standard state of the species at the current T and P...
void getElectrochemPotentials(doublereal *mu) const
Get the species electrochemical potentials.
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 doublereal pressure() const
Report the Pressure. Units: Pa.
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...
virtual void getCp_R(doublereal *cpr) const
Get the nondimensional Heat Capacities at constant pressure for the standard state of the species at ...
virtual doublereal cv_mole() const
Molar heat capacity at constant volume.
Base class for exceptions thrown by Cantera classes.
virtual void getChemPotentials_RT(doublereal *mu) const
Get the array of non-dimensional chemical potentials .
virtual void getGibbs_RT(doublereal *grt) const
Get the nondimensional Gibbs functions for the species at their standard states of solution at the cu...
virtual void setState_TP(doublereal t, doublereal p)
Set the temperature (K) and pressure (Pa)
virtual doublereal intEnergy_mole() const
Molar internal energy.
virtual void getCp_R_ref(doublereal *cprt) const
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
virtual doublereal refPressure() const
Returns the reference pressure in Pa.
virtual doublereal minTemp(size_t k=npos) const =0
Minimum temperature.
StoichSubstance()
Default empty constructor.
virtual doublereal entropy_mole() const
Molar entropy.
doublereal temperature() const
Temperature (K).
virtual void getParameters(int &n, double *const c) const
virtual void getChemPotentials(doublereal *mu) const
For a stoichiometric substance, there is only one species.
const doublereal GasConstant
Universal Gas Constant. [J/kmol/K].
This file contains the class declarations for the StoichSubstance ThermoPhase class.
size_t m_kk
Number of species in the phase.
virtual void setParametersFromXML(const XML_Node &eosdata)
Set equation of state parameter values from XML entries.
virtual void update(doublereal T, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const =0
Compute the reference-state properties for all species.
virtual void getPartialMolarEntropies(doublereal *sbar) const
Returns an array of partial molar entropies of the species in the solution.
virtual void getEntropy_R(doublereal *sr) const
Get the array of nondimensional Enthalpy functions for the standard state species at the current T an...
SpeciesThermo * m_spthermo
Pointer to the calculation manager for species reference-state thermodynamic properties.
virtual doublereal standardConcentration(size_t k=0) const
The standard concentration.
virtual void getPartialMolarEnthalpies(doublereal *hbar) const
Returns an array of partial molar enthalpies for the species in the mixture.
virtual void setDensity(const doublereal density_)
Set the internally stored density (kg/m^3) of the phase Note the density of a phase is an independent...