Cantera  3.2.0
Loading...
Searching...
No Matches
SpeciesThermoInterpType.cpp
Go to the documentation of this file.
1/**
2 * @file SpeciesThermoInterpType.cpp
3 */
4
5// This file is part of Cantera. See License.txt in the top-level directory or
6// at https://cantera.org/license.txt for license and copyright information.
7
10
11namespace Cantera
12{
13
14SpeciesThermoInterpType::SpeciesThermoInterpType(double tlow,
15 double thigh,
16 double pref) :
17 m_lowT(tlow),
18 m_highT(thigh),
19 m_Pref(pref)
20{
21}
22
24 double* cp_R, double* h_RT, double* s_R) const
25{
26 double T = tempPoly[0];
27 updatePropertiesTemp(T, cp_R, h_RT, s_R);
28}
29
31 double* cp_R, double* h_RT, double* s_R) const
32{
33 throw NotImplementedError("SpeciesThermoInterpType::updatePropertiesTemp");
34}
35
37{
38 throw NotImplementedError("SpeciesThermoInterpType::nCoeffs");
39}
40
41void SpeciesThermoInterpType::reportParameters(size_t& index, int& type,
42 double& minTemp, double& maxTemp, double& refPressure,
43 double* const coeffs) const
44{
45 throw NotImplementedError("SpeciesThermoInterpType::reportParameters");
46}
47
49{
50 AnyMap out;
51 getParameters(out);
52 if (withInput) {
53 out.update(m_input);
54 }
55 return out;
56}
57
59{
60 if (m_Pref != OneAtm && reportType() != 0) {
61 thermo["reference-pressure"].setQuantity(m_Pref, "Pa");
62 }
63}
64
65double SpeciesThermoInterpType::reportHf298(double* const h298) const
66{
67 throw NotImplementedError("SpeciesThermoInterpType::reportHf298");
68}
69
70void SpeciesThermoInterpType::modifyOneHf298(const size_t k, const double Hf298New)
71{
72 throw NotImplementedError("SpeciesThermoInterpType::modifyOneHf298");
73}
74
76{
77 return m_input;
78}
79
81{
82 return m_input;
83}
84
85}
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
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:431
void update(const AnyMap &other, bool keepExisting=true)
Add items from other to this AnyMap.
Definition AnyMap.cpp:1493
An error indicating that an unimplemented function has been called.
virtual void updateProperties(const double *tt, double *cp_R, double *h_RT, double *s_R) const
Update the properties for this species, given a temperature polynomial.
virtual void reportParameters(size_t &index, int &type, double &minTemp, double &maxTemp, double &refPressure, double *const coeffs) const
This utility function returns the type of parameterization and all of the parameters for the species.
virtual double minTemp() const
Returns the minimum temperature that the thermo parameterization is valid.
virtual double maxTemp() const
Returns the maximum temperature that the thermo parameterization is valid.
double m_Pref
Reference state pressure.
virtual double reportHf298(double *const h298=0) const
Report the 298 K Heat of Formation of the standard state of one species (J kmol-1)
AnyMap parameters(bool withInput=true) const
Return the parameters of the species thermo object such that an identical species thermo object could...
virtual void getParameters(AnyMap &thermo) const
Store the parameters of the species thermo object such that an identical species thermo object could ...
virtual size_t nCoeffs() const
This utility function returns the number of coefficients for a given type of species parameterization...
virtual void updatePropertiesTemp(const double temp, double *cp_R, double *h_RT, double *s_R) const
Compute the reference-state property of one species.
virtual double refPressure() const
Returns the reference pressure (Pa)
virtual int reportType() const
Returns an integer representing the type of parameterization.
const AnyMap & input() const
Access input data associated with the species thermo definition.
virtual void modifyOneHf298(const size_t k, const double Hf298New)
Modify the value of the 298 K Heat of Formation of one species in the phase (J kmol-1)
const double OneAtm
One atmosphere [Pa].
Definition ct_defs.h:96
Namespace for the Cantera kernel.
Definition AnyMap.cpp:595