33
1 The surface and bottom boundary conditions for u, v, and w are: , , (1.1) ) ( 1 u m o F z u K z x P fv z u w y u v x u u t u + + ! = ! + + + " " " " " " # " " " " " " " " (1.2) ) ( 1 v m o F z v K z y P fu z v w y v v x v u t v + + ! = + + + + " " " " " " # " " " " " " " " "w "t + u "w "x + v "w "y + w "w "z = # 1 $ o "P "z # $' $ o g (1.3) (1.4) 0 = + + z w y v x u ! ! ! ! ! ! (1.5) ) ( ! " "! " " " "! " "! " "! " "! F z K z z w y v x u t h + = + + + (1.6) ) ( s h F z s K z z s w y s v x s u t s + = + + + ! ! ! ! ! ! ! ! ! ! ! ! ρ= ρ (θ, s ) (1.7) The governing equations with hydrostatic, incompressible, and Boussinesq approximations; H ζ 0 z y x ! + = H D ; ) , ( 1 ) , ( ) , , ( sy sx o t y x z m z v z u K ! ! " # # # # $ = = ; ) , , ( y v x u t w t y x z ! !" ! !" ! !" " + + = = ); , ( 1 ) , ( ) , , ( by bx o t y x z m z v z u K ! ! " # # # # $ = = ; ) , , ( y H v x H u w t y x z ! ! ! ! " # # = = ( " bx ," by ) = C d u 2 + v 2 ( u b , v b ); ! ! " # $ $ % & = 0025 . 0 , ) ln( / max 2 2 o ab d z z k C ( " sx ," sy ) = C s u 2 + v 2 ( u s , v s ); MAR513-Lecture 1: Governing Equations and Boundary Conditions and Turbulence Closures

MAR513-Lecture 1: Governing Equations and Boundary

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: MAR513-Lecture 1: Governing Equations and Boundary

1

The surface and bottom boundary conditions for u, v, and w are:

, ,

(1.1) )(1um

o

Fzu

Kzx

Pfv

zu

wyu

vxu

utu

++!=!+++""

""

""

#""

""

""

""

(1.2) )(1vm

o

Fzv

Kzy

Pfu

zv

wyv

vxv

utv

++!=++++""

""

""

#""

""

""

""

!

"w"t

+ u"w"x

+ v "w"y

+ w "w"z

= #1$o

"P"z

#$'$og (1.3)

(1.4) 0=++zw

yv

xu

!!

!!

!!

(1.5) )( !""!

""

""!

""!

""!

""!

Fz

Kzz

wy

vx

ut h +=+++

(1.6) )( sh Fzs

Kzz

sw

ys

vxs

uts

+=+++!!

!!

!!

!!

!!

!!

ρ = ρ (θ, s ) (1.7)

The governing equations with hydrostatic, incompressible, and Boussinesq approximations;

H

ζ

0

z y

x

!+= HD

;),(1),(),,(

sysxotyxz

m zv

zu

K !!"#

###

$

==

;),,( y

vx

ut

wtyxz !

!"!!"

!!"

"++=

=

);,(1),(),,(

bybxotyxz

m zv

zu

K !!"#

###

$

==

;),,( y

HvxHuw

tyxz !!

!!

"##=

=

!

("bx,"by ) = Cd u2 + v 2 (ub,vb ); !!"

#$$%

&= 0025.0,)ln(/max 22

o

abd z

zkC

!

("sx,"sy ) = Cs u2 + v 2 (us,vs);

MAR513-Lecture 1: Governing Equations and Boundary Conditions and Turbulence Closures

Page 2: MAR513-Lecture 1: Governing Equations and Boundary

2

!

"#"z z=$ (x,y,t )

=1

%cpKh

[Qn (x,y,t) &Qs(x,y,$,t)]

!

"#"z z=$H

=AH tan%Kh

"#"n

0

z l n

α

0=!

!

z"

nKA

z h

H

!

!=

!

! "#" tan

The surface and bottom boundary conditions for temperature are:

!

Qs(x,y,z,t) =Qs(x,y,",t)[Rez#"a + (1# R)e

z#"b ]

!

ˆ H (x, y,z,t) ="Qs(x, y,z,t)

"z=

Qs(x, y,#,t)$cp

[Ra

eza +

1% Rb

ezb ]

The absorption of downward irradiance is included in the temperature (heat) equation in the form of

The surface and bottom boundary conditions for salinity are:

!

"s"z z=# (x,y,t )

= 0

!

"s"z z=# (x,y,t )

=AH tan$Kh

"s"n

The kinematic and heat and salt flux conditions on the solid boundary:

0;0;0 =!

!=

!

!=

ns

nvn

" no flux conditions

Page 3: MAR513-Lecture 1: Governing Equations and Boundary

3

Answer: No! Horizontal and vertical diffusion coefficients are unknown. .

QS: We have 7 equations for u, v, w, s, θ, p and ρ. Is this model system closed?

Comments: The diffusion process in the ocean is dominated by turbulence mixing processes that are dependent of the time and space as well as fluid motion. There are not equations that could describe exactly the turbulence process

Page 4: MAR513-Lecture 1: Governing Equations and Boundary

4

Turbulence Closure Submodels

1. Horizontal diffusion coefficient: A Smagorinsky eddy parameterization method

222 )()(5.0)(5.0yv

yu

xv

xu

CA um !

!+

!

!+

!

!+

!

!"=

where C : a constant parameter; Ωu: the area of the individual momentum control element

222 )()(5.0)(5.0yv

yu

xv

xu

PC

Ar

h !

!+

!

!+

!

!+

!

!"=

#

a) for momentum:

b) for tracers:

where Ωζ : the area of the individual tracer control element; : the Prandtl number. rP

rP

rP

Page 5: MAR513-Lecture 1: Governing Equations and Boundary

5

2. The vertical eddy viscosity and thermal diffusion coefficient: a) The Mellor and Yamada (1982) level 2.5 (MY-2.5) q-ql turbulent closure model modified by ●  Galperin et al. (1988) to include the up- and low-bound limits of the stability function;

●  Kantha and Clayson (1994) to add an improved parameterization of pressure-strain convariance and shear instability-induced mixing in the strongly stratified region;

●  Mellor and Blumberg (2004) to include the wind-driven surface wave breaking-induced turbulent energy input at the surface and interval wave parameterization.

b) General Ocean Turbulent Model (GOTM) has become a very popular open-source community model (Burchard, 2002): include MY model and k-ε models.

