Everything You Need To Know Numerical Weather Prediction: in About 100 Minutes
Everything You Need To Know Numerical Weather Prediction: in About 100 Minutes
Everything You Need To Know Numerical Weather Prediction: in About 100 Minutes
• Forecast is created from a set of PDE’s and other process equations that
describe the dynamic and thermodynamic processes in the earths atmosphere
• The domain and horizontal and vertical grid structure and domain is a
fundamental choice which heavily impacts the equation set and model
performance
• PDE’s are discretized using a set of basis functions appropriate (more or less)
to the domain of interest. Not all scales of motion & processes are represented
• Equations
• Numerical approximations
•Parameterizations
•Domains
•Initial and boundary conditions
Equations used
• Conservation of momentum
• 3 equations
• Conservation of mass
• 1 for air (continuity)
• 1 for water
•Conservation of energy
•1 equation for first law of thermodynamics
•Relationship between density, pressure and temperature
•Eq. of State....
Almost every model uses a
slightly different set of equations
• Why?
North-south wind
Temperature
Humidity
Continuity of mass
Surface pressure
Domains
Number of dimensions
Shape
Vertical coordinate
Resolution
Domains
Number of dimensions
3D: Simulation of thunderstorm
Hexagonal Triangular
From ccrma.standford.edu/~bilbao
Domains
Shape Flat
Spherical
Pressure
Sigma
ETA
Isentropic
Hybrids
Height as a Vertical
Coordinate
Height as a Vertical Coordinate
Advantages
easy, intuitive
Advantages – intuitive, easy to construct equations
Disadvantages
Disadvantage – difficult to represent surface of Earth because
different places are
topography hardat different
to deal heights.
with… Topographic holes.
topography
Pressure as a Vertical
Coordinate
Pressure as a Vertical Coordinate
Advantages
top of
Advantages atmosphere
– easy is easy
to represent (p=0)
the top of the atmosphere (i.e. p=0)
and easy to incorporate rawinsonde data.
observations often in terms of pressure (rawinsonde,
satellite)
Disadvantage – difficult to represent the surface of the Earth
because the pressure changes from one point to another on
Disadvantages
the surface. Topographic “holes”
pressure has same problems as height.
topography
topography
Sigma as a Vertical
MET 171A
Coordinate
Advantages: easy to represent top and
bottom of atmosphere
Vertical coordinate
thin-wall approximation (Bonaventura, 2000) to avoid where the variables are the standard definitions. T
impractically small-time increments, we use another form was determined by Satomura and Akiba (20
approach in which small cells are combined with upper and has an advantage in that it does not su
cells to maintain the volume of cells larger than half from the cancellation error because of subtrac
a regular cell. This approach has been used in hydro- the hydrostatic variable (p or ρ) from the ne
dynamic models in the engineering field (e.g. Quirk, hydrostatic total variable (p or ρ).
1994), but is applied in this article to an atmospheric The shaved cell method approximates the topo
model to maintain reasonable conservation character- phy by piecewise linear slopes as shown in Figure
′ ′
istics and computer resource consumption.
Figure 2. Combination where
of small cells. Thick lines describe the boundaries the
of the scalar cells.scalar variables
Shaded regions (p and
represent topography
in the model. (a) Scalar cells before combination. Scalar cell C exchanges flux with the cells, A, B, D, and E. (b) Scalar cells after
ρ ) are defined a
Quasi-flux form fully compressible
combining cells C and D. Combined dynamical flux with cells A,scalar
cell C exchangesequa-
′
B, E, and F. cells denoted by thick lines, while momenta
Domains
Vertical coordinate
Resolution
RTFDDA terrain elevation on different domains
x = 30 km x = 3.3 km
± Δx) = f (x) ± Δx
f (x + ± ...+
∂x x 2! ∂x 2
x
n! ∂x n
x
Classic Taylor series expansion about “x”
To create a derivative...
∂f 2Δx ∂ f
2 3
Δx ∂
2(n+1)
f2(n+1)
f (x
+ Δx) − f (x − Δx) = 2Δx + + ...+
∂x x 2! ∂x x
3
(n + 1)! ∂x 2(n+1)
x
rearranging...
∂f f (x + Δx) − f (x − Δx) 2 ∂ f
3
Δx 2n+1
∂ 2n+1
f
= = Δx + ...+
∂x x 2Δx ∂x x
3
( 2n + 1)! ∂x 2n+1
x
Example: Finite Differences
• What to do with those extra derivatives?
∂ f
f (x + Δx) − f (x − Δx) 2 ∂ f
3
Δx 2n+1
∂2n+1
f
= = Δx + ...+
∂x x
2Δx ∂x x
3
( 2n + 1)! ∂x 2n+1
x
∂x i 2Δx 2Δx
• Truncation is always necessary (finite difference, spectral, etc).
• Truncation is one of the underlying approximation errors for the
underlying PDEs
• What do these approximation errors look like in a numerical
simulation?
Numerical ∂T
methods ∂T
Approximating 1D advection = −u
∂t ∂x
MM5: leapfrog (t) and 2nd-order centered (x)
• Spectral models are much more accurate per “dx”, but also cost much more than finite
differences. BC’s are also more complicated
• Nearly all original limited area NWP models used 2nd order approximations - despite
the limits of that approximation - they still made useful predictions.
• Numerics is only part of the story - PHYSICS is also important to NWP!
What do we mean by “Physics"
• Physics: Two “categories”
• Inputs of momentum, heat and moisture from the boundaries of
the domain (earth and space)
• friction
• sea surface fluxes
• solar radiation
• processes that are too small to be resolved on a numerical grid
• ice nucleation on CCN
• melting of graupel into rain
• vertical transport of heat, momentum and moisture from
convective plumes in the boundary layer
• Both require PARAMETERIZATION: represent the integrated effect
• How do we formally represent this?
Physics -> Parameterizations
• Parameterizations approximate the bulk effects of physical
processes too small, too brief, too complex, or too poorly
understood to be explicitly represented
• In most modern models, the following parameterizations are
used to represent processes to fast or small or even not well
known enough….
• cumulus convection
• microphysical processes
• radiation (short wave, long wave)
• turbulence and diffusive processes
• boundary layer and surface fluxes
• interactions with earth’s surface (mountain drag effects)
• Many of the biggest improvements in model forecasts will come
from improving these parameterizations
Reynolds Averaging
• Integrating the governing differential equations in a limited area
numerically will limit the explicit representation of atmospheric motions
and processes at a scale smaller than the grid interval, truncated
wavelength, or finite element
• The subgrid-scale disturbances may be inappropriately represented by
the grid point values, which may cause nonlinear aliasing and
nonlinear numerical instability
• One way to resolve the problem is to explicitly simulate any significant
small-scale motions and processes. This is called direct numerical
simulation (DNS). This would require grids where Δx ~ 0.1 - 1 m.
• DNS is impractical for NWP. Models now simulate large turbulent
eddies explicitly. This is called large-eddy simulations (LES).
• Reynolds averaging is the formalism which separates out the
resolvable and unresolvable scales of motion in the equations
themselves.
• We do so by splitting our dependent variables (u, T, q, etc.) into mean
(resolved) and turbulent (perturbation/unresolved) components, e.g.,
w w w w
s s
, Reynolds
s
w ds Averaging
s
, w ds , s x, y , z, or t .
w = w + w′ θ = θ + θ ′
where u ' w' and w' ' are called a vertical turbulent flux of
wθmomentum
horizontal = wθ + wand′θ ′ a+vertical
wθ ′ +turbulent
w ′θ heat flux,
respectively.
p po p1 ; ; po
g, (14.1.12)
∂t ∂x ∂y ∂z ∂z
o 1 o
z Grid-volume averaging: defined in (14.1.2).
Reynolds Stress
where
D
u v w ,
Closure Problem
Estimating those Reynolds stress terms is called the closure
problem
to close the system of equations to be solved we need to
decide how to formulate those fluxes IN TERM OF THE MEAN
VARIABLES!
Various levels of “closure”
1st order (diagnostic closures)
2nd order (prognostic closures)
3rd and higher (here be dragons….)
For all closures, you end up with “picking” some coefficients or
choosing an approach which approximates some process (often
poorly)
Here comes complexity!
Typical boundary layer evolution over land
neutral BL
Planetary Boundary Layer
convective BL
contact layer
capping inversion
surface layer
residual layers
boundary layer
?????
exchange coefficients or eddy diffusivities of heat and
water vapor, respectively.
a. Bulk Aerodynamic Parameterization
14.2.2 Modeling the PBL above the Surface LayerClosure Methods
The boundary layer is treated as a single slab and assume
In this approach, the turbulent flux terms in (14.1.3)-
(14.1.7) are written as,
⎟
C V cos ; C V sin ; , would do a better
⎝ ⎠ ∂z
2 2 2
u ' w' v ' w' w' ' CV
d d h
job for a convective boundary layer.
zo
i R
Cd, Ch now need to be specified! (14.2.15) (14.2.15)
whereC Cand
where d d and
C are are nondimensional
Ch nondimensional
h drag
drag and heat and heat
c. Turbulent kinetic energy (TKE or 1 1/2) closure scheme
transfer
transfer coefficients, respectively,
coefficients, respectively,
The TKE, (u'2 v'2 w'2 ) / 2 , is predicted, while the other
b. K-theory parameterization subgrid scale turbulent flux terms are diagnosed and
b. K-theory parameterization related to the TKE and to the grid-scale mean values.
In this approach, the turbulent flux terms in (14.1.3)-
(14.1.7) are written as, 11
e
V e V ' e (1 / ) ( u ' p ') x ( v ' p ') y ( w' p') z (g / ) ' w'
u v 11 q t
o o
u ' w' Km ; v' w' Km ; w' ' Kh ; w' q' Kq . (14.2.1) 1 2 3 4
z z z z
Explicit Microphysics
k
A cold-cloud (ice) bulk parameterization (Lin-Orville-
Dqv 1 2 Farley scheme)
mi ( PAUTO PDIFF ) mi qv , (14.3.4)
Dt i 1
In the bulk parameterization approach, each category of the The size distributions of rain ( qr ), snow ( qs ), and graupel
water substance is governed by its own continuity equation.
or hail ( qg ) are hypothesized as
The shape and size distributions are assumed a priori and
the basic microphysical processes are parameterized. N k ( D) N ok exp( k Dk ) , (14.3.6)
The water substance may be divided into six categories: (1) where k r, s, or g , N ok is based on observations,
water vapor, (2) cloud water, (3) cloud ice, (4) rain, (5) Dk is the diameter of the water substance, and
snow, and (6) grauple/hail (Orville 1980; Lin, Farley, and p is the slope parameter of the size distribution.
Orville 1983 - LFO scheme or Lin et al. scheme).
This type of distribution is called the Marshall-Palmer
Some basic microphysical processes: distribution (Marshall and Palmer 1948).
19
Accretion: Any larger precipitation particle overtakes and The slope parameters are given by
captures a smaller one. 0.25
k N ok
k
qk
,
Coalescence: The capture of small cloud droplets by larger
where k is the density of water, snow or graupel.
cloud droplets or raindrops.
Autoconversion: The initial stage of the collision– In general, the size distribution (14.3.6) includes the shape
coalescence process whereby 16
cloud droplets collide and factor and is written as
coalesce to form drizzle drops.
N k ( D) N ok Dk exp( k Dk ) , k = r, s, or g, (14.3.10)
Aggregation: The clumping together of ice crystals to form
snowflakes. where is called the shape parameter. Thus, there are 3
parameters or moments, N ok , k , , to be determined.
Riming: Droplets freeze immediately on contact of ice
crystal will form rimed crystal or graupel. If freezing is Following Kessler’s (1969) warm-rain scheme, the LFO
not immediate, it may form hail. scheme ((14.3.6) and Fig. 14.6) assumes spherical precipitation
particles ( 0 ) and that N ok is a contant, which yields a one-
moment scheme. If two of these parameters, such as N ok and
Microphysical Schemes
Various levels of complexity
Single moment
predict mixing ratio (lambda)
Fix N0, alpha (impacts reflectivity factor Z)
Double moment
predict mixing ratio, N0
alpha is fixed
“2.5” scheme: diagnose alpha from mean variables and type of particle
3 moment - predict q, N0 and Z.
Bin models
break distribution into “bins” (like 100-200 bins)
prediction of interactions between all bins
just now feasible for water and ice in 3D cloud models (Ted Manselll)
Examples
Microphysics schemes can be broadly
categorized into two types:
N(D) N(D)
DFW
LFM Grid Point (Δx ~ 190 km)! WRF Grid (Δx ~ 4 km)!
7 vertical levels 50 vertical levels
A ~35,000x increase in CPU due to grid! (really more like ~106 increase with physics changes)!
A typical forecast today (1 hour wallclock) would require > 5 years to run on a 1975 computer!
References/Attributions
http://www.mmm.ucar.edu/wrf/users/workshops/WS2010/
presentations/Lectures/morrison_wrf_workshop_2010_v2.pdf
http://www.atmos.illinois.edu/~snesbitt/ATMS597R/notes/
pbl.pdf
http://www.mesolab.us/2.EES_NWP/Ch5_Lecture_Note
%20(parameterizations).pdf
Jason Knievel (NWP and WRF model)
http://derecho.math.uwm.edu/classes/NWP/sec3-1.ppt
Parameterization Schemes (book), D. Stensrud
https://dl.dropboxusercontent.com/u/4017006/
Mesinger_ArakawaGARP.pdf
Initial and boundary conditions
the last three RHS terms are the unresolved turbulent fluxes