29 virtual std::string
type()
const {
64 for (
size_t n = 0; n <
nSpecies(); n++) {
70 for (
size_t n = 0; n <
nSpecies(); n++) {
76 for (
size_t n = 0; n <
nSpecies(); n++) {
82 for (
size_t n = 0; n <
nSpecies(); n++) {
88 for (
size_t n = 0; n <
nSpecies(); n++) {
93 for (
size_t n = 0; n <
nSpecies(); n++) {
118 phaseNode[
"density"].setQuantity(
density(),
"kg/m^3");
123 doublereal rho =
getFloat(eosdata,
"density",
"density");
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
A map of string keys to values whose type can vary at runtime.
double convert(const std::string &key, const std::string &units) const
Convert the item stored by the given key to the units specified in units.
bool hasKey(const std::string &key) const
Returns true if the map contains an item named key.
void assignDensity(const double density_)
Set the internally stored constant density (kg/m^3) of the phase.
size_t nSpecies() const
Returns the number of species in the phase.
virtual double density() const
Density (kg/m^3).
Base class for a phase with thermodynamic properties.
AnyMap m_input
Data supplied via setParameters.
virtual void getParameters(int &n, doublereal *const c) const
Get the equation of state parameters in a vector.
A representation of the units associated with a dimensional quantity.
Class XML_Node is a tree-based representation of the contents of an XML file.
void _require(const std::string &a, const std::string &v) const
Require that the current XML node has an attribute named by the first argument, a,...
CTML ("Cantera Markup Language") is the variant of XML that Cantera uses to store data.
Namespace for the Cantera kernel.
doublereal getFloat(const XML_Node &parent, const std::string &name, const std::string &type="")
Get a floating-point value from a child element.