19 ConstDensityThermo::ConstDensityThermo() : m_tlast(0.0)
55 return cIncompressible;
112 for (
size_t k = 0; k <
m_kk; k++) {
134 for (
size_t k = 0; k <
m_kk; k++) {
136 mu[k] = rt*(g_RT[k] + log(xx)) + vdp;
169 for (
size_t k = 0; k <
m_kk; k++) {
178 eosdata.
_require(
"model",
"Incompressible");
179 doublereal rho =
getFloat(eosdata,
"density",
"toSI");
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.
vector_fp m_s0_R
Temporary storage for dimensionless reference state entropies.
virtual doublereal standardConcentration(size_t k=0) const
Return the standard concentration for the kth species.
virtual void setToEquilState(const doublereal *lambda_RT)
This method is used by the ChemEquil equilibrium solver.
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...
const vector_fp & cp_R() const
Returns a reference to the vector of nondimensional constant pressure heat capacities of the referenc...
virtual ThermoPhase * duplMyselfAsThermoPhase() const
Duplication routine for objects which inherit from ThermoPhase.
virtual void getActivityCoefficients(doublereal *ac) const
Get the array of non-dimensional molar-based activity coefficients at the current solution temperatur...
Class XML_Node is a tree-based representation of the contents of an XML file.
vector_fp m_h0_RT
Temporary storage for dimensionless reference state enthalpies.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
virtual doublereal cp_mole() const
Molar heat capacity at constant pressure. Units: J/kmol/K.
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.
doublereal molarDensity() const
Molar density (kmol/m^3).
Header for a Thermo manager for incompressible ThermoPhases (see Thermodynamic Properties and ConstDe...
void getConcentrations(doublereal *const c) const
Get the species concentrations (kmol/m^3).
doublereal m_press
Current pressure (Pa)
vector_fp m_pp
Temporary array containing internally calculated partial pressures.
Base class for a phase with thermodynamic properties.
doublereal mean_X(const doublereal *const Q) const
Evaluate the mole-fraction-weighted mean of an array Q.
virtual void getChemPotentials(doublereal *mu) const
Get the species chemical potentials. Units: J/kmol.
virtual doublereal gibbs_mole() const
Molar Gibbs function. Units: J/kmol.
ConstDensityThermo()
Constructor.
virtual void setPressure(doublereal p)
Set the internally stored pressure (Pa) at constant temperature and composition.
virtual void getStandardChemPotentials(doublereal *mu0) const
Get the array of chemical potentials at unit activity for the species at their standard states at the...
doublereal sum_xlogx() const
Evaluate .
void _updateThermo() const
Function to update the reference state thermo functions.
virtual doublereal refPressure(size_t k=npos) const =0
The reference-state pressure for species k.
Overloads the virtual methods of class ThermoPhase to implement the incompressible equation of state...
Base class for exceptions thrown by Cantera classes.
virtual doublereal cv_mole() const
Molar heat capacity at constant volume. Units: J/kmol/K.
const vector_fp & enthalpy_RT() const
Returns a reference to the vector of nondimensional enthalpies of the reference state at the current ...
size_t nSpecies() const
Returns the number of species in the phase.
virtual void setParametersFromXML(const XML_Node &eosdata)
Set equation of state parameter values from XML entries.
doublereal moleFraction(size_t k) const
Return the mole fraction of a single species.
const vector_fp & gibbs_RT() const
Returns a reference to the vector of nondimensional Gibbs Free Energies of the reference state at the...
doublereal temperature() const
Temperature (K).
doublereal m_tlast
last value of the temperature processed by reference state
const doublereal SmallNumber
smallest number to compare to zero.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual int eosType() const
Returns a constant corresponding to this class's equation of state.
virtual doublereal enthalpy_mole() const
Molar enthalpy. Units: J/kmol.
const doublereal GasConstant
Universal Gas Constant. [J/kmol/K].
virtual void getActivityConcentrations(doublereal *c) const
This method returns an array of generalized concentrations.
ConstDensityThermo & operator=(const ConstDensityThermo &right)
Assignment Operator.
const vector_fp & entropy_R() const
Returns a reference to the vector of nondimensional entropies of the reference state at the current t...
virtual doublereal entropy_mole() const
Molar entropy. Units: J/kmol/K.
size_t m_kk
Number of species in the phase.
virtual doublereal pressure() const
Return the thermodynamic pressure (Pa).
virtual void update(doublereal T, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const =0
Compute the reference-state properties for all species.
vector_fp m_g0_RT
Temporary storage for dimensionless reference state gibbs energies.
virtual doublereal intEnergy_mole() const
Molar internal energy. Units: J/kmol.
vector_fp m_cp0_R
Temporary storage for dimensionless reference state heat capacities.
SpeciesThermo * m_spthermo
Pointer to the calculation manager for species reference-state thermodynamic properties.
virtual doublereal logStandardConc(size_t k=0) const
Natural logarithm of the standard concentration of the kth species.
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...
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.