Cantera 2.6.0
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() :
15 m_lowT(0.0),
16 m_highT(0.0),
17 m_Pref(0.0)
18{
19}
20
21SpeciesThermoInterpType::SpeciesThermoInterpType(double tlow,
22 double thigh,
23 double pref) :
24 m_lowT(tlow),
25 m_highT(thigh),
26 m_Pref(pref)
27{
28}
29
30void SpeciesThermoInterpType::updateProperties(const doublereal* tempPoly,
31 doublereal* cp_R, doublereal* h_RT, doublereal* s_R) const
32{
33 double T = tempPoly[0];
34 updatePropertiesTemp(T, cp_R, h_RT, s_R);
35}
36
37void SpeciesThermoInterpType::updatePropertiesTemp(const double temp,
38 double* cp_R, double* h_RT, double* s_R) const
39{
40 throw NotImplementedError("SpeciesThermoInterpType::updatePropertiesTemp");
41}
42
43size_t SpeciesThermoInterpType::nCoeffs() const
44{
45 throw NotImplementedError("SpeciesThermoInterpType::nCoeffs");
46}
47
48void SpeciesThermoInterpType::reportParameters(size_t& index, int& type,
49 double& minTemp, double& maxTemp, double& refPressure,
50 double* const coeffs) const
51{
52 throw NotImplementedError("SpeciesThermoInterpType::reportParameters");
53}
54
55AnyMap SpeciesThermoInterpType::parameters(bool withInput) const
56{
57 AnyMap out;
58 getParameters(out);
59 if (withInput) {
60 out.update(m_input);
61 }
62 return out;
63}
64
65void SpeciesThermoInterpType::getParameters(AnyMap& thermo) const
66{
67 if (m_Pref != OneAtm && reportType() != 0) {
68 thermo["reference-pressure"].setQuantity(m_Pref, "Pa");
69 }
70}
71
72doublereal SpeciesThermoInterpType::reportHf298(doublereal* const h298) const
73{
74 throw NotImplementedError("SpeciesThermoInterpType::reportHf298");
75}
76
77void SpeciesThermoInterpType::modifyOneHf298(const size_t k,
78 const doublereal Hf298New)
79{
80 throw NotImplementedError("SpeciesThermoInterpType::modifyOneHf298");
81}
82
83const AnyMap& SpeciesThermoInterpType::input() const
84{
85 return m_input;
86}
87
88AnyMap& SpeciesThermoInterpType::input()
89{
90 return m_input;
91}
92
93}
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:399
void update(const AnyMap &other, bool keepExisting=true)
Add items from other to this AnyMap.
Definition: AnyMap.cpp:1421
An error indicating that an unimplemented function has been called.
Definition: ctexceptions.h:187
Namespace for the Cantera kernel.
Definition: AnyMap.h:29
const double OneAtm
One atmosphere [Pa].
Definition: ct_defs.h:81