The BioCro C++ Library
rasmussen_specific_heat.h
Go to the documentation of this file.
1#ifndef RASMUSSEN_SPECIFIC_HEAT_H
2#define RASMUSSEN_SPECIFIC_HEAT_H
3
4#include "../framework/module.h"
5#include "../framework/state_map.h"
6
30 double air_temperature, // K
31 double mole_fraction_h2o // dimensionless
32);
33
34namespace standardBML
35{
42class rasmussen_specific_heat : public direct_module
43{
44 public:
46 state_map const& input_quantities,
47 state_map* output_quantities)
48 : direct_module{},
49
50 // Get references to input quantities
51 temp{get_input(input_quantities, "temp")},
52 mole_fraction_h2o_atmosphere{get_input(input_quantities, "mole_fraction_h2o_atmosphere")},
53
54 // Get pointers to output quantities
55 specific_heat_of_air_op{get_op(output_quantities, "specific_heat_of_air")}
56 {
57 }
58 static string_vector get_inputs();
59 static string_vector get_outputs();
60 static std::string get_name() { return "rasmussen_specific_heat"; }
61
62 private:
63 // References to input quantities
64 double const& temp;
65 double const& mole_fraction_h2o_atmosphere;
66
67 // Pointers to output quantities
68 double* specific_heat_of_air_op;
69
70 // Main operation
71 void do_operation() const;
72};
73
74} // namespace standardBML
75#endif
Determines the specific heat capacity of atmospheric air at constant pressure using the rasmussen_spe...
rasmussen_specific_heat(state_map const &input_quantities, state_map *output_quantities)
This is the standard BioCro module library; it includes the essential modules used in typical BioCro ...
Definition: aba_decay.h:8
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...