[Thermo] Make PDSS_ConstVol configurable without XML
This commit is contained in:
parent
2b73fe24ba
commit
b033d44d3e
2 changed files with 7 additions and 1 deletions
|
|
@ -55,6 +55,12 @@ public:
|
||||||
virtual void initThermo();
|
virtual void initThermo();
|
||||||
virtual void setParametersFromXML(const XML_Node& speciesNode);
|
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:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ void PDSS_ConstVol::setParametersFromXML(const XML_Node& speciesNode)
|
||||||
"standardState model for species isn't constant_incompressible: " + speciesNode.name());
|
"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()
|
void PDSS_ConstVol::initThermo()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue