29 throw CanteraError(
"PDSS_ConstVol::setParametersFromXML",
30 "no standardState Node for species '{}'",
33 if (ss->
attrib(
"model") !=
"constant_incompressible") {
34 throw CanteraError(
"PDSS_ConstVol::setParametersFromXML",
35 "standardState model for species '{}' isn't "
36 "'constant_incompressible'", speciesNode.
name());
58 eosNode[
"model"] =
"constant-volume";
104 if (fabs(rhoStored - rho) / (rhoStored + rho) > 1.0E-4) {
106 "Inconsistent supplied rho");
Declarations for the class PDSS_ConstVol (pressure dependent standard state) which handles calculatio...
Header file for a derived class of ThermoPhase that handles variable pressure standard state methods ...
A map of string keys to values whose type can vary at runtime.
double convert(const std::string &key, const std::string &units) const
Convert the item stored by the given key to the units specified in units.
bool hasKey(const std::string &key) const
Returns true if the map contains an item named key.
Base class for exceptions thrown by Cantera classes.
PDSS_ConstVol()
Default Constructor.
virtual void getParameters(AnyMap &eosNode) const
Store the parameters needed to reconstruct a copy of this PDSS object.
virtual void setPressure(doublereal pres)
Sets the pressure in the object.
virtual void setState_TP(doublereal temp, doublereal pres)
Set the internal temperature and pressure.
virtual doublereal cv_mole() const
Return the molar const volume heat capacity in units of J kmol-1 K-1.
virtual void setTemperature(doublereal temp)
Set the internal temperature.
void setMolarVolume(double v)
Set the (constant) molar volume [m3/kmol] of the species.
virtual void initThermo()
Initialization routine.
doublereal m_constMolarVolume
Value of the constant molar volume for the species.
virtual void setParametersFromXML(const XML_Node &speciesNode)
Initialization routine for the PDSS object based on the speciesNode.
virtual void setState_TR(doublereal temp, doublereal rho)
Set the internal temperature and density.
virtual doublereal satPressure(doublereal t)
saturation pressure
virtual doublereal intEnergy_mole() const
Return the molar internal Energy in units of J kmol-1.
double m_sss_R
Standard state entropy divided by R.
virtual doublereal cp_mole() const
Return the molar const pressure heat capacity in units of J kmol-1 K-1.
double m_cpss_R
Standard state heat capacity divided by R.
double m_h0_RT
Reference state enthalpy divided by RT.
double m_g0_RT
Reference state Gibbs free energy divided by RT.
double m_s0_R
Reference state entropy divided by R.
double m_gss_RT
Standard state Gibbs free energy divided by RT.
double m_cp0_R
Reference state heat capacity divided by R.
double m_Vss
Standard State molar volume (m^3/kmol)
double m_hss_RT
Standard state enthalpy divided by RT.
double m_V0
Reference state molar volume (m^3/kmol)
virtual void initThermo()
Initialization routine.
virtual void setParametersFromXML(const XML_Node &speciesNode)
Initialization routine for the PDSS object based on the speciesNode.
doublereal m_pres
State of the system - pressure.
shared_ptr< SpeciesThermoInterpType > m_spthermo
Pointer to the species thermodynamic property manager.
doublereal m_temp
Current temperature used by the PDSS object.
doublereal m_maxTemp
Maximum temperature.
doublereal m_p0
Reference state pressure of the species.
doublereal m_mw
Molecular Weight of the species.
AnyMap m_input
Input data supplied via setParameters.
virtual void getParameters(AnyMap &eosNode) const
Store the parameters needed to reconstruct a copy of this PDSS object.
doublereal m_minTemp
Minimum temperature.
Class XML_Node is a tree-based representation of the contents of an XML file.
std::string attrib(const std::string &attr) const
Function returns the value of an attribute.
std::string name() const
Returns the name of the XML node.
const XML_Node * findByName(const std::string &nm, int depth=100000) const
This routine carries out a recursive search for an XML node based on the name of the node.
CTML ("Cantera Markup Language") is the variant of XML that Cantera uses to store data.
Namespace for the Cantera kernel.
doublereal getFloat(const XML_Node &parent, const std::string &name, const std::string &type="")
Get a floating-point value from a child element.
const double GasConstant
Universal Gas Constant [J/kmol/K].