PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
pyphyex.phyex1d.beta_surface Namespace Reference

Functions

 bulk_richardson (z1, t1, q1, ts, qs, speed)
 drag_coefficients (z1, z0, z0h, ri, stability)
 charnock_z0 (ustar)
 beta_fluxes (t1, q1, rho, u, v, z1, ts, ps, beta, z0, z0h, stability)
 paulson_psim (z_o_lmo)
 mo_ustar (wind, z, z0, sfth, sfrv, theta, rv)

Variables

 CB
 CC
 CD
float F_RI_CD_MIN = 0.1
float CEPDU2 = 0.1**2
int MIN_WIND_SPEED = 1.
 CHARNOCK
 NU_AIR

Detailed Description

Simple bulk surface scheme with an evaporation efficiency (beta), following the simple surface
of LMDZ (LMDZ6, libf/phylmd: calbeta_mod.f90, calcul_fluxs_mod.f90, cdrag_mod.f90):
  - E   = beta * rho * Ch * U * (qsat(Ts, Ps) - q1)
  - H   = rho * Ch * U * (cp * (Ts - T1) - g * z1)
  - u*  = sqrt(Cd) * U
with U = min_wind + |V| (LMDZ min_wind_speed, gustiness not taken into account), the neutral
coefficients (kappa / ln(1 + z1/z0))**2 (z0h for heat) and, optionally, the Louis (1982)
stability functions of the bulk Richardson number (default choice of LMDZ cdrag,
iflag_corr_sta=iflag_corr_insta=2). Over ocean, z0 can be computed with the Charnock formula
(as in LMDZ cdrag).

The module also provides a friction velocity with a Monin-Obukhov stability correction computed
from the surface fluxes (as in SURFEX, COUPLING_IDEAL_FLUX and MODE_SBLS), used when the wind
forcing is given through a roughness length.

Function Documentation

◆ beta_fluxes()

pyphyex.phyex1d.beta_surface.beta_fluxes ( t1,
q1,
rho,
u,
v,
z1,
ts,
ps,
beta,
z0,
z0h,
stability )
Surface fluxes of the beta scheme
:param t1, q1: temperature (K) and specific humidity (kg/kg) at the first level
:param rho: air density at the first level (kg/m3)
:param u, v: wind components at the first level (m/s)
:param z1: height of the first atmospheric level above the surface (m)
:param ts: surface temperature (K)
:param ps: surface pressure (Pa)
:param beta: evaporation efficiency (0-1)
:param z0: roughness length for momentum (m) or 'CHARNOCK'
:param z0h: roughness length for heat (m), None to use z0
:param stability: True to apply the stability functions
:return: (sensible heat flux (W/m2), water vapour flux (kg/m2/s), friction velocity (m/s))

Definition at line 86 of file beta_surface.py.

Here is the call graph for this function:

◆ bulk_richardson()

pyphyex.phyex1d.beta_surface.bulk_richardson ( z1,
t1,
q1,
ts,
qs,
speed )
Bulk Richardson number (LMDZ cdrag)
:param z1: height of the first atmospheric level (m)
:param t1, q1: temperature (K) and specific humidity (kg/kg) at the first level
:param ts, qs: surface temperature (K) and specific humidity (kg/kg)
:param speed: wind speed at the first level (m/s)

Definition at line 32 of file beta_surface.py.

Here is the caller graph for this function:

◆ charnock_z0()

pyphyex.phyex1d.beta_surface.charnock_z0 ( ustar)
Roughness length over ocean (Charnock formula with a smooth flow term, LMDZ cdrag)
:param ustar: friction velocity (m/s)

Definition at line 76 of file beta_surface.py.

Here is the caller graph for this function:

◆ drag_coefficients()

pyphyex.phyex1d.beta_surface.drag_coefficients ( z1,
z0,
z0h,
ri,
stability )
Drag coefficients for momentum and heat (LMDZ cdrag)
:param z1: height of the first atmospheric level (m)
:param z0, z0h: roughness lengths for momentum and heat (m)
:param ri: bulk Richardson number
:param stability: True to apply the Louis (1982) stability functions
:return: (Cd, Ch)

Definition at line 49 of file beta_surface.py.

Here is the caller graph for this function:

◆ mo_ustar()

pyphyex.phyex1d.beta_surface.mo_ustar ( wind,
z,
z0,
sfth,
sfrv,
theta,
rv )
Friction velocity with a Monin-Obukhov stability correction computed from the surface
fluxes (SURFEX COUPLING_IDEAL_FLUX, MODE_SBLS: USTAR and LMO functions)
:param wind: wind speed at the first level (m/s)
:param z: height of the first level (m)
:param z0: roughness length (m)
:param sfth: kinematic surface flux of potential temperature (K m/s)
:param sfrv: kinematic surface flux of water vapour mixing ratio (kg/kg m/s)
:param theta, rv: potential temperature (K) and mixing ratio (kg/kg) at the first level

Definition at line 128 of file beta_surface.py.

Here is the call graph for this function:

◆ paulson_psim()

pyphyex.phyex1d.beta_surface.paulson_psim ( z_o_lmo)
Paulson stability function for momentum (SURFEX MODE_SBLS)

Definition at line 120 of file beta_surface.py.

Here is the caller graph for this function:

Variable Documentation

◆ CB

pyphyex.phyex1d.beta_surface.CB

Definition at line 24 of file beta_surface.py.

◆ CC

pyphyex.phyex1d.beta_surface.CC

Definition at line 24 of file beta_surface.py.

◆ CD

pyphyex.phyex1d.beta_surface.CD

Definition at line 24 of file beta_surface.py.

◆ CEPDU2

float pyphyex.phyex1d.beta_surface.CEPDU2 = 0.1**2

Definition at line 26 of file beta_surface.py.

◆ CHARNOCK

pyphyex.phyex1d.beta_surface.CHARNOCK

Definition at line 29 of file beta_surface.py.

◆ F_RI_CD_MIN

float pyphyex.phyex1d.beta_surface.F_RI_CD_MIN = 0.1

Definition at line 25 of file beta_surface.py.

◆ MIN_WIND_SPEED

int pyphyex.phyex1d.beta_surface.MIN_WIND_SPEED = 1.

Definition at line 27 of file beta_surface.py.

◆ NU_AIR

pyphyex.phyex1d.beta_surface.NU_AIR

Definition at line 29 of file beta_surface.py.