32 m_constMolarVolume(-1.0)
42 size_t spindex, std::string inputFile, std::string
id) :
45 m_constMolarVolume(-1.0)
58 m_constMolarVolume(-1.0)
68 m_constMolarVolume(-1.0)
121 const XML_Node& phaseNode,
bool spInstalled)
128 throw CanteraError(
"PDSS_SSVol::constructPDSSXML",
"spInstalled false not handled");
134 "no standardState Node for species " + speciesNode.
name());
136 std::string model = (*ss)[
"model"];
137 if (model ==
"constant_incompressible" || model ==
"constant") {
140 }
else if (model ==
"temperature_polynomial") {
145 " Didn't get 4 density polynomial numbers for species " + speciesNode.
name());
147 }
else if (model ==
"density_temperature_polynomial") {
152 " Didn't get 4 density polynomial numbers for species " + speciesNode.
name());
156 "standardState model for species isn't constant_incompressible: " + speciesNode.
name());
180 std::string inputFile, std::string
id)
183 if (inputFile.size() == 0) {
185 "input file is null");
188 ifstream fin(path.c_str());
190 throw CanteraError(
"PDSS_SSVol::initThermo",
"could not open "
191 +path+
" for reading.");
203 "ERROR: Can not find phase named " +
204 id +
" in file named " + inputFile);
209 &(fxml_phase->
root()));
366 d2VdT2_ = 2.0 * TCoeff_[2] + 6.0 * m_temp * TCoeff_[3];
370 doublereal dens2 = dens * dens;
372 doublereal d2densdT2 = 2.0 * TCoeff_[2] + 6.0 * m_temp * TCoeff_[3];
374 d2VdT2_ = 2.0 *
m_mw / (dens2 * dens) * ddensdT * ddensdT -
m_mw / dens2 * d2densdT2;
376 throw CanteraError(
"PDSS_SSVol::calcMolarVolume",
"unimplemented");
384 throw CanteraError(
"PDSS_SSVol::critTemperature()",
"unimplemented");
391 throw CanteraError(
"PDSS_SSVol::critPressure()",
"unimplemented");
398 throw CanteraError(
"PDSS_SSVol::critDensity()",
"unimplemented");
408 if (fabs(deltaP) < 1.0E-10) {
430 if (fabs(deltaP) < 1.0E-10) {
456 if (fabs(rhoStored - rho) / (rhoStored + rho) > 1.0E-4) {
458 "Inconsistent supplied rho");