#include "base/cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bft/bft_mem.h"
#include "bft/bft_error.h"
#include "bft/bft_printf.h"
#include "atmo/cs_air_props.h"
#include "atmo/cs_atmo.h"
#include "atmo/cs_atmo_profile_std.h"
#include "base/cs_base.h"
#include "base/cs_boundary_conditions.h"
#include "base/cs_boundary_zone.h"
#include "base/cs_field.h"
#include "base/cs_field_default.h"
#include "base/cs_field_operator.h"
#include "base/cs_field_pointer.h"
#include "base/cs_halo.h"
#include "base/cs_halo_perio.h"
#include "atmo/cs_intprf.h"
#include "base/cs_log.h"
#include "base/cs_math.h"
#include "mesh/cs_mesh.h"
#include "mesh/cs_mesh_location.h"
#include "mesh/cs_mesh_quantities.h"
#include "base/cs_parameters.h"
#include "base/cs_parall.h"
#include "base/cs_physical_constants.h"
#include "pprt/cs_physical_model.h"
#include "base/cs_prototypes.h"
#include "base/cs_thermal_model.h"
#include "base/cs_volume_zone.h"
#include "ctwr/cs_ctwr.h"
#include "ctwr/cs_ctwr_physical_properties.h"
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. | |
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. | |
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. |
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.
[in] | cell_id | Cell index |
[in] | p0 | Fluid properties reference pressure |
[in] | ref_ressure | Atmospheric reference pressure |
Update the thermo physical properties fields for the humid air and the liquid.
[in] | rho0 | Reference density of humid air |
[in] | t0 | Reference temperature of humid air (Kelvin) |
[in] | p0 | Reference pressure |
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.
[in] | rho0 | Reference density of humid air |
[in] | t0 | Reference temperature of humid air (Kelvin) |
[in] | p0 | Reference pressure |
[in] | humidity0 | Reference humidity |
[in] | molmassrat | Dry air to water vapor molecular mass ratio |