106 const XML_Node& phaseNode,
bool spInstalled)
113 throw CanteraError(
"PDSS_ConstVol::constructPDSSXML",
"spInstalled false not handled");
119 "no standardState Node for species " + speciesNode.
name());
121 std::string model = (*ss)[
"model"];
122 if (model !=
"constant_incompressible") {
124 "standardState model for species isn't constant_incompressible: " + speciesNode.
name());
151 std::string inputFile, std::string
id)
154 if (inputFile.size() == 0) {
156 "input file is null");
159 ifstream fin(path.c_str());
161 throw CanteraError(
"PDSS_ConstVol::initThermo",
"could not open "
162 +path+
" for reading.");
174 "ERROR: Can not find phase named " +
175 id +
" in file named " + inputFile);
180 &(fxml_phase->
root()));
336 throw CanteraError(
"PDSS_ConstVol::critTemperature()",
"unimplemented");
343 throw CanteraError(
"PDSS_ConstVol::critPressure()",
"unimplemented");
350 throw CanteraError(
"PDSS_ConstVol::critDensity()",
"unimplemented");
389 if (fabs(rhoStored - rho) / (rhoStored + rho) > 1.0E-4) {
391 "Inconsistent supplied rho");