21 VCS_SPECIES_THERMO::VCS_SPECIES_THERMO(
size_t indexPhase,
22 size_t indexSpeciesPhase) :
24 IndexPhase(indexPhase),
25 IndexSpeciesPhase(indexSpeciesPhase),
27 SS0_Model(VCS_SS0_CONSTANT),
35 SSStar_Model(VCS_SSSTAR_CONSTANT),
38 UseCanteraCalls(false),
39 m_VCS_UnitsFormat(VCS_UNITS_UNITLESS)
44 VCS_SPECIES_THERMO::VCS_SPECIES_THERMO(
const VCS_SPECIES_THERMO& b) :
45 IndexPhase(b.IndexPhase),
46 IndexSpeciesPhase(b.IndexSpeciesPhase),
47 OwningPhase(b.OwningPhase),
48 SS0_Model(b.SS0_Model),
49 SS0_feSave(b.SS0_feSave),
50 SS0_TSave(b.SS0_TSave),
56 SSStar_Model(b.SSStar_Model),
57 SSStar_Vol_Model(b.SSStar_Vol_Model),
58 SSStar_Vol0(b.SSStar_Vol0),
59 UseCanteraCalls(b.UseCanteraCalls),
60 m_VCS_UnitsFormat(b.m_VCS_UnitsFormat)
65 VCS_SPECIES_THERMO::operator=(
const VCS_SPECIES_THERMO& b)
83 m_VCS_UnitsFormat = b.m_VCS_UnitsFormat;
99 if (m_VCS_UnitsFormat != VCS_UNITS_MKS) {
101 "Possible inconsistency");
111 case VCS_SSSTAR_CONSTANT:
113 case VCS_SSSTAR_IDEAL_GAS:
114 fe += T * log(pres/ pref);
118 "unknown SSStar model");
131 if (m_VCS_UnitsFormat != VCS_UNITS_MKS) {
133 "Possible inconsistency");
140 case VCS_SSVOL_CONSTANT:
148 "unknown SSVol model");
164 if (m_VCS_UnitsFormat != VCS_UNITS_MKS) {
166 "Possible inconsistency");
175 case VCS_SS0_CONSTANT:
178 case VCS_SS0_CONSTANT_CP:
181 fe = H - TKelvin * S;
double G0_calc_one(size_t kspec) const
Gibbs free energy calculation at a temperature for the reference state of a species, return a value for one species.
double GStar_calc_one(size_t kspec) const
Gibbs free energy calculation for standard state of one species.
vcs_VolPhase * OwningPhase
Pointer to the owning phase object.
virtual double GStar_R_calc(size_t kspec, double TKelvin, double pres)
This function calculates the standard state Gibbs free energy for species, kspec, at the temperature ...
double SS0_Cp0
Base heat capacity used in the VCS_SS0_CONSTANT_CP model.
double AC_calc_one(size_t kspec) const
Evaluate activity coefficients and return the kspec coefficient.
size_t IndexSpeciesPhase
Index of this species in the current phase.
#define VCS_SSVOL_IDEALGAS
Models for the standard state volume of each species.
virtual double VolStar_calc(size_t kglob, double TKelvin, double Pres)
This function calculates the standard state molar volume for species, kspec, at the temperature TKelv...
double vcsUtil_gasConstant(int mu_units)
Returns the value of the gas constant in the units specified by parameter.
Header for the object representing each phase within vcs.
double SSStar_Vol0
parameter that is used in the VCS_SSVOL_CONSTANT model.
Defines and definitions within the vcs package.
int SSStar_Vol_Model
Models for the standard state volume of each species.
double SS0_S0
Base entropy used in the VCS_SS0_CONSTANT_CP model.
Internal declarations for the VCSnonideal package.
size_t IndexPhase
Index of the phase that this species belongs to.
virtual double eval_ac(size_t kspec)
This function evaluates the activity coefficient for species, kspec.
virtual VCS_SPECIES_THERMO * duplMyselfAsVCS_SPECIES_THERMO()
Duplication function for derived classes.
double SS0_H0
Base enthalpy used in the VCS_SS0_CONSTANT_CP model.
Base class for exceptions thrown by Cantera classes.
virtual double G0_R_calc(size_t kglob, double TKelvin)
This function calculates the standard state Gibbs free energy for species, kspec, at the temperature ...
double SS0_T0
Base temperature used in the VCS_SS0_CONSTANT_CP model.
int SSStar_Model
Integer value representing the star state model.
int SS0_Model
Integer representing the models for the species standard state Naught temperature dependence...
const doublereal GasConstant
Universal Gas Constant. [J/kmol/K].
bool UseCanteraCalls
If true, this object will call Cantera to do its member calculations.
double VolStar_calc_one(size_t kspec) const
Molar volume calculation for standard state of one species.
void setState_T(const double temperature_Kelvin)
Sets the temperature in this object and underlying ThermoPhase objects.
void setState_TP(const double temperature_Kelvin, const double pressure_PA)
Sets the temperature and pressure in this object and underlying ThermoPhase objects.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
double SS0_TSave
Internal storage of the last temperature used in the calculation of the reference naught Gibbs free e...
double SS0_feSave
Internal storage of the last calculation of the reference naught Gibbs free energy at SS0_TSave...
double SS0_Pref
Value of the pressure for the reference state.