37 StoichSubstance::operator=(
const StoichSubstance& right)
40 SingleSpeciesTP::operator=(right);
55 "To be removed after Cantera 2.3.");
56 return cStoichSubstance;
110 hrt[0] += presCorrect /
RT();
151 "stoichiometric substances may only contain one species.");
164 if (!phaseNode.
hasChild(
"thermo")) {
166 "no thermo XML node");
169 std::string model = tnode[
"model"];
170 if (model !=
"StoichSubstance" && model !=
"StoichSubstanceSSTP") {
172 "thermo model attribute must be StoichSubstance");
174 double dens =
getFloat(tnode,
"density",
"toSI");
192 std::string model = eosdata[
"model"];
193 if (model !=
"StoichSubstance" && model !=
"StoichSubstanceSSTP") {
194 throw CanteraError(
"StoichSubstance::setParametersFromXML",
195 "thermo model attribute must be StoichSubstance");
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 getParameters(int &n, doublereal *const c) const
Get the equation of state parameters in a vector.
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.
CTML ("Cantera Markup Language") is the variant of XML that Cantera uses to store data...
double m_h0_RT
Dimensionless enthalpy at the (mtlast, m_p0)
virtual void getCp_R(doublereal *cpr) const
Get the nondimensional Heat Capacities at constant pressure for the species standard states at the cu...
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.
Headers for the factory class that can create known ThermoPhase objects (see Thermodynamic Properties...
Class XML_Node is a tree-based representation of the contents of an XML file.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
virtual doublereal density() const
Density (kg/m^3).
virtual int eosType() const
Equation of state flag.
virtual void setPressure(doublereal p)
Set the pressure at constant temperature. Units: Pa.
Class StoichSubstance represents a stoichiometric (fixed composition) incompressible substance...
doublereal RT() const
Return the Gas Constant multiplied by the current temperature.
double m_cp0_R
Dimensionless heat capacity at the (mtlast, m_p0)
Base class for a phase with thermodynamic properties.
void _updateThermo() const
doublereal molarDensity() const
Molar density (kmol/m^3).
virtual doublereal standardConcentration(size_t k=0) const
Return the standard concentration for the kth species.
virtual void getIntEnergy_RT_ref(doublereal *urt) const
Returns the vector of nondimensional internal Energies of the reference state at the current temperat...
virtual ThermoPhase * duplMyselfAsThermoPhase() const
Duplication routine for objects which inherit from ThermoPhase.
virtual doublereal thermalExpansionCoeff() const
Return the volumetric thermal expansion coefficient. Units: 1/K.
double m_s0_R
Dimensionless entropy at the (mtlast, m_p0)
virtual doublereal pressure() const
Report the Pressure. Units: Pa.
virtual doublereal isothermalCompressibility() const
Returns the isothermal compressibility. Units: 1/Pa.
Base class for exceptions thrown by Cantera classes.
virtual void getActivityConcentrations(doublereal *c) const
This method returns an array of generalized concentrations.
void importPhase(XML_Node &phase, ThermoPhase *th)
Import a phase information into an empty ThermoPhase object.
bool hasChild(const std::string &ch) const
Tests whether the current node has a child node with a particular name.
XML_Node & child(const size_t n) const
Return a changeable reference to the n'th child of the current node.
StoichSubstance()
Default constructor for the StoichSubstance class.
virtual void initThermoXML(XML_Node &phaseNode, const std::string &id)
Import and initialize a ThermoPhase object using an XML tree.
virtual void getIntEnergy_RT(doublereal *urt) const
Returns the vector of nondimensional Internal Energies of the standard state species at the current T...
virtual void setParameters(int n, doublereal *const c)
Set the equation of state parameters.
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 refPressure() const
Returns the reference pressure in Pa.
doublereal getFloat(const XML_Node &parent, const std::string &name, const std::string &type)
Get a floating-point value from a child element.
doublereal m_press
The current pressure of the solution (Pa). It gets initialized to 1 atm.
Header file for the StoichSubstance class, which represents a fixed-composition incompressible substa...
size_t m_kk
Number of species in the phase.
virtual void getStandardChemPotentials(doublereal *mu0) const
Get the array of chemical potentials at unit activity for the species at their standard states at the...
virtual void setParametersFromXML(const XML_Node &eosdata)
Set equation of state parameter values from XML entries.
virtual void initThermoFile(const std::string &inputFile, const std::string &id)
virtual void getEnthalpy_RT_ref(doublereal *hrt) const
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
Namespace for the Cantera kernel.
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 doublereal logStandardConc(size_t k=0) const
Natural logarithm of the standard concentration of the kth species.
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 setDensity(const doublereal density_)
Set the internally stored density (kg/m^3) of the phase.
virtual void initThermoXML(XML_Node &phaseNode, const std::string &id)
Import and initialize a ThermoPhase object using an XML tree.