42 VPSSMgr(right.m_vptp_ptr, right.m_spthermo)
74 throw CanteraError(
"VPSSMgr_Water_ConstVol::initAllPtrs",
117 for (
size_t k = 0; k <
m_kk; k++) {
164 copy(
m_V0.begin(),
m_V0.end(), vol);
171 for (
size_t k = 0; k <
m_kk; k++) {
194 for (
size_t k = 1; k <
m_kk; k++) {
230 throw CanteraError(
"VPSSMgr_Water_ConstVol::initThermoXML",
237 for (
size_t k = 1; k <
m_kk; k++) {
240 throw CanteraError(
"VPSSMgr_Water_ConstVol::initThermoXML",
241 "no species Node for species " + sss[k]);
245 std::string sName = s->operator[](
"name");
246 throw CanteraError(
"VPSSMgr_Water_ConstVol::initThermoXML",
247 "no standardState Node for species " + sName);
249 std::string model = (*ss)[
"model"];
250 if (model !=
"constant_incompressible") {
251 std::string sName = s->operator[](
"name");
252 throw CanteraError(
"VPSSMgr_Water_ConstVol::initThermoXML",
253 "standardState model for species isn't "
254 "constant_incompressible: " + sName);
262 const XML_Node*
const phaseNode_ptr)
270 string xn = speciesNode[
"name"];
271 if (xn !=
"H2O(L)") {
272 throw CanteraError(
"VPSSMgr_Water_ConstVol::installSpecies",
273 "h2o wrong name: " + xn);
276 std::string model = (*ss)[
"model"];
277 if (model !=
"waterIAPWS" && model !=
"waterPDSS") {
278 throw CanteraError(
"VPSSMgr_Water_ConstVol::installSpecies",
279 "wrong SS mode: " + model);
287 throw CanteraError(
"VPSSMgr_Water_ConstVol::installSpecies",
288 "failed dynamic cast");
298 throw CanteraError(
"VPSSMgr_Water_ConstVol::installSpecies",
299 "no standardState Node for species " + speciesNode.
name());
301 std::string model = (*ss)[
"model"];
302 if (model !=
"constant_incompressible") {
303 throw CanteraError(
"VPSSMgr_Water_ConstVol::initThermoXML",
304 "standardState model for species isn't "
305 "constant_incompressible: " + speciesNode.
name());
307 if (
m_Vss.size() < k+1) {
308 m_Vss.resize(k+1, 0.0);
325 return cVPSSMGR_WATER_CONSTVOL;