14#ifndef BELFEM_CL_GM_STATAVALS_HPP
15#define BELFEM_CL_GM_STATAVALS_HPP
17#define BELFEM_STATEVAL_T 0
18#define BELFEM_STATEVAL_P 1
19#define BELFEM_STATEVAL_V 2
21#define BELFEM_STATEVAL_M 3
22#define BELFEM_STATEVAL_R 4
24#define BELFEM_STATEVAL_ALPHA 5
25#define BELFEM_STATEVAL_BETA 6
26#define BELFEM_STATEVAL_KAPPA 7
28#define BELFEM_STATEVAL_U 8
29#define BELFEM_STATEVAL_H 9
30#define BELFEM_STATEVAL_S 10
31#define BELFEM_STATEVAL_DSDT 11
32#define BELFEM_STATEVAL_DSDP 12
33#define BELFEM_STATEVAL_CP 13
34#define BELFEM_STATEVAL_DHDP 14
35#define BELFEM_STATEVAL_DCPDT 15
36#define BELFEM_STATEVAL_CV 16
37#define BELFEM_STATEVAL_GAMMA 17
38#define BELFEM_STATEVAL_C 18
39#define BELFEM_STATEVAL_HVAP 19
40#define BELFEM_STATEVAL_MU 20
41#define BELFEM_STATEVAL_LAMBDA 21
42#define BELFEM_STATEVAL_PR 22
44#define BELFEM_STATEVAL_PI 23
45#define BELFEM_STATEVAL_DMDT 24
46#define BELFEM_STATEVAL_DMDP 25
48#define BELFEM_NSTATEVALS 26
50#define BELFEM_T_REF 298.15
51#define BELFEM_P_REF 100000.0
52#define BELFEM_EPSILON_T 1e-7
53#define BELFEM_EPSILON_P 1e-4
54#define BELFEM_EPSILON_S 1e-4
55#define BELFEM_EPSILON_H 1e-4
56#define BELFEM_EPSILON_X 1e-6
57#define BELFEM_MAXIT 1000
163 return mStatebits.test( aIndex );
235 "Invalid State index: %u", (
unsigned int ) aIndex );
237 return mStatevals[ aIndex ];
246 "Invalid State index: %u", (
unsigned int ) aIndex );
249 mStatevals[ aIndex ] = aValue;
252 mStatebits.set( aIndex );
#define BELFEM_ASSERT(aCheck,...)
Definition assert.hpp:244
#define BELFEM_STATEVAL_P
Definition cl_GM_Statevals.hpp:18
#define BELFEM_NSTATEVALS
Definition cl_GM_Statevals.hpp:48
#define BELFEM_STATEVAL_V
Definition cl_GM_Statevals.hpp:19
#define BELFEM_STATEVAL_T
Definition cl_GM_Statevals.hpp:17
Compile-time fixed-size bitset.
Definition cl_Bitset.hpp:32
void update_Tv(const real T, const real v)
update temperature and inverse density
Definition cl_GM_Statevals.hpp:188
void reset()
reset all flags of this state
Definition cl_GM_Statevals.hpp:224
void set(const index_t aIndex, const real aValue)
set a value of the state
Definition cl_GM_Statevals.hpp:243
bool test(const index_t aIndex) const
test if a value is up do date
Definition cl_GM_Statevals.hpp:161
void update_Tp(const real T, const real p)
update temperature and pressure
Definition cl_GM_Statevals.hpp:168
void update_pv(const real p, const real v)
update pressure and inverse density
Definition cl_GM_Statevals.hpp:206
const real & get(const index_t aIndex) const
get a value of the state
Definition cl_GM_Statevals.hpp:232
USER GUIDES:
Definition cl_Capacitor.cpp:16
uint32_t index_t
Definition typedefs.hpp:52
double real
Definition typedefs.hpp:36