8.0
general documentation
Loading...
Searching...
No Matches
atincl Module Reference

Data Types

interface  cs_air_pwv_sat
 Computes the saturation water vapor pressure function of the temperature (C). More...
interface  cs_air_x_sat
 Calculation of the absolute humidity at saturation for a given temperature. More...
interface  cs_air_x_to_yw
 Convert the absolute humidity of humid air to the air water mass fraction. More...
interface  cs_air_yw_sat
 Calculation of the air water mass fraction at saturation for a given temperature. More...
interface  cs_air_yw_to_x
 Convert the air water mass fraction to the absolute humidity of humid air. More...
interface  cs_atmo_compute_meteo_profiles
 Compute meteo profiles if no meteo file is given. More...
interface  cs_atmo_init_meteo_profiles
 Initialize meteo profiles if no meteo file is given. More...
interface  cs_f_atmo_arrays_get_pointers
 Return pointers to atmo arrays. More...
interface  cs_f_atmo_get_meteo_file_name
interface  cs_f_atmo_get_pointers
 Return pointers to atmo includes. More...
interface  cs_f_atmo_get_soil_zone
interface  cs_liq_t_to_h
 Calculation of the specific enthalpy of liquid water. More...
interface  cs_mo_phih
interface  cs_mo_phim
interface  cs_mo_psih
interface  cs_mo_psim
interface  cs_rho_humidair
 Calculation of the density of humid air. More...

Functions/Subroutines

subroutine atmo_get_soil_zone (n_faces, n_soil_cat, face_ids_p)
subroutine atmo_get_meteo_file_name (name)
 Return meteo file name.
type(c_ptr) function cs_atmo_get_auto_flag ()
 Return pointer to automatic face bc flag array.
subroutine atmo_init
 Map fortran to C variables.
subroutine init_meteo
 Initialisation of meteo data.
subroutine init_atmo_autom (nfabor)
 Initialisation of meteo data.
subroutine finalize_meteo
 Final step for deallocation.
subroutine mo_compute_from_thermal_flux (z, z0, du, flux, tm, gredu, dlmo, ustar)
 Compute LMO, friction velocity ustar, friction temperature tstar from a thermal flux using Monin Obukhov.
subroutine mo_compute_from_thermal_diff (z, z0, du, dt, tm, gredu, dlmo, ustar)
 Compute LMO, friction velocity ustar, friction temperature tstar from a thermal difference using Monin Obukhov.

Variables

double precision, dimension(:), pointer tmmet
 time (in sec) of the meteo profile
double precision, dimension(:), pointer zdmet
 altitudes of the dynamic profiles (read in the input meteo file)
double precision, dimension(:), allocatable dpdt_met
 Pressure drop integrated over a time step (used for automatic open boundaries)
double precision, dimension(:,:), allocatable mom_met
 Momentum for each level (used for automatic open boundaries)
double precision, dimension(:,:), allocatable mom
double precision, dimension(:), pointer ztmet
 altitudes of the temperature profile (read in the input meteo file)
double precision, dimension(:,:), pointer umet
 meteo u profiles (read in the input meteo file)
double precision, dimension(:,:), pointer vmet
 meteo v profiles (read in the input meteo file)
double precision, dimension(:,:), allocatable wmet
 meteo w profiles - unused
double precision, dimension(:,:), pointer ekmet
 meteo turbulent kinetic energy profile (read in the input meteo file)
double precision, dimension(:,:), pointer epmet
 meteo turbulent dissipation profile (read in the input meteo file)
double precision, dimension(:,:), allocatable ttmet
 meteo temperature (Celsius) profile (read in the input meteo file)
double precision, dimension(:,:), allocatable qvmet
 meteo specific humidity profile (read in the input meteo file)
double precision, dimension(:,:), allocatable ncmet
 meteo specific droplet number profile (read in the input meteo file)
double precision, dimension(:), allocatable pmer
 Sea level pressure (read in the input meteo file)
double precision, dimension(:), allocatable xmet
 X axis coordinates of the meteo profile (read in the input meteo file)
double precision, dimension(:), allocatable ymet
 Y axis coordinates of the meteo profile (read in the input meteo file)
double precision, dimension(:,:), allocatable rmet
 density profile
double precision, dimension(:,:), pointer tpmet
 potential temperature profile
double precision, dimension(:,:), pointer phmet
 hydrostatic pressure from Laplace integration
