#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bft_mem.h"
#include "cs_atmo.h"
#include "cs_base.h"
#include "cs_math.h"
#include "cs_physical_constants.h"
#include "cs_air_props.h"
Functions | |
void | cs_air_glob_properties_get_pointers (double **cp_a, double **cp_v) |
cs_real_t | cs_air_h_l (cs_real_t t_l) |
Calculation water mass enthalpy. More... | |
cs_real_t | cs_air_hvap (cs_real_t t_vap) |
Calculation water vapor mass enthalpy. More... | |
cs_real_t | cs_air_dxsath (cs_real_t th, cs_real_t p0) |
Calculation of the derivate of the absolute humidity at saturation. More... | |
cs_real_t | cs_air_cp_humidair (cs_real_t x, cs_real_t x_s) |
Calculation of the Cp of humid air. More... | |
cs_real_t | cs_air_h_humidair (cs_real_t cp_h, cs_real_t x, cs_real_t x_s, cs_real_t t_h) |
Calculation of the specific enthalpy of humid air. More... | |
cs_real_t | cs_air_t_humidair (cs_real_t cp_h, cs_real_t x, cs_real_t x_s, cs_real_t h_h) |
Calculation of the temperature of humid air. More... | |
cs_real_t | cs_liq_h_to_t (cs_real_t h_l) |
Calculation of the temperature of liquid water. More... | |
cs_real_t | cs_liq_t_to_h (cs_real_t t_l) |
Calculation of the specific enthalpy of liquid water. More... | |
cs_real_t | cs_air_yw_sat (cs_real_t t_c, cs_real_t p) |
Calculation of the air water mass fraction at saturation for a given temperature. More... | |
cs_real_t | cs_air_x_to_yw (cs_real_t x) |
Convert the absolute humidity of humid air to the air water mass fraction qwt = Ym = mw/mh. More... | |
cs_real_t | cs_air_yw_to_x (cs_real_t qw) |
Convert the air water mass fraction qwt = Ym = mw/mh to the absolute humidity of humid air. More... | |
void | cs_rho_humidair (cs_real_t yw_h, cs_real_t theta_l, cs_real_t p, cs_real_t *yw_liq, cs_real_t *t_h, cs_real_t *rho_h, cs_real_t *beta_h) |
Calculation of the density of humid air. More... | |
cs_real_t | cs_air_rho_humidair (cs_real_t x, cs_real_t rho0, cs_real_t p0, cs_real_t t0, cs_real_t molmassrat, cs_real_t t_h) |
Calculation of the density of humid air. More... | |
Variables | |
cs_air_fluid_props_t * | cs_glob_air_props = &_props |
Calculation of the Cp of humid air.
[in] | x | absolute humidity of humid air |
[in] | x_s | absolute humidity of saturated humid air |
Calculation of the derivate of the absolute humidity at saturation.
[in] | th | temperature in Celsius degree |
[in] | p0 | reference pressure |
void cs_air_glob_properties_get_pointers | ( | double ** | cp_a, |
double ** | cp_v | ||
) |
Calculation of the specific enthalpy of humid air.
[in] | cp_h | Cp of humid air |
[in] | x | absolute humidity of humid air |
[in] | x_s | absolute humidity of saturated humid air |
[in] | t_h | temperature of humid air in Celsius |
Calculation water mass enthalpy.
[in] | t_l | water temperature in Celsius degree |
Calculation water vapor mass enthalpy.
[in] | t_vap | water vapor temperature in Celsius |
cs_real_t cs_air_rho_humidair | ( | cs_real_t | x, |
cs_real_t | rho0, | ||
cs_real_t | p0, | ||
cs_real_t | t0, | ||
cs_real_t | molmassrat, | ||
cs_real_t | t_h | ||
) |
Calculation of the density of humid air.
[in] | x | absolute humidity of humid air |
[in] | rho0 | reference density of humid air |
[in] | p0 | reference pressure |
[in] | t0 | reference temperature of humid air (Kelvin) |
[in] | molmassrat | dry air to water vapor molecular mass ratio |
[in] | t_h | temperature of humid air in Celsius |
Calculation of the temperature of humid air.
[in] | cp_h | Cp of humid air |
[in] | x | absolute humidity of humid air |
[in] | x_s | absolute humidity of saturated humid air |
[in] | h_h | humid air enthalpy |
Convert the absolute humidity of humid air to the air water mass fraction qwt = Ym = mw/mh.
[in] | x | absolute humidity of humid air |
Calculation of the air water mass fraction at saturation for a given temperature.
[in] | t_c | temperature in Celsius degree |
[in] | p | reference pressure |
Convert the air water mass fraction qwt = Ym = mw/mh to the absolute humidity of humid air.
[in] | qw | air water mass fraction |
Calculation of the temperature of liquid water.
[in] | h_l | specific enthalpy of liquid water |
Calculation of the specific enthalpy of liquid water.
[in] | t_l | liquid water temperature (in Celsius) |
void cs_rho_humidair | ( | cs_real_t | yw_h, |
cs_real_t | theta_l, | ||
cs_real_t | p, | ||
cs_real_t * | yw_liq, | ||
cs_real_t * | t_h, | ||
cs_real_t * | rho_h, | ||
cs_real_t * | beta_h | ||
) |
Calculation of the density of humid air.
[in] | yw_h | air water mass fraction |
[in] | theta_l | liquid potential temperature (K) |
[in] | p | pressure |
[out] | yw_liq | liquid water mass fraction |
[out] | t_h | temperature of humid air in Celsius |
[out] | rho_h | density of humid air |
[out] | beta_h | thermal expansion of the bulk |
cs_air_fluid_props_t* cs_glob_air_props = &_props |