Added isothermalCompressibility() to interface.

This commit is contained in:
Harry Moffat 2009-03-17 21:02:09 +00:00
parent 7145ee94f9
commit 5459aa4078
2 changed files with 29 additions and 0 deletions

View file

@ -486,6 +486,22 @@ namespace Cantera {
setDensity(dd);
}
// Returns the isothermal compressibility. Units: 1/Pa.
/*
* The isothermal compressibility is defined as
* \f[
* \kappa_T = -\frac{1}{v}\left(\frac{\partial v}{\partial P}\right)_T
* \f]
* or
* \f[
* \kappa_T = \frac{1}{\rho}\left(\frac{\partial \rho}{\partial P}\right)_T
* \f]
*/
doublereal WaterSSTP::isothermalCompressibility() const {
doublereal val = m_sub->isothermalCompressibility();
return val;
}
// Return the volumetric thermal expansion coefficient. Units: 1/K.
/*
* The thermal expansion coefficient is defined as

View file

@ -186,6 +186,19 @@ namespace Cantera {
virtual doublereal pressure() const;
virtual void setPressure(doublereal p);
//! Returns the isothermal compressibility. Units: 1/Pa.
/*!
* The isothermal compressibility is defined as
* \f[
* \kappa_T = -\frac{1}{v}\left(\frac{\partial v}{\partial P}\right)_T
* \f]
* or
* \f[
* \kappa_T = \frac{1}{\rho}\left(\frac{\partial \rho}{\partial P}\right)_T
* \f]
*/
virtual doublereal isothermalCompressibility() const;
//! Return the volumetric thermal expansion coefficient. Units: 1/K.
/*!
* The thermal expansion coefficient is defined as