My Project
programmer's documentation
Functions | Variables
cs_ctwr_air_props.c File Reference
#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_base.h"
#include "cs_physical_constants.h"
#include "cs_ctwr_air_props.h"
Include dependency graph for cs_ctwr_air_props.c:

Functions

void cs_ctwr_glob_properties_get_pointer (double **humidity0, double **cp_a, double **cp_v, double **cp_l, double **hv0, double **rho_l, double **lambda_h, double **lambda_l, double **droplet_diam)
 
void CS_PROCF (xsath, XSATH) const
 
void CS_PROCF (dxsath, DXSATH) const
 
void CS_PROCF (rho_humidair, RHO_HUMIDAIR) const
 
void CS_PROCF (cp_humidair, CP_HUMIDAIR) const
 
void CS_PROCF (h_humidair, H_HUMIDAIR) const
 
void CS_PROCF (t_humidair, T_HUMIDAIR) const
 
void CS_PROCF (h_liqwater, H_LIQWATER) const
 
void CS_PROCF (h_humidair_fixed, H_HUMIDAIR_FIXED) const
 
cs_real_t cs_ctwr_xsath (const cs_real_t th, const cs_real_t p0)
 Calculation of the air humidity at saturation for a given temperature. More...
 
cs_real_t cs_ctwr_enthair (const cs_real_t xair, const cs_real_t tair)
 Calculation of moist air mass enthalpy. More...
 
cs_real_t cs_ctwr_h_l (const cs_real_t t_l)
 Calculation water mass enthalpy. More...
 
cs_real_t cs_ctwr_hvap (const cs_real_t t_vap)
 Calculation water vapour mass enthalpy. More...
 
cs_real_t cs_ctwr_dxsath (const cs_real_t th, const cs_real_t p0)
 Calculation of the derivate of the absolute humidity at saturation. More...
 
cs_real_t cs_ctwr_rho_humidair (const cs_real_t x, const cs_real_t rho0, const cs_real_t p0, const cs_real_t t0, const cs_real_t molmassrat, const cs_real_t t_h)
 Calculation of the density of humid air. More...
 
cs_real_t cs_ctwr_cp_humidair (const cs_real_t x, const cs_real_t x_s)
 Calculation of the Cp of humid air. More...
 
cs_real_t cs_ctwr_h_humidair (const cs_real_t cp_h, const cs_real_t x, const cs_real_t x_s, const cs_real_t t_h)
 Calculation of the specific enthalpy of humid air. More...
 
cs_real_t cs_ctwr_t_humidair (const cs_real_t cp_h, const cs_real_t x, const cs_real_t x_s, const cs_real_t h_h)
 Calculation of the temperature of humid air. More...
 
cs_real_t cs_ctwr_t_liqwater (const cs_real_t h_l)
 Calculation of the temperature of liquid water. More...
 
cs_real_t cs_ctwr_h_liqwater (const cs_real_t t_l)
 Calculation of the specific enthalpy of liquid water. More...
 

Variables

cs_ctwr_fluid_props_tcs_glob_ctwr_props = &_props
 

Function Documentation

◆ cs_ctwr_cp_humidair()

cs_real_t cs_ctwr_cp_humidair ( const cs_real_t  x,
const cs_real_t  x_s 
)

Calculation of the Cp of humid air.

Returns
specific heat of humid air
Parameters
[in]xabsolute humidity of humid air
[in]x_sabsolute humidity of saturated humid air

◆ cs_ctwr_dxsath()

cs_real_t cs_ctwr_dxsath ( const cs_real_t  th,
const cs_real_t  p0 
)

Calculation of the derivate of the absolute humidity at saturation.

Returns
derivative of the humidity of saturated air
Parameters
[in]thtemperature in Celsius degree
[in]p0reference pressure

◆ cs_ctwr_enthair()

cs_real_t cs_ctwr_enthair ( const cs_real_t  xair,
const cs_real_t  tair 
)

Calculation of moist air mass enthalpy.

Returns
air mass enthalpy
Parameters
[in]xairabsolute humidity of saturated air
[in]tairair temperature in Celsius

◆ cs_ctwr_glob_properties_get_pointer()

void cs_ctwr_glob_properties_get_pointer ( double **  humidity0,
double **  cp_a,
double **  cp_v,
double **  cp_l,
double **  hv0,
double **  rho_l,
double **  lambda_h,
double **  lambda_l,
double **  droplet_diam 
)

