30 WaterSSTP::WaterSSTP() :
38 m_allowGasPhase(false)
52 m_allowGasPhase(false)
66 m_allowGasPhase(false)
78 EW_Offset(b.EW_Offset),
79 SW_Offset(b.SW_Offset),
81 m_allowGasPhase(b.m_allowGasPhase)
171 if (inputFile.size() == 0) {
173 "input file is null");
176 std::ifstream fin(path.c_str());
178 throw CanteraError(
"WaterSSTP::constructPhaseFile",
"could not open "
179 +path+
" for reading.");
191 "ERROR: Can not find phase named " +
192 id +
" in file named " + inputFile);
194 fxml_phase->
copy(&phaseNode_XML);
220 "could not create new substance object.");
242 m_mw = 2.0 * mw_H + mw_O;
250 doublereal T = 298.15;
254 doublereal presLow = 1.0E-2;
255 doublereal oneBar = 1.0E5;
256 doublereal dd =
m_sub->
density(T, presLow, WATER_GAS, 7.0E-8);
262 if (s != 188.835E3) {
270 if (h != -241.826E6) {
306 eosdata.
_require(
"model",
"PureLiquidWater");
390 int waterState = WATER_GAS;
393 waterState = WATER_LIQUID;
409 int waterState = WATER_GAS;
412 waterState = WATER_LIQUID;
428 doublereal rt =
_RT();
429 for (
size_t k = 0; k <
m_kk; k++) {
439 int waterState = WATER_GAS;
442 waterState = WATER_LIQUID;
462 int waterState = WATER_GAS;
465 waterState = WATER_LIQUID;
482 int waterState = WATER_GAS;
485 waterState = WATER_LIQUID;
511 int waterState = WATER_GAS;
514 waterState = WATER_LIQUID;
556 doublereal dens_save =
density();
558 double tt = T - 0.04;
559 doublereal dd =
m_sub->
density(tt, pres, WATER_LIQUID, dens_save);
561 throw CanteraError(
"WaterSSTP::dthermalExpansionCoeffdT",
562 "Unable to solve for the density at T = " +
fp2str(tt) +
", P = " +
fp2str(pres));
567 doublereal val = (val2 - vald) / 0.04;