8.3
general documentation
cstphy.f90 File Reference

Module for physical constants. More...

Modules

module  cstphy
 

Functions/Subroutines

subroutine physical_constants_init
 Initialize Fortran physical constants API. This maps Fortran pointers to global C structure members. More...
 
subroutine fluid_properties_init
 Initialize Fortran fluid properties API. This maps Fortran pointers to global C structure members. More...
 
subroutine turb_reference_values_init
 Initialize Fortran RANS turbulence model API. This maps Fortran pointers to global C structure members. More...
 
subroutine turb_model_constants_init
 Initialize Fortran turbulence model constants. This maps Fortran pointers to global C real numbers. More...
 

Variables

double precision tkelvi
 Temperature in Kelvin correponding to 0 degrees Celsius (= +273,15) More...
 
double precision xcal2j
 Calories (1 cvar_al = xcal2j J) More...
 
double precision stephn
 Stephan constant for the radiative module $\sigma$ in $W.m^{-2}.K^{-4}$. More...
 
real(c_double), pointer, save rair
 Perfect gas constant for air (mixture) More...
 
real(c_double), pointer, save rvapor
 Moist air gas constant (mixture) More...
 
real(c_double), pointer, save rvsra
 ratio gas constant h2o/ dry air More...
 
real(c_double), pointer, save clatev
 latent heat of evaporation More...
 
double precision kboltz
 Boltzmann constant ( $J.K^{-1}$) More...
 
double precision cs_physical_constants_r
 Ideal gas constant ( $J.mol^{-1}.K^{-1}$) More...
 
real(c_double), pointer, save gx
 Gravity. More...
 
real(c_double), pointer, save gy
 
real(c_double), pointer, save gz
 
integer(c_int), pointer, save icorio
 Coriolis effects. More...
 
integer(c_int), pointer, save ixyzp0
 Physical constants of the fluid filling xyzp0 indicator. More...
 
integer(c_int), pointer, save icp
 indicates if the isobaric specific heat $C_p$ is variable: More...
 
integer(c_int), pointer, save icv
 isochoric specific heat $ C_v $ More...
 
integer(c_int), pointer, save irovar
 variable density field $ \rho $: More...
 
integer(c_int), pointer, save ivivar
 variable viscosity field $ \mu $: More...
 
integer(c_int), pointer, save ivsuth
 Sutherland law for laminar viscosity and thermal conductivity Only useful in gas mix (igmix) specific physics. More...
 
real(c_double), pointer, save ro0
 reference density.
More...
 
real(c_double), pointer, save viscl0
 reference molecular dynamic viscosity.
More...
 
real(c_double), pointer, save p0
 reference pressure for the total pressure.
More...
 
real(c_double), pointer, save pred0
 reference value for the reduced pressure $P^*$ (see ro0).
More...
 
real(c_double), dimension(:), pointer, save xyzp0
 coordinates of the reference point $\vect{x}_0$ for the total pressure. More...
 
real(c_double), pointer, save t0
 reference temperature. More...
 
double precision, save eint0
 Reference internal energy for the barotropic compressible module. More...
 
real(c_double), pointer, save cp0
 reference specific heat. More...
 
real(c_double), pointer, save cv0
 Reference isochoric specific heat. More...
 
real(c_double), pointer, save cpv0
 Reference isobaric specific heat for water vapor. More...
 
real(c_double), pointer, save l00
 Latent heat. More...
 
real(c_double), pointer, save cvl
 Reference specific heat for liquid water. More...
 
real(c_double), pointer, save lambda0
 Reference thermal conductivity. More...
 
real(c_double), pointer, save xmasmr
 Molar mass of the perfect gas in $ kg/mol $ (if ieos=1) More...
 
integer(c_int), pointer, save ipthrm
 Uniform variable thermodynamic pressure for the low-Mach algorithm. More...
 
real(c_double), pointer, save pther
 Thermodynamic pressure for the current time step. More...
 
