8.3
general documentation
cs_ctwr_physical_properties.h File Reference
#include "cs_defs.h"
#include "cs_field.h"
+ Include dependency graph for cs_ctwr_physical_properties.h:

Go to the source code of this file.

Functions

cs_real_t cs_ctwr_compute_reference_pressure (cs_lnum_t cell_id, cs_real_t p0, cs_field_t *ref_pressure)
 Compute cell reference pressure. More...
 
void cs_ctwr_phyvar_update (cs_real_t rho0, cs_real_t t0, cs_real_t p0)
 Update the thermo physical properties fields for the humid air and the liquid. More...
 
void cs_ctwr_restart_field_vars (cs_real_t rho0, cs_real_t t0, cs_real_t p0, cs_real_t humidity0, cs_real_t molmassrat)
 Reset the field variables based on the restart values. More...
 

Function Documentation

◆ cs_ctwr_compute_reference_pressure()

cs_real_t cs_ctwr_compute_reference_pressure ( cs_lnum_t  cell_id,
cs_real_t  p0,
cs_field_t ref_pressure 
)

Compute cell reference pressure.

Parameters
[in]cell_idCell index
[in]p0Fluid properties reference pressure
[in]ref_ressureAtmospheric reference pressure
Returns
pphy Reference pressure

◆ cs_ctwr_phyvar_update()

void cs_ctwr_phyvar_update ( cs_real_t  rho0,
cs_real_t  t0,
cs_real_t  p0 
)

Update the thermo physical properties fields for the humid air and the liquid.

Parameters
[in]rho0Reference density of humid air
[in]t0Reference temperature of humid air (Kelvin)
[in]p0Reference pressure

◆ cs_ctwr_restart_field_vars()

void cs_ctwr_restart_field_vars ( cs_real_t  rho0,
cs_real_t  t0,
cs_real_t  p0,
cs_real_t  humidity0,
cs_real_t  molmassrat 
)

Reset the field variables based on the restart values.

Parameters
[in]rho0Reference density of humid air
[in]t0Reference temperature of humid air (Kelvin)
[in]p0Reference pressure
[in]humidity0Reference humidity
[in]molmassratDry air to water vapor molecular mass ratio