2#include "../framework/constants.h"
4using conversion_constants::celsius_to_kelvin;
5using conversion_constants::joules_per_calorie;
9 double air_temperature,
10 double mole_fraction_h2o
15 double constexpr g_per_kg = 1e3;
16 double constexpr cf = g_per_kg * joules_per_calorie;
19 double constexpr a0 = +2.51625e-01 * cf;
20 double constexpr a1 = -9.25250e-05 * cf;
21 double constexpr a2 = +2.13340e-07 * cf;
22 double constexpr a3 = -1.00430e-10 * cf;
23 double constexpr a4 = +1.24770e-01 * cf;
24 double constexpr a5 = -2.28300e-05 * cf;
25 double constexpr a6 = +1.26700e-07 * cf;
26 double constexpr a7 = +1.11600e-02 * cf;
27 double constexpr a8 = +4.61000e-06 * cf;
28 double constexpr a9 = +1.74000e-08 * cf;
32 double const b_0 = a0 +
33 a1 * air_temperature +
34 a2 * pow(air_temperature, 2) +
35 a3 * pow(air_temperature, 3);
37 double const b_1 = a4 +
38 a5 * air_temperature +
39 a6 * pow(air_temperature, 2);
41 double const b_2 = a7 +
42 a8 * air_temperature +
43 a9 * pow(air_temperature, 2);
46 b_1 * mole_fraction_h2o +
47 b_2 * pow(mole_fraction_h2o, 2);
50string_vector rasmussen_specific_heat::get_inputs()
54 "mole_fraction_h2o_atmosphere"
61 "specific_heat_of_air"
65void rasmussen_specific_heat::do_operation()
const
70 double const air_temperature_kelvin = temp + celsius_to_kelvin;
73 update(specific_heat_of_air_op,
75 air_temperature_kelvin,
76 mole_fraction_h2o_atmosphere));
Determines the specific heat capacity of atmospheric air at constant pressure using the rasmussen_spe...
static string_vector get_outputs()
double rasmussen_specific_heat_of_air(double air_temperature, double mole_fraction_h2o)
Calculates the specific heat capacity of air at contant pressure from its temperature and moisture co...