21
Lecture 6: Open Boundaries Solid wall Open boundary 0 z w y v x u irst consider the ocean is incompressible, which satisfies (6.1) H tegrating (6.1) from –H to , we have 0 H z H H w w dz y v dz x u (6.2) dt d 0 0 t dz v y dz u x H H writing (6.2) into a flux form, we have (6.3) Considering a 2-D case with x-z only 0 t dz u x H (6.4) For a steady flow, we have 0 dz u x H consta dz u H Because u = 0 at the solid wall, so at th 0 dz u H (6.5)

Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H Integrating (6.1) from

Embed Size (px)

Citation preview

Page 1: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Lecture 6: Open Boundaries

Solid wallOpen boundary

0

z

w

y

v

x

u

Let us first consider the ocean is incompressible, which satisfies

(6.1)

H

Integrating (6.1) from –H to , we have

0

HzHH

wwdzy

vdz

x

u

(6.2)

dt

d

0

0

t

dzvy

dzux HH

Rewriting (6.2) into a flux form, we have

(6.3)

Considering a 2-D case with x-z only

0

t

dzux H

(6.4)

For a steady flow, we have

0

dzux H

constant

dzuH

Because u = 0 at the solid wall, so at the OB,

0

dzuH

(6.5)

Page 2: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

0

t

dzux H

For an unsteady flow

(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.

N-3 N-2 N-1 N

OB

Example

x

uH

t

xg

t

u

(6.6)

x

uuH

t

xg

t

u

nN

nN

nN

nN

2

2

11

11

Differencing (6.6) using the central difference method for space, we get at OB

There are no sufficient information to determine the current and surface elevation at OB!

Page 3: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

x

uuH

t

xg

t

u

nN

nN

nN

nN

1

1

If one uses the first order “backward” scheme for space, we could get

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

N-3 N-2 N-1 N

OB

u u u Once the surface elevation at OB is determined, one could easily determine current at the velocity point closest to OB!

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).

Page 4: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

1. Periodic OBC

k =1 k = N

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

nNk

nk 1 Periodic condition

QS: Could you give me some examples you could use this condition in the ocean modeling?

Page 5: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

2. Radiation OBCs

0 xt c

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)

(6.7)

Choice 1: Clamped (CLP) (Beardsley and Haidvogel, 1981) 0 01 n

B

OB)( xkjtnin

j e

Consider a wave of unit amplitude travelling in the + x direction with frequency and wavenumber k, where t = n∆t and x = j∆x

)( xkjtniR

nj e

Reflected wave

Incident wave

The sum of the incident and reflected waves at OB equals to

)()( xkjtniR

xkjtninj ee

For CLP,

(6.9)

(6.8)

1R 100% reflected!

Page 6: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Choice 2: Gradient (GRD)

0x 11

1 nB

nB

)()( xkjtniR

xkjtninj ee

Let us discuss the reflection rate of GRD, and the sum of the incident and reflected waves at OB is given as

])1([])1([)1()1( xktniR

xktnitniR

tni eeee

xikR

xiktniR

tni eeee )1()1( 1

Applying it into (6.10) and considering the OB at x =0, we have

(6.10)

xikxik

xik

R ee

e

)1(

)1( (6.10)

Page 7: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Choice 3: Gravity-wave radiation: Explicit (GWE)

gHcc xt ;0

x

tc

xc

tnB

nB

nB

nB

nB

nB

nB

nB

; )( 0; 111

1

The difference form of this condition is given as

Using the same method shown in choices 1 and 2, we can obtain

)1(1

)1(1xikti

xikti

R ee

ee

(6.11)

It follows that the GWE is not free-reflected scheme.

Page 8: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Choice 4: Gravity-wave radiation: Implicit (GWI)

gHcc xt ;0

x

tc

xc

tnB

nB

nB

nB

nB

nB

nB

; )1/()( 0; 1

11

11

11

The difference form of this condition is given as

Using the same method shown in choices 1 and 2, we can obtain

)1/()1(

)1/()1(

xiktiti

xiktiti

R ee

ee(6.12)

Changing into the implicit scheme does not help to reduce the reflection!

Page 9: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Choice 5: Partially Clamped-Explicit (PCE)

gHcT

cf

xt

x

tc

T

t

T

φ

xc

tnB

nB

nB

f

nB

f

nB

nB

nB

nB

nB

; )()1( ;- 1

111

The difference form of this condition is given as

Using the same method shown in choices 1 and 2, we can obtain

(6.12)

One could adjust to reduce the reflection.

f

xikti

f

xikti

R

T

tee

T

tee

)1(1

)1(1

fT

Page 10: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Choice 6: Partially Clamped-Implicit (PCI)

gHcT

cf

xt

x

tc

T

t

T

φ

xc

tnB

nB

f

nB

f

nB

nB

nB

nB

nB

; )]/(1)1[( ;- 1

111

11

The difference form of this condition is given as

Using the same method shown in choices 1 and 2, we can obtain

(6.13)

One could adjust to reduce the reflection. fT

)1/()1(

)1/()1(

xikti

f

ti

xikti

f

ti

R

eT

te

eT

te

Page 11: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Choice 7: Orlanski Radiation: Explicit (ORE)

gHcc xt 0

Assume that

The reflection rate for ORE is

0 if0

0 if

if

x

t

x

t

x

t

t

xt

x

t

x

cx

t

0 if0

10 if

1 if1

L

LL

L

C

CC

C

12

211

121

2

nB

nB

nB

nB

nB

LC

)1/(]2)1[( 111 n

BnB

nB

0R (6.14)

Page 12: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Choice 8: Orlanski Radiation: Implicit (ORI)

gHcc xt 0

The finite-difference scheme, c and are the same as ORE, except

The reflection rate for ORI also is

nB

nB

nB

nB

nB

LC2

11

11

11

11

2

0R (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 ORIDoes not guarantee no reflections all the time.

Page 13: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

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.

Bxx

OBC

Sponge layer

I

B

xxr

xxrrbaxr

0; max

)()(

maxI

IB

xxxx

rr

Therefore,

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!

Page 14: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

0t and xk

As

Reflection rate approaches zero.

In general, however, the reflection rate depends on the incident frequency and wavenumber as well as the numerical grid space and time step.

GWE=0.5

GWI=0.5

GWE=1.0

For GWE and GWI, the minimum reflection is along the line of

ckxkt

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.

Page 15: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Numerical experiments: Barotropic relaxation

∆x and ∆y = 10 km

L = 105 km

W = 160 km

otherwise0

115;44]10/)5([sin)4()0(

2 mjjjjmt mm

jm

where jm is the grid point in the middle of the numerical domain and y = m ∆y

Dashed line: the solution with perfectly transparent cross-shelf boundaries;

Solid line: the numerical solution.

CLP

GRD

GWI

PCI

ORI

MOI

SPO

Total energy plot:

Page 16: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Sea level

Page 17: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Friction roles in reducing the rms errors

Page 18: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Consider the wind stress

h

ruu

xs

t

Solution is

)1( / hrtxs er

hu

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:

dyegr

fy

y

L

hrtxs )1()( /

Page 19: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from
Page 20: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from

Consider a cross-shelf wind case with

2dyn/cm 1ys

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?

Page 21: Lecture 6: Open Boundaries Solid wall Open boundary Let us first consider the ocean is incompressible, which satisfies (6.1) H  Integrating (6.1) from