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 xsath (const cs_real_t *th, const cs_real_t *p0, cs_real_t *xsat)
 
void dxsath (const cs_real_t *th, const cs_real_t *p0, cs_real_t *dxsat)
 
void 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, cs_real_t *rho_humidair)
 
void cp_humidair (const cs_real_t *x, const cs_real_t *x_s, cs_real_t *cp_humidair)
 
void h_humidair (const cs_real_t *cp_humidair, const cs_real_t *x, const cs_real_t *x_s, const cs_real_t *t_humidair, cs_real_t *h_humidair)
 
void t_humidair (const cs_real_t *cp_humidair, const cs_real_t *x, const cs_real_t *x_s, const cs_real_t *h_humidair, cs_real_t *t_humidair)
 
void h_liqwater (const cs_real_t *t_liqwater, cs_real_t *h_liqwater)
 
void h_humidair_fixed (const cs_real_t *x_air, const cs_real_t *t_air, cs_real_t *h_humidair_fixed)
 
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

◆ cp_humidair()

void cp_humidair ( const cs_real_t x,
const cs_real_t x_s,
cs_real_t cp_humidair 
)

◆ 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

◆ dxsath()

void dxsath ( const cs_real_t th,
const cs_real_t p0,
cs_real_t dxsat 
)

◆ h_humidair()

void h_humidair ( const cs_real_t cp_humidair,
const cs_real_t x,
const cs_real_t x_s,
const cs_real_t t_humidair,
cs_real_t h_humidair 
)

◆ h_humidair_fixed()

void h_humidair_fixed ( const cs_real_t x_air,
const cs_real_t t_air,
cs_real_t h_humidair_fixed 
)

◆ h_liqwater()

void h_liqwater ( const cs_real_t t_liqwater,
cs_real_t h_liqwater 
)

◆ rho_humidair()

void 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,
cs_real_t rho_humidair 
)

◆ t_humidair()

void t_humidair ( const cs_real_t cp_humidair,
const cs_real_t x,
const cs_real_t x_s,
const cs_real_t h_humidair,
cs_real_t t_humidair 
)

◆ xsath()

void xsath ( const cs_real_t th,
const cs_real_t p0,
cs_real_t xsat 
)

Variable Documentation

◆ cs_glob_ctwr_props

cs_ctwr_fluid_props_t* cs_glob_ctwr_props = &_props