integer, save iymw
 total water content (for humid atmosphere)
integer, save intdrp = -1
 intdrp---> total number of droplets (for humid atmosphere)
integer, save itempc
 temperature (in Celsius)
integer, save iliqwt
 liquid water content
integer, save imomst
 momentum source term field id (useful when iatmst > 0)
integer(c_int), pointer, save imeteo
 flag for reading the meteo input file
integer(c_int), pointer, save nbmetd
 numbers of altitudes for the dynamics
integer(c_int), pointer, save nbmett
 numbers of altitudes for the temperature and specific humidity
integer(c_int), pointer, save nbmetm
 numbers of time steps for the meteo profiles
integer, dimension(nozppm), save iprofm
 read zone boundary conditions from profile
integer, dimension(:), allocatable, target iautom
 automatic inlet/outlet boundary condition flag (0: not auto (default); 1,2: auto) When meteo momentum source terms are activated (iatmst > 0), iautom = 1 corresponds to a Dirichlet on the pressure and a Neumann on the velocity, whereas iautom = 2 imposes a Dirichlet on both pressure and velocity
integer, save initmeteo
 use meteo profile for variables initialization (0: not used; 1: used (default))
integer(c_int), pointer, save iatmst
 add a momentum source term based on the meteo profile for automatic open boundaries
integer, save theo_interp
 flag for meteo velocity field interpolation
real(c_double), pointer, save ps
 reference pressure (to compute potential temp: 1.0d+5)
integer(c_int), pointer, save syear
 starting year
integer(c_int), pointer, save squant
 starting quantile
integer(c_int), pointer, save shour
 starting hour
integer(c_int), pointer, save smin
 starting min
real(c_double), pointer, save ssec
 starting second
real(c_double), pointer, save xlon
 longitude of the domain origin
real(c_double), pointer, save xlat
 latitude of the domain origin
real(c_double), pointer, save xl93
 x coordinate of the domain origin in Lambert-93
real(c_double), pointer, save yl93
 y coordinate of the domain origin in Lambert-93
integer(c_int), pointer, save nbmaxt
 Number of vertical levels (cf. 1-D radiative scheme)
integer, save ihpm
 flag to compute the hydrostastic pressure by Laplace integration in the meteo profiles = 0 : bottom to top Laplace integration, based on P(sea level) (default) = 1 : top to bottom Laplace integration based on P computed for the standard atmosphere at z(nbmaxt)
integer, save nvert
 number of vertical arrays
integer, save kvert
 number of levels (up to the top of the domain)
integer, save kmx
 Number of levels (up to 11000 m if ray1d used) (automatically computed)
real(c_double), pointer, save meteo_zi
 Height of the boundary layer.
integer(c_int), pointer, save iatra1
 flag for the use of the 1d atmo radiative model
integer, save nfatr1
 1d radiative model pass frequency
integer, save iqv0
 flag for the standard atmo humidity profile
integer, save idrayi
 pointer for 1D infrared profile
integer, save idrayst
 pointer for 1D solar profile
integer, save igrid
 grid formed by 1D profiles
double precision, dimension(:,:), allocatable xyvert
 horizontal coordinates of the vertical grid
double precision, dimension(:), allocatable zvert
 vertical grid for 1D radiative scheme initialize in cs_user_atmospheric_model.f90
double precision, dimension(:), allocatable acinfe
 absorption for CO2 + 03
double precision, dimension(:), allocatable dacinfe
 differential absorption for CO2 + 03
double precision, dimension(:,:), allocatable aco2
 absorption for CO2 only
double precision, dimension(:,:), allocatable aco2s
double precision, dimension(:,:), allocatable daco2
 differential absorption for CO2 only
double precision, dimension(:,:), allocatable daco2s
double precision, dimension(:), allocatable acsup
 idem acinfe, flux descendant
double precision, dimension(:), allocatable acsups
double precision, dimension(:), allocatable dacsup
 internal variable for 1D radiative model
double precision, dimension(:), allocatable dacsups
double precision, dimension(:), allocatable tauzq
 internal variable for 1D radiative model
double precision, dimension(:), allocatable tauz
 internal variable for 1D radiative model
double precision, dimension(:), allocatable zq
 internal variable for 1D radiative model
double precision, save tausup
 internal variable for 1D radiative model
double precision, dimension(:), allocatable zray
 internal variable for 1D radiative model
