User definition of physical properties. More...
#include "cs_defs.h"#include <assert.h>#include <math.h>#include <string.h>#include "cs_headers.h"Functions | |
| void | cs_user_physical_properties (cs_domain_t *domain) |
| Function called at each time step to define physical properties. | |
| void | cs_user_physical_properties_h_to_t (cs_domain_t *domain, const cs_zone_t *z, bool z_local, const cs_real_t h[], cs_real_t t[]) |
| User definition of enthalpy to temperature conversion. | |
| void | cs_user_physical_properties_t_to_h (cs_domain_t *domain, const cs_zone_t *z, bool z_local, const cs_real_t t[], cs_real_t h[]) |
| User definition of temperature to enthalpy conversion. | |
| void | cs_user_physical_properties_turb_viscosity (cs_domain_t *domain) |
| User modification of the turbulence viscosity. | |
| void | cs_user_physical_properties_td_pressure (cs_real_t *td_p) |
| User function to define a custom law for the thermodynamic pressure. | |
User definition of physical properties.
| void cs_user_physical_properties | ( | cs_domain_t * | domain | ) |
Function called at each time step to define physical properties.
This function is called each time step to define physical properties.
| [in,out] | domain | pointer to a cs_domain_t structure |
| void cs_user_physical_properties_h_to_t | ( | cs_domain_t * | domain, |
| const cs_zone_t * | z, | ||
| bool | z_local, | ||
| const cs_real_t | h[], | ||
| cs_real_t | t[] ) |
User definition of enthalpy to temperature conversion.
This allows overwriting the solver defaults if necessary.
This function may be called on a per-zone basis, so as to allow different conversion relations in zones representing solids or different fluids.
| [in,out] | domain | pointer to a cs_domain_t structure |
| [in] | z | zone (volume or boundary) applying to current call |
| [in] | z_local | if true, h and t arrays are defined in a compact (contiguous) manner for this zone only; if false, h and t are defined on the zone's parent location (usually all cells or boundary faces) |
| [in] | h | enthalpy values |
| [in,out] | t | temperature values |
| void cs_user_physical_properties_t_to_h | ( | cs_domain_t * | domain, |
| const cs_zone_t * | z, | ||
| bool | z_local, | ||
| const cs_real_t | t[], | ||
| cs_real_t | h[] ) |
User definition of temperature to enthalpy conversion.
This allows overwriting the solver defaults if necessary.
This function may be called on a per-zone basis, so as to allow different conversion relations in zones representing solids or different fluids.
| [in,out] | domain | pointer to a cs_domain_t structure |
| [in] | z | zone (volume or boundary) applying to current call |
| [in] | z_local | if true, h and t arrays are defined in a compact (contiguous) manner for this zone only; if false, h and t are defined on the zone's parent location (usually all cells or boundary faces) |
| [in] | h | temperature values |
| [in,out] | t | enthalpy values |
| void cs_user_physical_properties_td_pressure | ( | cs_real_t * | td_p | ) |
User function to define a custom law for the thermodynamic pressure.
Allows to define a custom law for the constant uniform thermodynamic pressure (whenn idilat = 3 or ipthrm = 1).
The density is then updated (in pthrbm.f90) as:
![\[\rho^{n+1} =\rho^{n} \cdot \frac{P_{th}^{n+1}}{P_{th}^{n}}\]](form_254.png)
.
| [in,out] | td_p | Updated value of the thermodynamic pressure |
| void cs_user_physical_properties_turb_viscosity | ( | cs_domain_t * | domain | ) |
User modification of the turbulence viscosity.
Turbulent viscosity 
| [in,out] | domain | pointer to a cs_domain_t structure |