Document

Lecture 6: Open Boundaries
Let us first consider the ocean is incompressible, which satisfies
u v w
 
0
x y z
Integrating (6.1) from –H to  , we have


(6.1)
Open boundary
Solid wall

0
u
v
dz

 H x H y dz  w z   w  H  0
H
(6.2)
d
dt
For a steady flow, we have
Rewriting (6.2) into a flux form, we have







u
dz

v
dz

0


x  H
y  H
t
(6.3)
 udz  constant
H
Because u = 0 at the solid wall, so at the OB,
Considering a 2-D case with x-z only



u
dz

0
x H
t

udz  0
x H

(6.4)
 udz  0
H
(6.5)
For an unsteady flow



u
dz

0

x  H
t
(6.4)
If we could determine the flux at the OB, we should be able to calculate the temporal change of the
surface elevation;
Or in turn, if we know the temporal change of the sea level, we should be able to determine the flux
at OB.
Example
u

 g
t
x

u
 H
t
x
(6.6)
OB
Differencing (6.6) using the central difference
method for space, we get at OB
 Nn 1   Nn 1
u
 g
t
2x
u Nn 1  u Nn 1

 H
t
2x
N-3
N-2
N-1
N
There are no sufficient information to determine the
current and surface elevation at OB!
If one uses the first order “backward” scheme for space, we could get
 Nn   Nn 1
u
 g
t
x
u Nn  u Nn 1

 H
t
x
You have the enough information to determine the
current and surface elevation at OB, but works only
when the wave propagates toward the OB from the
interior!
If one uses the staggered grid like

Once the surface elevation at OB is
determined, one could easily determine
current at the velocity point closest to OB!
u

u

u

OB
N-3
N-2
N-1
N
QS.1: How could we determine the surface elevation at OB?
For tidal forcing, we could specify it from the observational data, but for wind-driven circulation, we
don’t know its value at OB
QS.2: If we have to specify the OB value, what principal do we need to follow?
1) Mass conservation, 2) No reflection or minimizing reflection (regarding waves).
1. Periodic OBC
k=N
k =1
If we know the wave length and also know the temporal change of the sea level (or current) at k
=1 is the same as that at k = N, we can simply the OBC to be
 kn1   kn N
Periodic condition
QS: Could you give me some examples you could use this condition in the ocean modeling?
2. Radiation OBCs
t  cx  0
(6.7)
where c is the phase speed, and  can be either sea surface elevation or the cross OB velocity. The
positive sign is used for the right open boundary at (x = W) and negative sign is used for the left open
boundary at (x = 0)
Choice 1: Clamped (CLP) (Beardsley and Haidvogel, 1981)
Bn1  0
 0
(6.8)
Consider a wave of unit amplitude travelling in the + x direction with frequency  and wavenumber k,
where t = n∆t and x = j∆x
 jn  ei (nt kjx)
The sum of the incident and reflected
waves at OB equals to
 jn  ei (nt kjx)  Rei (nt kjx)
For CLP,
R  1
Incident wave
OB
(6.9)
Reflected wave
100% reflected!
 jn  R ei (nt kjx )
Choice 2: Gradient (GRD)
x  0
Bn1  Bn11
(6.10)
Let us discuss the reflection rate of GRD, and the sum of the incident and reflected waves at OB is
given as
 jn  ei (nt kjx)  Rei (nt kjx)
Applying it into (6.10) and considering the OB at x =0, we have
e i ( n1) t   R e i ( n1) t  e i[ ( n1) t  kx ]   R e i[ ( n1) t kx ]

e i ( n1) t 1   R   e i ( n1) t e ikx   R e ikx
(1  e ikx )
ikx
R  

e
(1  e ikx )

(6.10)
Choice 3: Gravity-wave radiation: Explicit (GWE)
t  c x  0;
c  gH
The difference form of this condition is given as
 Bn1   Bn
t
c
 Bn   Bn1
x
 0;
  Bn 1   Bn   ( Bn   Bn1 ) ;

ct
x
Using the same method shown in choices 1 and 2, we can obtain
e it  1   (1  e ikx )
 R   it
e
 1   (1  e ikx )
It follows that the GWE is not free-reflected scheme.
(6.11)
Choice 4: Gravity-wave radiation: Implicit (GWI)
t  c x  0;
c  gH
The difference form of this condition is given as
 Bn1   Bn
t
c
 Bn1   Bn11
x
 0;
  Bn 1  ( Bn   Bn11 ) /(1   ) ;

ct
x
Using the same method shown in choices 1 and 2, we can obtain
e it  (1  e it ikx ) /(1   )
 R   it
e
 (1  e it ikx ) /(1   )
