BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
cl_GT_HeatPoly.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_CL_GT_THERMOPOLY_HPP
13#define BELFEM_CL_GT_THERMOPOLY_HPP
14
15#include "typedefs.hpp"
16#include "cl_Vector.hpp"
17
18namespace belfem
19{
20 namespace gastables
21 {
47 {
48//------------------------------------------------------------------------------
49 protected:
50//------------------------------------------------------------------------------
51 // minimum temperature of this poly
53
54 // maximum temperature
56
57 // offset for enthalpy
59
60 // offset for entropy
62
63 // coefficients
64 const Vector <real> mCoefficients;
65
66
67//------------------------------------------------------------------------------
68 public:
69//------------------------------------------------------------------------------
70
72 const real aTmin,
73 const real aTmax,
74 const real aEnthalpyConstant,
75 const real aEntropyConstant,
76 const Vector <real> & aCoefficients );
77
78//------------------------------------------------------------------------------
79
80 virtual ~HeatPoly() = default;
81
82//------------------------------------------------------------------------------
83
84 virtual real
85 Cp( const real T ) const;
86
87//------------------------------------------------------------------------------
88
89 virtual real
90 H( const real T ) const;
91
92//------------------------------------------------------------------------------
93
94 virtual real
95 S( const real T ) const;
96
97//------------------------------------------------------------------------------
98
99 virtual real
100 dSdT( const real T ) const;
101
102//------------------------------------------------------------------------------
103
104 virtual real
105 dCpdT( const real T ) const;
106
107//------------------------------------------------------------------------------
108
109 virtual real
110 d2CpdT2( const real T ) const;
111
112//------------------------------------------------------------------------------
113
114 inline const real &
115 T_min() const;
116
117//------------------------------------------------------------------------------
118
119 inline const real &
120 T_max() const;
121
122//------------------------------------------------------------------------------
123
124 void
125 set_T_min( const real aTmin );
126
127//------------------------------------------------------------------------------
128
129 void
130 set_T_max( const real aTmax );
131
132//------------------------------------------------------------------------------
133
134 void
135 set_enthalpy_constant( const real & aEnthalpyConstant );
136
137//------------------------------------------------------------------------------
138
139 void
140 set_entropy_constant( const real & aEntropyConstant );
141
142//------------------------------------------------------------------------------
143
144 real
145 enthalpy_constant() const;
146//------------------------------------------------------------------------------
147
148 real
149 entropy_constant() const;
150
151//------------------------------------------------------------------------------
152 };
153
154//------------------------------------------------------------------------------
155
156 const real &
158 {
159 return mTmin;
160 }
161
162//------------------------------------------------------------------------------
163
164 const real &
166 {
167 return mTmax;
168 }
169
170//------------------------------------------------------------------------------
171
172
173 }
174}
175#endif //BELFEM_CL_GT_THERMOPOLY_HPP
const real & T_max() const
Definition cl_GT_HeatPoly.hpp:165
void set_T_min(const real aTmin)
Definition cl_GT_HeatPoly.cpp:124
real enthalpy_constant() const
Definition cl_GT_HeatPoly.cpp:156
virtual real Cp(const real T) const
Definition cl_GT_HeatPoly.cpp:38
void set_entropy_constant(const real &aEntropyConstant)
Definition cl_GT_HeatPoly.cpp:148
const real & T_min() const
Definition cl_GT_HeatPoly.hpp:157
real mEntropyConstant
Definition cl_GT_HeatPoly.hpp:61
real mTmin
Definition cl_GT_HeatPoly.hpp:52
void set_T_max(const real aTmax)
Definition cl_GT_HeatPoly.cpp:132
const Vector< real > mCoefficients
Definition cl_GT_HeatPoly.hpp:64
HeatPoly(const real aTmin, const real aTmax, const real aEnthalpyConstant, const real aEntropyConstant, const Vector< real > &aCoefficients)
Definition cl_GT_HeatPoly.cpp:20
virtual real H(const real T) const
Definition cl_GT_HeatPoly.cpp:52
virtual real d2CpdT2(const real T) const
Definition cl_GT_HeatPoly.cpp:111
real mEnthalpyConstant
Definition cl_GT_HeatPoly.hpp:58
void set_enthalpy_constant(const real &aEnthalpyConstant)
Definition cl_GT_HeatPoly.cpp:140
virtual real S(const real T) const
Definition cl_GT_HeatPoly.cpp:69
virtual real dSdT(const real T) const
Definition cl_GT_HeatPoly.cpp:84
virtual ~HeatPoly()=default
real mTmax
Definition cl_GT_HeatPoly.hpp:55
real entropy_constant() const
Definition cl_GT_HeatPoly.cpp:164
virtual real dCpdT(const real T) const
Definition cl_GT_HeatPoly.cpp:98
Definition cl_Gas.hpp:33
USER GUIDES:
Definition cl_Capacitor.cpp:16
double real
Definition typedefs.hpp:36