real(c_double), pointer, save pthera
 Thermodynamic pressure for the previous time step. More...
 
real(c_double), pointer, save pthermax
 pthermax: Thermodynamic maximum pressure for user clipping, used to model a venting effect More...
 
real(c_double), pointer, save sleak
 Leak surface. More...
 
real(c_double), pointer, save kleak
 Leak head loss (2.9 by default, from Idelcick) More...
 
real(c_double), pointer, save roref
 Initial reference density. More...
 
double precision, save xkappa = 0.42d0
 $ \kappa $ Karman constant. (= 0.42) Useful if and only if iturb >= 10. (mixing length, $k-\varepsilon$, $R_{ij}-\varepsilon$, LES, v2f or $k-\omega$) More...
 
real(c_double), pointer, save ypluli
 limit value of $y^+$ for the viscous sublayer. ypluli depends on the chosen wall function: it is initialized to 10.88 for the scalable wall function (iwallf=4), otherwise it is initialized to $1/\kappa\approx 2,38$. In LES, ypluli is taken by default to be 10.88. More...
 
real(c_double), pointer, save cmu
 constant $C_\mu$ for all the RANS turbulence models Warning, different values for the v2f model Useful if and only if iturb = 20, 21, 30, 31, 50, 51 or 60 ( $k-\varepsilon$, $R_{ij}-\varepsilon$ or $k-\omega$) More...
 
real(c_double), pointer, save csrij
 Coefficient of interfacial coefficient in k-eps, used in Lagrange treatment. More...
 
double precision, save xcl = 0.122d0
 constant of the Rij-epsilon EBRSM More...
 
double precision, save xa1 = 0.1d0
 constant in the expression of Ce1' for the Rij-epsilon EBRSM More...
 
double precision, save xct = 6.d0
 constant of the Rij-epsilon EBRSM More...
 
real(c_double), pointer, save almax
 is a characteristic macroscopic length of the domain, used for the initialization of the turbulence and the potential clipping (with iclkep=1) More...
 
real(c_double), pointer, save uref
 the characteristic flow velocity, used for the initialization of the turbulence. Negative value: not initialized. More...
 
real(c_double), pointer, save xlesfl
 constant used in the definition of LES filtering diameter: $ \delta = \text{xlesfl} . (\text{ales} . volume)^{\text{bles}}$ xlesfl is a constant used to define, for each cell $\omega_i$, the width of the (implicit) filter: $\overline{\Delta}=xlesfl(ales*|\Omega_i|)^{bles}$
Useful if and only if iturb = 40 or 41 More...
 
real(c_double), pointer, save ales
 constant used to define, for each cell $Omega_i$, the width of the (implicit) filter: More...
 
real(c_double), pointer, save bles
 constant used to define, for each cell $Omega_i$, More...
 
real(c_double), pointer, save csmago
 Smagorinsky constant used in the Smagorinsky model for LES. The sub-grid scale viscosity is calculated by $\displaystyle\mu_{sg}=
 \rho C_{smago}^2\bar{\Delta}^2\sqrt{2\bar{S}_{ij}\bar{S}_{ij}}$ where $\bar{\Delta}$ is the width of the filter and $\bar{S}_{ij}$ the filtered strain rate. More...
 
real(c_double), pointer, save xlesfd
 ratio between explicit and explicit filter width for a dynamic model constant used to define, for each cell $\Omega_i$, the width of the explicit filter used in the framework of the LES dynamic model: $\widetilde{\overline{\Delta}}=xlesfd\overline{\Delta}$. More...
 
real(c_double), pointer, save cdries
 van Driest constant appearing in the van Driest damping function applied to the Smagorinsky constant: More...
 
double precision, save volmin
 minimal control volume More...
 
double precision, save volmax
 maximal control volume More...
 
double precision, save voltot
 total domain volume More...
 
real(c_double), pointer, save xclt
 constant of EB-AFM and EB-DFM More...
 

Detailed Description

Module for physical constants.