Changing into the implicit scheme does not help to reduce the reflection!
(6.12)
Choice 5: Partially Clamped-Explicit (PCE)
t  c x  

Tf
c  gH
The difference form of this condition is given as
 Bn 1   Bn
t
c
 Bn   Bn1
x
φBn
- ;
Tf
  Bn 1  (1 
t n
) B   ( Bn   Bn1 ) ;
Tf
Using the same method shown in choices 1 and 2, we can obtain
t
Tf
t
 1   (1  e ikx ) 
Tf
e it  1   (1  e ikx ) 
R  
e it
One could adjust T f to reduce the reflection.
(6.12)

ct
x
Choice 6: Partially Clamped-Implicit (PCI)
t  c x  

Tf
c  gH
The difference form of this condition is given as
 Bn 1   Bn
t
c
 Bn 1   Bn11
x
φBn
- ;
Tf
  Bn 1  [(1 
t n
) B   Bn1 ]/(1   ) ;
Tf
Using the same method shown in choices 1 and 2, we can obtain
t
 e it ikx ) /(1   )
Tf
t
 (1 
 e it ikx ) /(1   )
Tf
e it  (1 
R  
e it
One could adjust T f to reduce the reflection.
(6.13)

ct
x
Choice 7: Orlanski Radiation: Explicit (ORE)
t  c x  0
c  gH
Assume that
 x

 t
 
c   t
 x

 0

 t x

 x t

x
if 0   t 
 x t

if  t  0
x
if 
1

  C L
0

if C L  1
if 0  C L  1
if C L  0
CL 
 Bn12   Bn1
 Bn1   Bn12  2 Bn12
 Bn1  [(1   ) Bn1  2 Bn1 ] /(1   )
The reflection rate for ORE is
R  0
(6.14)
Choice 8: Orlanski Radiation: Implicit (ORI)
t  c x  0
c  gH
The finite-difference scheme, c and  are the same as ORE, except
 Bn11   Bn11
C L  n 1
 B 1   Bn11  2 Bn 2
The reflection rate for ORI also is
R  0
(6.14)
Theoretically speaking, ORE and ORI are the best methods with no reflection. However, because
many numerical errors are nonlinear coupled with momentum and tracer equations, ORE or ORI
Does not guarantee no reflections all the time.
Sponge layer
Add a sponge layer at the open boundary to dissipate the reflected energy. It is really a frictional
layer which damps both incident and reflected waves.
r  rmax
r  ax  b; 
 r 0
x  xB
x  xB
x  xI
Sponge layer
Therefore,
r
OBC
rmax
( x  xI )
( xB  xI )
You can also different form of the friction, for example, exponentially function, etc.
Note: the sponge layer tends to absorb all the waves into this layer, which includes both true
incident waves plus numerical reflected waves. If the sponge coefficient is too big, it would
destroy the numerical solution in the interior. Therefore, the sponge layer should only be used to
improve the open boundary radiation boundary condition!
As
kx and t  0
Reflection rate approaches zero.
GWE
=0.5
In general, however, the reflection rate depends
on the incident frequency and wavenumber as
well as the numerical grid space and time step.
For GWE and GWI, the minimum reflection is
along the line of
GWI
=0.5
t  kx    ck
When the phase speed of the incident wave is equal
to the assumed phase speed of the OBC, the
reflection is minimum.
There is always some reflection on the phase line,
which is due to the numerical dispersion.
GWE
=1.0
W = 160 km
Numerical experiments: Barotropic relaxation
∆x and ∆y = 10 km
(m  4) sin 2 [ ( j  jm  5) / 10]  4  j  jm  4; 5  m  11
 jm (t  0)  
0
otherwise

where jm is the grid point in the middle of the
numerical domain and y = m ∆y
L = 105 km
CLP
PCI
ORI
Total energy plot:
GRD
Dashed line: the solution with perfectly transparent
cross-shelf boundaries;
MOI
Solid line: the numerical solution.
GWI
SPO
Sea level
Friction roles in reducing the rms errors
Consider the wind stress
 sx ru
ut 

 h
Solution is
h sx
u
(1  e rt / h )
r
This suggests an adjustment time
of h/r for u to reach a steady
state.
With an assumption of the
geostrophic balance in the
alongshelf directon:
f sx
 ( y)  
gr
y
 (1  e
L
 rt / h
)dy
Consider a cross-shelf wind case with
 sy  1 dyn/cm 2
True solution: Along the infinite long coast,
the response consists of oscillations due to
gravity waves which radiate away from the
coast leaving a steady state setup of sea
surface elevation at the coast.
What do you find from the right side
figures?