Professional Documents
Culture Documents
Climate Modelling
3rd year, SA Bachelor
1
31/08/21
à first-order accuracy
à The truncation error is of the order of Δx, that is, O(Δx), which
corresponds to the largest term we neglected in the approximation
2
31/08/21
Higher-order derivatives
Q2. Find a simple way to approximate
3
31/08/21
à
4
31/08/21
Second derivative
Q5. Find A, B, and C such that:
i.e. the terms of order (Δx)3, (Δx)4, and (Δx)5 are zero
10
5
31/08/21
2. f(x,y)=(x2+y2)1/2
11
6
31/08/21
13
A 5-point diamond stencil
14
7
31/08/21
9-point stencil
A 9-point stencil
16
8
31/08/21
17
18
9
phere, they mediate the condensation of water vapor that level, it is sometimes used
in the atmospheric branch of the hydrologic cycle, nate in lieu of height. In terms
they participate in and serve as sites for important level, situated at a height of a
chemical reactions, and they give rise to electrical sea level, is 31/08/21
roughly halfway
charge separation and a variety of atmospheric opti- atmosphere.
cal effects.
Density decreases with height
Practice#3 with Python as pressure. These vertical varia
1.3.4 Vertical structure
1. Vertical structure of the atmosphere density are much larger than the
To within a few percent, the density of air at sea level zontal and time variations. H
• Write a program to calculate (approximately) the air density at
is 1.25 kg m . Pressure p and density " decrease
!3
different atmospheric levels by using forward, backward, define a standard atmosphere, w
nearly exponentially with height, i.e.,
centered difference methods, etc., given the pressure: horizontally and temporally av
the atmosphere as a function of
# H
p " p0e!z
(1.8) in Fig. 1.8. The nearly exponentia
of pressure and density can be i
where H=8000(m); g=9.8 m/s 2; p =1000.; Z=0., 1000., …9000.;
where H, the e-folding depth,0 is referred to as the that the observed vertical prof
dz=1000.
scale height and p0 is the pressure at some reference density on these semilog plo
• Compare the obtained simulation results with the analytical
level, which is usually taken as sea level (z# 0). In straight lines. The reader is
results.
the lowest 100 km of the atmosphere, the scale height Exercise 1.14 at the end of this
• Use a 4-order difference approximation to solve the problem
ranges roughly from 7 to 8 km. Dividing Eq. (1.8) by responding 10-folding depth for
p0 and taking the natural logarithms yields is !17 km.
• 4Solution:
th-order accurate formula
Let pm be the pressure level that half
80
the mass of the atmosphere lies above and half lies
3. below.
f(x,y)=(x +y2)1/2; 1≤x≤2; 1≤y≤2, dx=y=0.1
The 2pressure at the Earth’s surface is equal 60
to the weight (per unit area) of the overlying col-
• compute the Laplacian of f using the different
umn of air. The same is true of the pressure at
40