7.1
general documentation
atincl.f90 File Reference

Module for atmospheric models - main variables. More...

Data Types

interface  cs_f_atmo_get_meteo_file_name
 
interface  cs_f_atmo_get_pointers
 Return pointers to atmo includes. More...
 
interface  cs_atmo_init_meteo_profiles
 Initialize meteo profiles if no meteo file is given. More...
 
interface  cs_atmo_compute_meteo_profiles
 Compute meteo profiles if no meteo file is given. More...
 
interface  cs_liq_t_to_h
 Calculation of the specific enthalpy of liquid water. More...
 
interface  cs_air_x_sat
 Calculation of the absolute humidity at saturation for a given temperature. More...
 
interface  cs_air_yw_sat
 Calculation of the air water mass fraction at saturation for a given temperature. More...
 
interface  cs_air_pwv_sat
 Computes the saturation water vapor pressure function of the temperature (C). 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_to_x
 Convert the air water mass fraction to the absolute humidity of humid air. More...
 
interface  cs_rho_humidair
 Calculation of the density of humid air. More...
 

Modules

module  atincl
 

Functions/Subroutines

subroutine atmo_get_meteo_file_name (name)
 Return meteo file name. More...
 
type(c_ptr) function cs_atmo_get_auto_flag ()
 Return pointer to automatic face bc flag array. More...
 
subroutine atmo_init
 Map fortran to C variables. More...
 
subroutine init_meteo
 Initialisation of meteo data. More...
 
subroutine init_atmo_autom (nfabor)
 Initialisation of meteo data. More...
 
subroutine finalize_meteo
 Final step for deallocation. More...
 
subroutine mo_phim_s (z, dlmo, coef)
 Universal functions of Cheng and Brutsaert 2005, for stable (derivative function) More...
 
subroutine mo_phih_s (z, dlmo, coef)
 
subroutine mo_psim_s (z, z0, dlmo, coef)
 
subroutine mo_psih_s (z, z0, dlmo, coef)
 
subroutine mo_phim_u (z, dlmo, coef)
 Universal functions of Hogstrom 1988, for unstable (derivative function) More...
 
subroutine mo_phih_u (z, dlmo, coef)
 
subroutine mo_psim_u (z, z0, dlmo, coef)
 
subroutine mo_psih_u (z, z0, dlmo, coef)
 
subroutine mo_phim_n (z, dlmo, coef)
 Universal functions, for neutral (derivative function) More...
 
subroutine mo_phih_n (z, dlmo, coef)
 
subroutine mo_psim_n (z, z0, dlmo, coef)
 
subroutine mo_psih_n (z, z0, dlmo, coef)
 
real(c_double) function cs_mo_phim (z, dlmo)
 
real(c_double) function cs_mo_phih (z, dlmo)
 
real(c_double) function cs_mo_psim (z, z0, dlmo)
 
real(c_double) function cs_mo_psih (z, z0, dlmo)
 
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. More...
 
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. More...
 

Variables

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

Detailed Description

Module for atmospheric models - main variables.

  • Nota : ippmod(iatmos) = 0 constante density, =1 –> Dry atmosphere, = 2 –> Humid atmosphere
  • A separate vertical grid is used for 1D radiative scheme