●  The k-ε model: improved by Canuto et al., 2001to include the pressure-strain covariance term with buoyancy, anisotropic production and vorticity contribution. This modification shifts the cutoff of mixing from = 0.2 (original MY-2.5 model) to = 1.0.

Page 6: MAR513-Lecture 1: Governing Equations and Boundary

6

qqbs Fzq

Kz

PPzq

wyq

vxq

utq

+!

!

!

!+"+=

!

!+

!

!+

!

!+

!

! )()(222222

#

lqbs Fzlq

KzE

WPPlE

zlq

wylq

vxlq

utlq

+!

!

!

!+"+=

!

!+

!

!+

!

!+

!

! )()~

(2

11

2222

#

The Original MY-2.5 Model:

q u v2 2 2 2= ! + !( ) /

Here:

The turbulent kinetic energy

l The turbulent macroscale

])()[( 22

zv

zuKP ms !

!+

!

!= The shear turbulent production

P gKb h z o= ( ) /! ! The buoyancy turbulent production

ε = q3 /B1l The turbulent kinetic energy dissipation rate

lqKlqSKlqSK qhhmm 2.0,, ===

Page 7: MAR513-Lecture 1: Governing Equations and Boundary

7

!"

#$+=

%

%

%

%$

%

% GPzk

ztk

k

t )ˆ(

kc

kGcPc

zztt

2

231 )()ˆ( !!!"

#!

!

$+=%

%

%

%$

%

%

The k-ε Model (Burchard, 2001):

Here k is the same as q and νt is the same as Km in MY level 2.5 model

!" µ

2kct =

The MY level 2.5 model: US ocean modeling community; The k-ε model: European ocean modeling community.

Page 8: MAR513-Lecture 1: Governing Equations and Boundary

8

Comments: With empirical expressions of horizontal and vertical diffusion coefficients, the governing equations with boundary conditions are mathematically closed. However, these equations are not analytically solvable, because they are fully nonlinearly coupled.

Theoretical Oceanographers: simplify these equations and use them to explore the dynamics that drive the oceanic motions, mixing, and stratification for a century.

Examples: Geostrophic theory-explain the dynamics of the large-scale motion in the ocean Western boundary intensification theory Linear or nonlinear wave theories, etc

Coriolis force

Pressure gradient force

Ug

Analytical Solutions exist for special cases (linear or quasi-linear)

Page 9: MAR513-Lecture 1: Governing Equations and Boundary

9

Boundary Forcings:

1. External surface forcings:

Tides, Heat flux, wind stress, air pressure and precipitation via evaporation 2. External bottom flux:

Groundwater 3. Lateral boundary flux: River discharges

Page 10: MAR513-Lecture 1: Governing Equations and Boundary

Tidal forcing

On the right-hand side of the momentum equation, we need to add the gradient forcing of the tide-produced potential

!

"#$T

On the coastal ocean, it include the progressive wave boundary conditions consisting of tidal elevation (amplitudes and phases) from the open ocean.

In the most of the coastal and estuarine regions, the tide-produced potential is very small. In these regions, the tide can be simulated as the surface waves generalized at the open boundary

Page 11: MAR513-Lecture 1: Governing Equations and Boundary

Qs: The short wave energy radiated from the sun (the shortwave radiation) Qb: The net long-wave energy radiated back from the ocean (the longwave radiation); Qe: The heat loss by evaporation (latent heat flux); Qh: The sensible heat loss by conduction; Qv: The heat transfer by currents (advection and convection)

Surface Heating/Cooling

Qs

Qb

Qh

Qe Qv Redistribute the heat

Page 12: MAR513-Lecture 1: Governing Equations and Boundary

12

Vertical Penetration of Solar Radiation

!

Qs(x,y,z,t) =Qs(x,y,",t)[Rez#"a + (1# R)e

z#"b ]

Qs

R, a and b depend on the water conditions. The penetration depth is large in the open ocean than the coastal ocean, in the clear water than the turbid water. It also varies with the plankton distribution. In the dense concentration area of plankton, the vertical penetration of solar irradiance is limited.

QS. How could we determine these parameters in an ocean model?

Page 13: MAR513-Lecture 1: Governing Equations and Boundary

13

Wind forcing and Air Pressure

Wind measurement

hm 10 m

!

!

! " = cd |

! v 10 |! v 10

The surface wind stress is calculated using the wind velocity at the 10-m height above the sea surface:

L

When we study the impact of cyclone or anti-cyclone on the ocean circulation, we also need to add the air pressure gradient forcing on the right-hand side of the momentum equations

!

"1#$Pa

Page 14: MAR513-Lecture 1: Governing Equations and Boundary

14

Precipitation via Evaporation

!

w =d"dt

=#"#t

+ u#"#x

+ v#"#y

With no precipitation via evaporation, the air-sea surface can be treated as a material surface. It means that all parcels at that surface remains there for ever. The vertical velocity at the sea surface is equal to the change of the surface elevation

!

w =d"dt

+P # E$

=%"%t

+ u%"%x

+ v%"%y

+P # E$

With precipitation via evaporation, the air-sea surface is not a material surface anymore. The vertical velocity at the sea surface is equal to the change of the surface elevation plus the P-E flux.

Page 15: MAR513-Lecture 1: Governing Equations and Boundary

15

Groundwater Flux

!

w = "u#H#x

" v#H#y

+Qb

H

With no groundwater, the vertical velocity is characterized by the flow along the bottom topography. With groundwater flux, the vertical velocity changes due to the bottom flux.

Qb

Page 16: MAR513-Lecture 1: Governing Equations and Boundary

16

River Discharge

yg ∂∂− /ζ

u

v

River

Shelf

fu

xg ∂∂− /ζfv

The river discharge is added into the model as the lateral flux condition.

In the coastal region, the significant amount of freshwater enters the coastal region as non-point source. For example, the ice melting in spring, the wetland flux, etc. How to capture these water flux in a model is really challenging.

Page 17: MAR513-Lecture 1: Governing Equations and Boundary

17

QS: How long ago did the idea for using numerical method to solve the partial difference equations appear?

A century ago? However, it has not been widely used until 70’s because of the limitation of computation capability.

QS: Who was the earliest modeler who devoted his life time on developing ocean model?

Dr. Kirk Bryan: Retired professor at Princeton University, who was named as the founding father of numerical ocean modeling. The Princeton General Circulation Model (GCM)-60’s

Professor Allan Robinson: Harvard University: Quasi-geostrophic ocean model-80’s

Dr. George Mellor: Princeton University: POM-later 80’s

Page 18: MAR513-Lecture 1: Governing Equations and Boundary

18

QS: Why do we need to learn the numerical method since the future models could be operated like a Microsoft Window? QS: There are so many mature ocean model available, so we could easily get one and run it as a black box. Why do we need to learn the basic principal used in numerical models? QS: What is the best way to learn the numerical method?

Page 19: MAR513-Lecture 1: Governing Equations and Boundary

Mathematical Classification of Flows and Water Mass Equations

1.  Hyperbolic equations-----e.g.:

2.  Parabolic equations----e.g.:

3.  Elliptic equations---e.g.: .

4.  Advective equation—e.g:

02

22

2

2

=!

!"

!

!

xF

CtF

02

2

=!

!"

!

!

xF

AtF

),(2

2

2

2

yxGyF

xF

=!

!+

!

!

0=!

!+

!

!

xF

utF

QS. Could we find examples of these 4 types of equations in the ocean science?

Page 20: MAR513-Lecture 1: Governing Equations and Boundary

Example for a hyperbolic equation: Oceanic waves

Considering a 1-D linear surface gravity wave:

!"

!#

$

%

%&=

%

%%

%&=

%

%

(2) equation Continuity

(1) equation momentum- x

xuH

t

xg

tu

'

'

!

""t(2)# "

"t"$"t

= %H"u"x

&

' ( )

* + #

"2$"t 2

= %H""x("u"t) = gH

"2$"x 2

!

"2#"t 2 $ gH

"2#"x 2 = 0 % A typical hyperbolic equation!

Solving these 2 equations for ζ:

then,

where speed Phase gHC =

Page 21: MAR513-Lecture 1: Governing Equations and Boundary

Example for a parabolic equation: Heat diffusion equation

Ah Fz

Kz

wy

vx

ut

+!

!=

!

!+

!

!+

!

!+

!

!2

2"""""

Then, we get

equation parabolic A typical 2

2

!"

"=

"

"

zK

t h##

Using the scaling analysis, we could find that the diffusion time scale is

hKHT2

~

Page 22: MAR513-Lecture 1: Governing Equations and Boundary

Example for an elliptical equation: Pressure equation

!!!

"

!!!

#

$

=%

%+

%

%

&%

%&=+

%

%

&%

%&=&

%

%

equationcontinuityibleIncompressHorizontalyv

xu

equationmomentumyyPfu

tv

equationmomentunxxPfv

tu

o

o

0

1

1

'

'

0)1()1(0)()(0)( =!"

"!

"

"++

"

"!

"

"#=

"

"

"

"+

"

"

"

"#=

"

"+

"

"

"

"fu

yP

yfv

xP

xtv

ytu

xyv

xu

t oo $$

Solving for P,

equation elliptical A typical 2

2

2

2

!""#

$%%&

'

(

()

(

(=

(

(+

(

(

yu

xv

fyP

xP

o*

Then, we get

Page 23: MAR513-Lecture 1: Governing Equations and Boundary

Example for an advective equation: Heat transport equation

0=!

!+

!

!

xu

t""

This means that the local change of the water temperature is caused by the replacement of water advected from upstream direction

x

20o 18o 16o 14o

u > 0

0 and 0 because 0 <!

!>>

!

!"=

!

!

xu

xu

t###

Page 24: MAR513-Lecture 1: Governing Equations and Boundary

Classification of Discretization Methods

v  Finite-difference methods---Oldest methods

v  Finite-element methods----Popular in the last 10 years

v  Finite-volume methods---New Methods

Page 25: MAR513-Lecture 1: Governing Equations and Boundary

FEM

AreaCdyfdxdyxf *==!

!"""

FVM

0)ˆ

( =!"

"## C

xf

wl

Cxf=

!

!

FDM

Cxff

xf ii =

!

"=

#

# +1

i+1 i

Δx

Difference Variation Integration

Difference between finite-difference, finite-element and finite-volume methods (FDM, FEM, and FVM)

Page 26: MAR513-Lecture 1: Governing Equations and Boundary

Advantage: Disadvantage:

FDM 1.  Computational efficiency 2.  Simple code structures 3.  Mass conservation

Irregular geometric matching

FEM Irregular geometric matching 1.  Mass conservation 2.  Complex code structures 3.  Computational inefficiency

FVM Combined the advantages of FDM and FEM

??

FDM FEM and FVM

Page 27: MAR513-Lecture 1: Governing Equations and Boundary

Key Properties of Numerical Methods

1. Consistency

Definition: The discretization should approach the exact function as the discrete interval approach zero.

Example: F(x)

x!

x1 x2 x3 x4 x5... xn

Space interval: F(x1) F(x2) F(x3)

F(x4) F(x5)

x

{ } )()( xFxiFi ! 0!"xas

Page 28: MAR513-Lecture 1: Governing Equations and Boundary

2. Stability

Definition: A numerical method is defined to be stable if the numerical solution does not grow up an unreasonable big value or becomes infinite during the time integration.

f(t)

t o

blows up !

Comments: A stable model does not means that is mass conservative.

Depending on: 1) time step/space resolution (linear), mass conservation and boundary conditions, etc

Page 29: MAR513-Lecture 1: Governing Equations and Boundary

3. Convergence

A numerical method is defined to be convergent if the numerical solution of the discretization equation tends to reach the exact solution of the differential equation as grid spacing approaches zero.

f(t) Oscillation

Exact value

t

Convergence Non-convergence!

Page 30: MAR513-Lecture 1: Governing Equations and Boundary

4. Conservation

The flow and water mass in the ocean follow the conservation laws. This means that in the absence of sources and sinks, the mass in local individual or global entire computational region should be conservative with a zero net flux into or out of the domain.

Ø  Finite-difference models: rectangular grids: conservative if specified care is made;

Ø  Finite-element models: Probably conservative over the entire domain but not individual element

Ø  Finite-volume models: Guarantee the mass conservation!

Page 31: MAR513-Lecture 1: Governing Equations and Boundary

For the realistic application, there are bounds for flows and water masses. For example, the turbulent kinetic energy always remains positive. Currents, temperature and salinity, etc should have a maximum and a minimum values in individual volume. Boundedness means here that numerical solution should be within these values.

Examples:

0

35

U > 0

x Δx

035035<

!"=

!

""=

!

!"=

!

!

xU

xU

xs

Uts

But the bounded minimum value is 0!

5. Boundedness

Depends on 1) Computer round off; 2) Order of Approximation

Comments: High order approximation scheme could easily cause the boundedness problem.

Page 32: MAR513-Lecture 1: Governing Equations and Boundary

6. Realizability

Many processes in the ocean are too complex to have an exact solution which, we believe, is absolutely correct. For example, no one could say that the MY 2.5 turbulence closure model is sufficiently enough to describe the turbulence in the ocean, though we found it works for many cases. A numerical method should be developed with caution in considering resolving the reality.

Examples

Tidal simulation: The time ramping. Similar: wind or other forcing.

Page 33: MAR513-Lecture 1: Governing Equations and Boundary

7. Accuracy

Once the equations are discretized and solved numerically, they only provided an approximate solution. The accuracy of this solution depends on grid resolution and the orders of the approximation.

Coarse grids: low accuracy High order approximation: high accuracy but probably cause boundedness problems.

Examples: