BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
cl_GM_EoS_Idgas.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_GM_EOS_IDGAS_HPP
13#define BELFEM_CL_GM_EOS_IDGAS_HPP
14
15#include "typedefs.hpp"
16#include "cl_GM_EoS.hpp"
17
18namespace belfem
19{
20 namespace gasmodels
21 {
22//----------------------------------------------------------------------------
23
32 class EoS_Idgas : public EoS
33 {
34//----------------------------------------------------------------------------
35 public:
36//----------------------------------------------------------------------------
37
38 EoS_Idgas( Gas & aParent );
39
40//----------------------------------------------------------------------------
41
42 ~EoS_Idgas() = default;
43
44//----------------------------------------------------------------------------
45
46 void
47 remix();
48
49//----------------------------------------------------------------------------
50// Thermodynamic State
51//----------------------------------------------------------------------------
52
53 real
54 p( const real T, const real v ) const;
55
56 real
57 v( const real T, const real p ) const;
58
59 real
60 T( const real p, const real v ) const;
61
62//----------------------------------------------------------------------------
63// State Derivatives
64//----------------------------------------------------------------------------
65
66 real
67 dpdT( const real T, const real v ) const;
68
69//----------------------------------------------------------------------------
70
71 real
72 d2pdT2( const real T, const real v ) const;
73
74//----------------------------------------------------------------------------
75
76 real
77 dpdv( const real T, const real v ) const;
78
79//----------------------------------------------------------------------------
80
81 real
82 d2pdv2( const real T, const real v ) const;
83
84//------------------------------------------------------------------------------
85// Thermodynamic Coefficients
86//------------------------------------------------------------------------------
87
88 real
89 alpha( const real T, const real p ) const;
90
91//------------------------------------------------------------------------------
92
93 real
94 beta( const real T, const real p ) const;
95
96//------------------------------------------------------------------------------
97
98 real
99 kappa( const real T, const real p ) const;
100
101//------------------------------------------------------------------------------
102// Departure Functions
103//------------------------------------------------------------------------------
104
105 real
106 hdep( const real T, const real p ) const;
107
108//------------------------------------------------------------------------------
109
110 real
111 cpdep( const real T, const real p ) const;
112
113//------------------------------------------------------------------------------
114
115 real
116 sdep( const real T, const real p ) const;
117
118//------------------------------------------------------------------------------
119
120 real
121 dhdepdp( const real T, const real p ) const;
122
123//------------------------------------------------------------------------------
124
125 // temperature derivative of entropy departure
126 real
127 dsdepdT( const real T, const real p ) const;
128
129//------------------------------------------------------------------------------
130
131 // pressure derivative of entropy departure
132 real
133 dsdepdp( const real T, const real p ) const;
134
135//------------------------------------------------------------------------------
136
137 real
138 hdep0( const real T ) const;
139
140//------------------------------------------------------------------------------
141
142 real
143 cpdep0( const real T ) const;
144
145//------------------------------------------------------------------------------
146
147 real
148 sdep0( const real T ) const;
149
150//------------------------------------------------------------------------------
151
152 // temperature derivative of entropy departure
153 real
154 dsdepdT0( const real T ) const;
155
156//------------------------------------------------------------------------------
157
158 void
159 eval_critical_point( real & T, real & p, real & v ) const;
160
161//------------------------------------------------------------------------------
162// Component Volume and Departure Functions
163//------------------------------------------------------------------------------
164
165 real
166 v( const uint aIndex, const real T, const real p ) const;
167
168//------------------------------------------------------------------------------
169
170 real
171 hdep( const uint aIndex, const real T, const real p ) const;
172
173//------------------------------------------------------------------------------
174
175 real
176 cpdep( const uint aIndex, const real T, const real p ) const;
177
178//------------------------------------------------------------------------------
179 };
180//------------------------------------------------------------------------------
181 } /* namespace gasmodels */
182} /* namespace belfem */
183#endif //BELFEM_CL_GM_EOS_IDGAS_HPP
The gas class that provides the fluid model.
Definition cl_Gas.hpp:81
real dpdT(const real T, const real v) const
Definition cl_GM_EoS_Idgas.cpp:63
real dsdepdT(const real T, const real p) const
Definition cl_GM_EoS_Idgas.cpp:172
real kappa(const real T, const real p) const
isothermal compressibility coefficient
Definition cl_GM_EoS_Idgas.cpp:128
real dpdv(const real T, const real v) const
Definition cl_GM_EoS_Idgas.cpp:79
real d2pdT2(const real T, const real v) const
Definition cl_GM_EoS_Idgas.cpp:71
real dhdepdp(const real T, const real p) const
Definition cl_GM_EoS_Idgas.cpp:196
real cpdep(const real T, const real p) const
Definition cl_GM_EoS_Idgas.cpp:156
EoS_Idgas(Gas &aParent)
Definition cl_GM_EoS_Idgas.cpp:22
real p(const real T, const real v) const
pressure in Pa
Definition cl_GM_EoS_Idgas.cpp:39
real v(const real T, const real p) const
specific volume in m^3/kg
Definition cl_GM_EoS_Idgas.cpp:47
real alpha(const real T, const real p) const
thermal expansion coefficient
Definition cl_GM_EoS_Idgas.cpp:95
real dsdepdp(const real T, const real p) const
Definition cl_GM_EoS_Idgas.cpp:222
real cpdep0(const real T) const
Definition cl_GM_EoS_Idgas.cpp:188
real dsdepdT0(const real T) const
Definition cl_GM_EoS_Idgas.cpp:214
real T(const real p, const real v) const
temperature in K
Definition cl_GM_EoS_Idgas.cpp:55
void eval_critical_point(real &T, real &p, real &v) const
Definition cl_GM_EoS_Idgas.cpp:230
real d2pdv2(const real T, const real v) const
Definition cl_GM_EoS_Idgas.cpp:87
real hdep(const real T, const real p) const
Definition cl_GM_EoS_Idgas.cpp:148
real sdep(const real T, const real p) const
Definition cl_GM_EoS_Idgas.cpp:164
real sdep0(const real T) const
Definition cl_GM_EoS_Idgas.cpp:205
real beta(const real T, const real p) const
isochoric stress coefficient
Definition cl_GM_EoS_Idgas.cpp:111
real hdep0(const real T) const
Definition cl_GM_EoS_Idgas.cpp:180
void remix()
call the remix function of the equation of state
Definition cl_GM_EoS_Idgas.cpp:31
EoS(Gas &aParent)
Definition cl_GM_EoS.cpp:22
Definition cl_Gas.hpp:42
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int uint
Definition typedefs.hpp:30
double real
Definition typedefs.hpp:36