8 #ifndef CT_METALPHASE_H
9 #define CT_METALPHASE_H
28 string type()
const override {
29 return "electron-cloud";
63 for (
size_t n = 0; n <
nSpecies(); n++) {
69 for (
size_t n = 0; n <
nSpecies(); n++) {
75 for (
size_t n = 0; n <
nSpecies(); n++) {
81 for (
size_t n = 0; n <
nSpecies(); n++) {
87 for (
size_t n = 0; n <
nSpecies(); n++) {
92 for (
size_t n = 0; n <
nSpecies(); n++) {
117 phaseNode[
"density"].setQuantity(
density(),
"kg/m^3");
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.
bool hasKey(const string &key) const
Returns true if the map contains an item named key.
double convert(const string &key, const string &units) const
Convert the item stored by the given key to the units specified in units.
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).
virtual double molarVolume() const
Molar volume (m^3/kmol).
Base class for a phase with thermodynamic properties.
virtual void getParameters(AnyMap &phaseNode) const
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
AnyMap m_input
Data supplied via setParameters.
A representation of the units associated with a dimensional quantity.
Namespace for the Cantera kernel.