Added headers for a possible ubuntu problem

This commit is contained in:
Harry Moffat 2009-03-13 03:21:34 +00:00
parent fb0ab374e0
commit f0095a7f9b
6 changed files with 44 additions and 0 deletions

View file

@ -34,6 +34,7 @@ using namespace std;
#ifdef USE_DGG_CODE
#include <map>
#endif
#include <cstdlib>
namespace Cantera {

View file

@ -21,6 +21,8 @@
#include "WaterProps.h"
#include "PDSS_Water.h"
#include <cstdlib>
using namespace std;
namespace Cantera {

View file

@ -16,6 +16,8 @@
#include "../../../ext/tpx/Sub.h"
#include "../../../ext/tpx/utils.h"
#include <cstdlib>
namespace Cantera {
// Base Constructor

View file

@ -74,6 +74,8 @@
#include "IdealSolnGasVPSS.h"
#include <cstdlib>
using namespace std;
namespace Cantera {

View file

@ -109,6 +109,32 @@ namespace Cantera {
initLengths();
}
/*!
* Returns the vector of the
* gibbs function of the reference state at the current temperature
* of the solution and the reference pressure for the species.
* units = J/kmol
*
* @param g Output vector contain the Gibbs free energies
* of the reference state of the species
* length = m_kk, units = J/kmol.
*/
void VPSSMgr_General::getGibbs_ref(doublereal *g) const {
doublereal _rt = GasConstant * m_tlast;
if (m_useTmpRefStateStorage) {
std::copy(m_g0_RT.begin(), m_g0_RT.end(), g);
scale(g, g+m_kk, g, _rt);
} else {
for (int k = 0; k < m_kk; k++) {
PDSS *kPDSS = m_PDSS_ptrs[k];
kPDSS->setState_TP(m_tlast, m_plast);
double h0_RT = kPDSS->enthalpy_RT_ref();
double s0_R = kPDSS->entropy_R_ref();
g[k] = _rt * (h0_RT - s0_R);
}
}
}
void
VPSSMgr_General::initThermoXML(XML_Node& phaseNode, std::string id) {

View file

@ -147,6 +147,17 @@ namespace Cantera {
*/
//@{
/*!
* Returns the vector of the
* gibbs function of the reference state at the current temperature
* of the solution and the reference pressure for the species.
* units = J/kmol
*
* @param g Output vector contain the Gibbs free energies
* of the reference state of the species
* length = m_kk, units = J/kmol.
*/
virtual void getGibbs_ref(doublereal *g) const ;
//! @name Initialization Methods - For Internal use (VPStandardState)
/*!