double precision, dimension(:,:), allocatable rayi
double precision, dimension(:,:), allocatable rayst
double precision, dimension(:,:), allocatable iru
 Upward and downward radiative fluxes (infrared, solar) along each vertical.
double precision, dimension(:,:), allocatable ird
double precision, dimension(:,:), allocatable solu
double precision, dimension(:,:), allocatable sold
integer(c_int), pointer, save iatsoil
 Flag to use the soil model (0 off, 1 on)
logical(c_bool), pointer, save compute_z_ground
 Do we compute z ground every where?
integer(c_int), pointer, save modsub
 Option for subgrid models.
integer(c_int), pointer, save moddis
 Option for liquid water content distribution models.
integer(c_int), pointer, save modnuc
 Option for nucleation.
integer(c_int), pointer, save modsedi
 sedimentation flag
integer(c_int), pointer, save moddep
 deposition flag
double precision, save sigc
 adimensional : sigc=0.53 other referenced values are 0.28, 0.15
integer, save init_at_chem
 force initilization in case of restart (this option is automatically set in lecamp)
integer, save kopint
 key id for optimal interpolation
double precision, save aod_o3_tot
 Aerosol optical properties.
double precision, save aod_h2o_tot
 adimensional : aod_h2o_tot=0.10 other referenced values are 0.06, 0.08
double precision, save gaero_o3
 Asymmetry factor for O3 (non-dimensional) climatic value gaero_o3=0.66.
double precision, save gaero_h2o
 Asymmetry factor for H2O (non-dimensional) climatic value gaero_h2o=0.64.
double precision, save piaero_o3
 Single scattering albedo for O3 (non-dimensional) climatic value piaero_o3=0.84, other referenced values are 0.963.
double precision, save piaero_h2o
 Single scattering albedo for H2O (non-dimensional) climatic value piaero_h2o=0.84, other referenced values are 0.964.
double precision, save black_carbon_frac
 Fraction of Black carbon (non-dimensional): black_carbon_frac=1.d-8 for no BC.
double precision, save zaero
 Maximal height for aerosol distribution on the vertical important should be <= zqq(kmray-1); in meters : referenced value: zaero=6000.

Function/Subroutine Documentation

◆ atmo_get_meteo_file_name()

subroutine atmo_get_meteo_file_name ( character(len=*), intent(out) name)

Return meteo file name.

Parameters
[out]namemeteo file name

◆ atmo_get_soil_zone()

subroutine atmo_get_soil_zone ( integer(c_int), intent(out) n_faces,
integer(c_int), intent(out) n_soil_cat,
integer, dimension(:), intent(out), pointer face_ids_p )

◆ atmo_init()

subroutine atmo_init

Map fortran to C variables.

◆ cs_atmo_get_auto_flag()

type(c_ptr) function cs_atmo_get_auto_flag ( void )

Return pointer to automatic face bc flag array.

Returns
auto_flag pointer to automatic boundary condition array

◆ finalize_meteo()

subroutine finalize_meteo

Final step for deallocation.

◆ init_atmo_autom()

subroutine init_atmo_autom ( integer nfabor)

Initialisation of meteo data.

◆ init_meteo()

subroutine init_meteo

Initialisation of meteo data.

◆ mo_compute_from_thermal_diff()

subroutine mo_compute_from_thermal_diff ( double precision z,
double precision z0,
double precision du,
double precision dt,
double precision tm,
double precision gredu,
double precision dlmo,
double precision ustar )

Compute LMO, friction velocity ustar, friction temperature tstar from a thermal difference using Monin Obukhov.

Parameters
[in]zaltitude
[in]z0
[in]duvelocity difference
[in]dtthermal difference
[in]tm
[in]gredu
[out]dlmoInverse Monin Obukhov length
[out]ustarfriction velocity

◆ mo_compute_from_thermal_flux()

subroutine mo_compute_from_thermal_flux ( double precision z,
double precision z0,
double precision du,
double precision flux,
double precision tm,
double precision gredu,
double precision dlmo,
double precision ustar )

Compute LMO, friction velocity ustar, friction temperature tstar from a thermal flux using Monin Obukhov.

Parameters
[in]zaltitude
[in]z0
[in]duvelocity difference
[in]fluxthermal flux
[in]tm
[in]gredu
[out]dlmoInverse Monin Obukhov length
[out]ustarfriction velocity