21 PureFluid(
const std::string& infile, std::string
id=
"") : m_ok(
false), m_r(0) {
28 "buildSolutionFromXML returned false");
43 friend std::ostream& operator<<(std::ostream& s,
PureFluid& mix) {
44 std::string r = mix.
report(
true);
54 class Water :
public PureFluid
57 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...
bool ready() const
Returns a bool indicating whether the object is ready for use.
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
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...
Support for chemical kinetics calculation from C++ application programs.
Base class for exceptions thrown by Cantera classes.
Wrapper for PureFluidPhase with constructor from file.
Namespace for the Cantera kernel.