ShomatePoly.h Source File#
ShomatePoly.h
Go to the documentation of this file.
Pure Virtual Base class for individual species reference state thermodynamic managers and text for th...
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
The Shomate polynomial parameterization for two temperature ranges for one species.
Definition ShomatePoly.h:233
void setMinTemp(double Tmin) override
Set the minimum temperature at which the thermo parameterization is valid.
Definition ShomatePoly.h:253
int reportType() const override
Returns an integer representing the type of parameterization.
Definition ShomatePoly.h:283
size_t temperaturePolySize() const override
Number of terms in the temperature polynomial for this parameterization.
Definition ShomatePoly.h:287
void getParameters(AnyMap &thermo) const override
Store the parameters of the species thermo object such that an identical species thermo object could ...
Definition ShomatePoly.h:322
size_t nCoeffs() const override
This utility function returns the number of coefficients for a given type of species parameterization...
Definition ShomatePoly.h:313
void updateTemperaturePoly(double T, double *T_poly) const override
Given the temperature T, compute the terms of the temperature polynomial T_poly.
Definition ShomatePoly.h:289
void reportParameters(size_t &n, int &type, double &tlow, double &thigh, double &pref, double *const coeffs) const override
This utility function returns the type of parameterization and all of the parameters for the species.
Definition ShomatePoly.h:315
void setParameters(double Tmid, const vector< double > &low, const vector< double > &high)
Definition ShomatePoly.h:275
ShomatePoly2(double tlow, double thigh, double pref, const double *coeffs)
Constructor with all input data.
Definition ShomatePoly.h:245
void setRefPressure(double Pref) override
Set the reference pressure [Pa].
Definition ShomatePoly.h:263
void updateProperties(const double *tt, double *cp_R, double *h_RT, double *s_R) const override
Update the properties for this species, given a temperature polynomial.
Definition ShomatePoly.h:294
double reportHf298(double *const h298=nullptr) const override
Report the 298 K Heat of Formation of the standard state of one species (J kmol-1)
Definition ShomatePoly.h:332
void resetHf298() override
Restore the original heat of formation for this species.
Definition ShomatePoly.h:356
void setMaxTemp(double Tmax) override
Set the maximum temperature at which the thermo parameterization is valid.
Definition ShomatePoly.h:258
void modifyOneHf298(const size_t k, const double Hf298New) override
Modify the value of the 298 K Heat of Formation of one species in the phase (J kmol-1)
Definition ShomatePoly.h:345
void updatePropertiesTemp(const double temp, double *cp_R, double *h_RT, double *s_R) const override
Compute the reference-state property of one species.
Definition ShomatePoly.h:304
The Shomate polynomial parameterization for one temperature range for one species.
Definition ShomatePoly.h:59
int reportType() const override
Returns an integer representing the type of parameterization.
Definition ShomatePoly.h:97
void setParameters(const vector< double > &coeffs)
Set array of 7 polynomial coefficients.
Definition ShomatePoly.h:86
size_t temperaturePolySize() const override
Number of terms in the temperature polynomial for this parameterization.
Definition ShomatePoly.h:101
void getParameters(AnyMap &thermo) const override
Store the parameters of the species thermo object such that an identical species thermo object could ...
Definition ShomatePoly.h:159
void updateTemperaturePoly(double T, double *T_poly) const override
Given the temperature T, compute the terms of the temperature polynomial T_poly.
Definition ShomatePoly.h:103
ShomatePoly(double tlow, double thigh, double pref, const double *coeffs)
Constructor with all input data.
Definition ShomatePoly.h:74
void reportParameters(size_t &n, int &type, double &tlow, double &thigh, double &pref, double *const coeffs) const override
This utility function returns the type of parameterization and all of the parameters for the species.
Definition ShomatePoly.h:147
void updateProperties(const double *tt, double *cp_R, double *h_RT, double *s_R) const override
Update the properties for this species, given a temperature polynomial.
Definition ShomatePoly.h:125
double reportHf298(double *const h298=nullptr) const override
Report the 298 K Heat of Formation of the standard state of one species (J kmol-1)
Definition ShomatePoly.h:169
void resetHf298() override
Restore the original heat of formation for this species.
Definition ShomatePoly.h:181
void modifyOneHf298(const size_t k, const double Hf298New) override
Modify the value of the 298 K Heat of Formation of one species in the phase (J kmol-1)
Definition ShomatePoly.h:175
void updatePropertiesTemp(const double temp, double *cp_R, double *h_RT, double *s_R) const override
Compute the reference-state property of one species.
Definition ShomatePoly.h:140
Abstract Base class for the thermodynamic manager for an individual species' reference state.
Definition SpeciesThermoInterpType.h:113
virtual void setRefPressure(double Pref)
Set the reference pressure [Pa].
Definition SpeciesThermoInterpType.h:153
virtual void getParameters(AnyMap &thermo) const
Store the parameters of the species thermo object such that an identical species thermo object could ...
Definition SpeciesThermoInterpType.cpp:58
virtual void setMinTemp(double Tmin)
Set the minimum temperature at which the thermo parameterization is valid.
Definition SpeciesThermoInterpType.h:132
virtual void setMaxTemp(double Tmax)
Set the maximum temperature at which the thermo parameterization is valid.
Definition SpeciesThermoInterpType.h:143
Generated by 1.9.7