Make all ThermoPhase setState functions virtual.

This commit is contained in:
Victor Brunini 2012-12-13 22:14:02 +00:00
parent 2805db17e9
commit 4f41718e5b

View file

@ -1016,7 +1016,7 @@ public:
* @param x Composition map of mole fractions. Species not in
* the composition map are assumed to have zero mole fraction
*/
void setState_TPX(doublereal t, doublereal p, compositionMap& x);
virtual void setState_TPX(doublereal t, doublereal p, compositionMap& x);
//! Set the temperature (K), pressure (Pa), and mole fractions.
/*!
@ -1028,7 +1028,7 @@ public:
* @param x String containing a composition map of the mole fractions. Species not in
* the composition map are assumed to have zero mole fraction
*/
void setState_TPX(doublereal t, doublereal p, const std::string& x);
virtual void setState_TPX(doublereal t, doublereal p, const std::string& x);
//! Set the internally stored temperature (K), pressure (Pa), and mass fractions of the phase.
/*!
@ -1040,7 +1040,7 @@ public:
* @param y Vector of mass fractions.
* Length is equal to m_kk.
*/
void setState_TPY(doublereal t, doublereal p, const doublereal* y);
virtual void setState_TPY(doublereal t, doublereal p, const doublereal* y);
//! Set the internally stored temperature (K), pressure (Pa), and mass fractions of the phase
/*!
@ -1052,7 +1052,7 @@ public:
* @param y Composition map of mass fractions. Species not in
* the composition map are assumed to have zero mass fraction
*/
void setState_TPY(doublereal t, doublereal p, compositionMap& y);
virtual void setState_TPY(doublereal t, doublereal p, compositionMap& y);
//! Set the internally stored temperature (K), pressure (Pa), and mass fractions of the phase
/*!
@ -1064,7 +1064,7 @@ public:
* @param y String containing a composition map of the mass fractions. Species not in
* the composition map are assumed to have zero mass fraction
*/
void setState_TPY(doublereal t, doublereal p, const std::string& y);
virtual void setState_TPY(doublereal t, doublereal p, const std::string& y);
//! Set the temperature (K) and pressure (Pa)
/*!
@ -1073,7 +1073,7 @@ public:
* @param t Temperature (K)
* @param p Pressure (Pa)
*/
void setState_TP(doublereal t, doublereal p);
virtual void setState_TP(doublereal t, doublereal p);
//! Set the pressure (Pa) and mole fractions.
/*!
@ -1084,7 +1084,7 @@ public:
* @param x Vector of mole fractions.
* Length is equal to m_kk.
*/
void setState_PX(doublereal p, doublereal* x);
virtual void setState_PX(doublereal p, doublereal* x);
//! Set the internally stored pressure (Pa) and mass fractions.
/*!
@ -1096,7 +1096,7 @@ public:
* @param y Vector of mass fractions.
* Length is equal to m_kk.
*/
void setState_PY(doublereal p, doublereal* y);
virtual void setState_PY(doublereal p, doublereal* y);
//! Set the internally stored specific enthalpy (J/kg) and pressure (Pa) of the phase.
/*!