StoichSubstance.cpp Source File#
StoichSubstance.cpp
Go to the documentation of this file.
Declaration for class Cantera::Species.
Header file for the StoichSubstance class, which represents a fixed-composition incompressible substa...
Headers for the factory class that can create known ThermoPhase objects (see Thermodynamic Properties...
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
bool hasKey(const string &key) const
Returns true if the map contains an item named key.
Definition AnyMap.cpp:1423
double convert(const string &key, const string &units) const
Convert the item stored by the given key to the units specified in units.
Definition AnyMap.cpp:1535
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
Error thrown for problems processing information contained in an AnyMap or AnyValue.
Definition AnyMap.h:738
void assignDensity(const double density_)
Set the internally stored constant density (kg/m^3) of the phase.
Definition Phase.cpp:597
size_t speciesIndex(const string &name) const
Returns the index of a species named 'name' within the Phase object.
Definition Phase.cpp:129
shared_ptr< Species > species(const string &name) const
Return the Species object for the named species.
Definition Phase.cpp:856
double m_press
The current pressure of the solution (Pa). It gets initialized to 1 atm.
Definition SingleSpeciesTP.h:233
void getEntropy_R_ref(double *er) const override
Returns the vector of nondimensional entropies of the reference state at the current temperature of t...
Definition SingleSpeciesTP.cpp:151
void _updateThermo() const
This internal routine calculates new species Cp0, H0, and S0 whenever the temperature has changed.
Definition SingleSpeciesTP.cpp:242
void getEnthalpy_RT_ref(double *hrt) const override
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
Definition SingleSpeciesTP.cpp:133
void getStandardChemPotentials(double *mu0) const override
Get the array of chemical potentials at unit activity for the species at their standard states at the...
Definition StoichSubstance.cpp:71
double logStandardConc(size_t k=0) const override
Natural logarithm of the standard concentration of the kth species.
Definition StoichSubstance.cpp:64
double thermalExpansionCoeff() const override
Return the volumetric thermal expansion coefficient. Units: 1/K.
Definition StoichSubstance.cpp:42
void getSpeciesParameters(const string &name, AnyMap &speciesNode) const override
Get phase-specific parameters of a Species object such that an identical one could be reconstructed a...
Definition StoichSubstance.cpp:153
void getEntropy_R(double *sr) const override
Get the array of nondimensional Entropy functions for the standard state species at the current T and...
Definition StoichSubstance.cpp:84
void getCp_R(double *cpr) const override
Get the nondimensional Heat Capacities at constant pressure for the species standard states at the cu...
Definition StoichSubstance.cpp:95
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition StoichSubstance.cpp:117
void getActivityConcentrations(double *c) const override
This method returns an array of generalized concentrations.
Definition StoichSubstance.cpp:54
void setPressure(double p) override
Set the pressure at constant temperature. Units: Pa.
Definition StoichSubstance.cpp:32
void getIntEnergy_RT_ref(double *urt) const override
Returns the vector of nondimensional internal Energies of the reference state at the current temperat...
Definition StoichSubstance.cpp:109
void getEnthalpy_RT(double *hrt) const override
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
Definition StoichSubstance.cpp:77
double isothermalCompressibility() const override
Returns the isothermal compressibility. Units: 1/Pa.
Definition StoichSubstance.cpp:37
void getGibbs_RT(double *grt) const override
Get the nondimensional Gibbs functions for the species in their standard states at the current T and ...
Definition StoichSubstance.cpp:89
void getIntEnergy_RT(double *urt) const override
Returns the vector of nondimensional Internal Energies of the standard state species at the current T...
Definition StoichSubstance.cpp:101
Units standardConcentrationUnits() const override
Returns the units of the "standard concentration" for this phase.
Definition StoichSubstance.cpp:49
StoichSubstance(const string &infile="", const string &id="")
Construct and initialize a StoichSubstance ThermoPhase object directly from an input file.
Definition StoichSubstance.cpp:20
double standardConcentration(size_t k=0) const override
Return the standard concentration for the kth species.
Definition StoichSubstance.cpp:59
double RT() const
Return the Gas Constant multiplied by the current temperature.
Definition ThermoPhase.h:1062
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.
Definition ThermoPhase.cpp:1016
void initThermoFile(const string &inputFile, const string &id)
Initialize a ThermoPhase object using an input file.
Definition ThermoPhase.cpp:995
virtual void getSpeciesParameters(const string &name, AnyMap &speciesNode) const
Get phase-specific parameters of a Species object such that an identical one could be reconstructed a...
Definition ThermoPhase.h:1831
const AnyMap & input() const
Access input data associated with the phase description.
Definition ThermoPhase.cpp:1152
A representation of the units associated with a dimensional quantity.
Definition Units.h:35
Generated by 1.9.7