◆ cs_ctwr_h_humidair()

cs_real_t cs_ctwr_h_humidair ( const cs_real_t  cp_h,
const cs_real_t  x,
const cs_real_t  x_s,
const cs_real_t  t_h 
)

Calculation of the specific enthalpy of humid air.

Returns
specific enthalpy of humid air
Parameters
[in]cp_hCp of humid air
[in]xabsolute humidity of humid air
[in]x_sabsolute humidity of saturated humid air
[in]t_htemperature of humid air in Celsius

◆ cs_ctwr_h_l()

cs_real_t cs_ctwr_h_l ( const cs_real_t  t_l)

Calculation water mass enthalpy.

Returns
Liquid water mass enthalpy
Parameters
[in]t_lwater temperature in Celsius degree

◆ cs_ctwr_h_liqwater()

cs_real_t cs_ctwr_h_liqwater ( const cs_real_t  t_l)

Calculation of the specific enthalpy of liquid water.

Returns
specific enthalpy of liquid water
Parameters
[in]t_lliquid water temperature (in Celsius)

◆ cs_ctwr_hvap()

cs_real_t cs_ctwr_hvap ( const cs_real_t  t_vap)

Calculation water vapour mass enthalpy.

Returns
water vapour mass enthalpy
Parameters
[in]t_vapwater vapour temperature in Celsius

◆ cs_ctwr_rho_humidair()

cs_real_t cs_ctwr_rho_humidair ( const cs_real_t  x,
const cs_real_t  rho0,
const cs_real_t  p0,
const cs_real_t  t0,
const cs_real_t  molmassrat,
const cs_real_t  t_h 
)

Calculation of the density of humid air.

Returns
density of humid air
Parameters
[in]xabsolute humidity of humid air
[in]rho0reference density of humid air
[in]p0reference pressure
[in]t0reference temperature of humid air
[in]molmassratdry air to water vapour molecular mass ratio
[in]t_htemperature of humid air in Celsius

◆ cs_ctwr_t_humidair()

cs_real_t cs_ctwr_t_humidair ( const cs_real_t  cp_h,
const cs_real_t  x,
const cs_real_t  x_s,
const cs_real_t  h_h 
)

Calculation of the temperature of humid air.

Returns
temperature of humid air (in Celsius)
Parameters
[in]cp_hCp of humid air
[in]xabsolute humidity of humid air
[in]x_sabsolute humidity of saturated humid air
[in]h_hhumid air enthalpy

◆ cs_ctwr_t_liqwater()

cs_real_t cs_ctwr_t_liqwater ( const cs_real_t  h_l)

Calculation of the temperature of liquid water.

Returns
liquid water temperature (in Celsius)
Parameters
[in]h_lspecific enthalpy of liquid water

◆ cs_ctwr_xsath()

cs_real_t cs_ctwr_xsath ( const cs_real_t  th,
const cs_real_t  p0 
)

Calculation of the air humidity at saturation for a given temperature.

Returns
absolute humidity of saturated air
Parameters
[in]thtemperature in Celsius degree
[in]p0reference pressure

◆ CS_PROCF() [1/8]

void CS_PROCF ( cp_humidair  ,
CP_HUMIDAIR   
) const

◆ CS_PROCF() [2/8]

void CS_PROCF ( dxsath  ,
DXSATH   
) const

◆ CS_PROCF() [3/8]

void CS_PROCF ( h_humidair  ,
H_HUMIDAIR   
) const

◆ CS_PROCF() [4/8]

void CS_PROCF ( h_humidair_fixed  ,
H_HUMIDAIR_FIXED   
) const

◆ CS_PROCF() [5/8]

void CS_PROCF ( h_liqwater  ,
H_LIQWATER   
) const

◆ CS_PROCF() [6/8]

void CS_PROCF ( rho_humidair  ,
RHO_HUMIDAIR   
) const

◆ CS_PROCF() [7/8]

void CS_PROCF ( t_humidair  ,
T_HUMIDAIR   
) const

◆ CS_PROCF() [8/8]

void CS_PROCF ( xsath  ,
XSATH   
) const

Variable Documentation

◆ cs_glob_ctwr_props

cs_ctwr_fluid_props_t* cs_glob_ctwr_props = &_props