9.0
general documentation
Loading...
Searching...
No Matches
cs_ctwr_physical_properties.cpp File Reference
#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"
Include dependency graph for cs_ctwr_physical_properties.cpp:

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.

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