[Thermo] Make PDSS_ConstVol configurable without XML

This commit is contained in:
Ray Speth 2017-02-19 17:48:55 -05:00
parent 2b73fe24ba
commit b033d44d3e
2 changed files with 7 additions and 1 deletions

View file

@ -55,6 +55,12 @@ public:
virtual void initThermo();
virtual void setParametersFromXML(const XML_Node& speciesNode);
//! Set the (constant) molar volume [m3/kmol] of the species. Must be called before
//! initThermo().
void setMolarVolume(double v) {
m_constMolarVolume = v;
}
//@}
private:

View file

@ -34,7 +34,7 @@ void PDSS_ConstVol::setParametersFromXML(const XML_Node& speciesNode)
"standardState model for species isn't constant_incompressible: " + speciesNode.name());
}
m_constMolarVolume = getFloat(*ss, "molarVolume", "toSI");
setMolarVolume(getFloat(*ss, "molarVolume", "toSI"));
}
void PDSS_ConstVol::initThermo()