17 PureFluid(
const std::string& infile, std::string
id=
"") : m_ok(
false), m_r(0) {
24 "buildSolutionFromXML returned false");
39 friend std::ostream& operator<<(std::ostream& s,
PureFluid& mix) {
40 std::string r = mix.
report(
true);
50 class Water :
public PureFluid
53 Water() : PureFluid(std::string(
"liquidvapor.cti"),std::string(
"water")) {}
XML_Node * get_XML_File(const std::string &file, int debug)
Return a pointer to the XML tree for a Cantera input file.
This phase object consists of a single component that can be a gas, a liquid, a mixed gas-liquid flui...
Class XML_Node is a tree-based representation of the contents of an XML file.
Header for a ThermoPhase class for a pure fluid phase consisting of gas, liquid, mixed-gas-liquid and...
bool ready() const
Returns a bool indicating whether the object is ready for use.
Base class for exceptions thrown by Cantera classes.
virtual std::string report(bool show_thermo=true, doublereal threshold=1e-14) const
returns a summary of the state of the phase as a string
Wrapper for PureFluidPhase with constructor from file.