Cantera  3.1.0a2
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
23void SpeciesThermoInterpType::updateProperties(const double* tempPoly,
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
30void SpeciesThermoInterpType::updatePropertiesTemp(const double temp,
31 double* cp_R, double* h_RT, double* s_R) const
32{
33 throw NotImplementedError("SpeciesThermoInterpType::updatePropertiesTemp");
34}
35
36size_t SpeciesThermoInterpType::nCoeffs() const
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
48AnyMap SpeciesThermoInterpType::parameters(bool withInput) const
49{
50 AnyMap out;
51 getParameters(out);
52 if (withInput) {
53 out.update(m_input);
54 }
55 return out;
56}
57
58void SpeciesThermoInterpType::getParameters(AnyMap& thermo) const
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
75const AnyMap& SpeciesThermoInterpType::input() const
76{
77 return m_input;
78}
79
80AnyMap& SpeciesThermoInterpType::input()
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:427
void update(const AnyMap &other, bool keepExisting=true)
Add items from other to this AnyMap.
Definition AnyMap.cpp:1438
An error indicating that an unimplemented function has been called.
const double OneAtm
One atmosphere [Pa].
Definition ct_defs.h:96
Namespace for the Cantera kernel.
Definition AnyMap.cpp:564