MAR513-Lec.8: Non-Hydrostatic Dynamicsfvcom.smast.umassd.edu/.../MAR513_Lecture-8.pdf · 2012. 9....

Post on 25-Aug-2020

5 views 0 download

Transcript of MAR513-Lec.8: Non-Hydrostatic Dynamicsfvcom.smast.umassd.edu/.../MAR513_Lecture-8.pdf · 2012. 9....

MAR513-Lec.8: Non-Hydrostatic Dynamics What is the difference between hydrostatic and non-hydrostatic?

Why the current ocean models are based on hydrostatic approximation? (1) Numerical consideration

There is no explicit time-marching equation for pressure P !

umo

FzuK

zxPfv

zuw

yuv

xuu

tu

+∂

∂+

∂−=−

∂+

∂+

∂+

∂ )(1ρ

vmo

FzvK

zyPfu

zvw

yvv

xvu

tv

+∂

∂+

∂−=+

∂+

∂+

∂+

∂ )(1ρ

wmoo

FzwK

zg

zP

zww

ywv

xwu

tw

+∂

∂+−

∂−=

∂+

∂+

∂+

∂ )(1ρρ

ρ

(8.1)

(8.2)

(8.3)

(8.4)

0=∂

∂+

∂+

zw

yv

xu

The solution form of pressure P is obtained by substituting Eqs. (8.2)-(8.4) into Eq. (8.1) and it generally can be written as:

RHSzP

yP

xP

=∂

∂+

∂+

∂2

2

2

2

2

2

Too expensive to compute!

MAR665-Lec.8: Non-Hydrostatic Dynamics

(2) Physical consideration

x

yz

x

z

NON-HYDROSTATIC L

HYDROSTATIC

Scaling analysis: (1) general, H/L ≤ 1; (2) stratification, (U/L)/N ≤ 1

The large-scale circulations computed by ocean models are basically hydrostatic !

“Adopted from Marshall et al. (1997)”

MAR665-Lec.8: Non-Hydrostatic Dynamics

What the hydrostatic approximation means for Eqs. (8.1)-(8.4)?

0=∂

∂+

∂+

zw

yv

xu

umo

FzuK

zxPfv

zuw

yuv

xuu

tu

+∂

∂+

∂−=−

∂+

∂+

∂+

∂ )(1ρ

vmo

FzvK

zyPfu

zvw

yvv

xvu

tv

+∂

∂+

∂−=+

∂+

∂+

∂+

∂ )(1ρ

gzP

ρ−=∂

Hydrostatic 0=

∂+

∂+

zw

yv

xu

umo

FzuK

zxPfv

zuw

yuv

xuu

tu

+∂

∂+

∂−=−

∂+

∂+

∂+

∂ )(1ρ

vmo

FzvK

zyPfu

zvw

yvv

xvu

tv

+∂

∂+

∂−=+

∂+

∂+

∂+

∂ )(1ρ

wmoo

FzwK

zg

zP

zww

ywv

xwu

tw

+∂

∂+−

∂−=

∂+

∂+

∂+

∂ )(1ρρ

ρ

Non-hydrostatic

If defined: qPPP Ha ++=

Pa : atmospheric pressure PH: hydrostatic pressure and q : non-hydrostatic pressure

∫+=⇒−=∂

∂ 0

0 z

HH dzggpgzp

ρζρρ

0=∂

∂+

∂+

yvD

xuD

umoo

FzuK

zxB

xfv

zuw

yuv

xuu

tu

+∂

∂+

∂−

∂−=−

∂+

∂+

∂+

∂ )(11ρ

ζρ

vmoo

FzvK

zyB

yfu

zvw

yvv

xvu

tv

+∂

∂+

∂−

∂−=+

∂+

∂+

∂+

∂ )(11ρ

ζρ

MAR665-Lec.8: Non-Hydrostatic Dynamics

How to solve non-hydrostatic equations (8.1)-(8.4) ?

(1) Streamfunction/vorticity method see the work of Shen and Evans (2004, JCP) and Scotti et al. (2007,

JGR). But this method only works for 2D case! (2) Artificial compressibility method (Chorin, 1967, JCP)

(3) Fractional-step method (Chorin, 1968, Math. Comp.) A nice discussions of the methods including the projection, pressure

correction and iteration method is given by Armfield and Street (2002, Int. J. Numer. Methods Fluids).

iiit Fpu +−∂=∂

ρt∂ 0=∂+ jju( )

δρ /=p : the artificial compressibility δ

MAR665-Lec.8: Non-Hydrostatic Dynamics

The derivation of fractional-step method: Step1: time split of the half-discretized momentum equations

xqflux

tuu

u

nn

∂−−=

Δ

−+

ρ11

yqflux

tvv

v

nn

∂−−=

Δ

−+

ρ11

zqflux

tww

w

nn

∂−−=

Δ

−+

ρ11

xqflux

tuu n

nu

n

∂−−=

Δ

ρ1*

yqflux

tvv n

nv

n

∂−−=

Δ

ρ1*

zqflux

tww n

nw

n

∂−−=

Δ

ρ1*

yq

tvvn

∂−=

Δ

−+ '1*1

ρ

xq

tuun

∂−=

Δ

−+ '1*1

ρ

zq

twwn

∂−=

Δ

−+ '1*1

ρ

yq

tvv nn

∂−=

Δ

− ++ 11 1*ρ

xq

tuu nn

∂−=

Δ

− ++ 11 1*ρ

zq

tww nn

∂−=

Δ

− ++ 11 1*ρ

nu

n

fluxtuu

−=Δ

−*

nv

n

fluxtvv

−=Δ

−*

nw

n

fluxtww

−=Δ

−*

'1 qqq nn +=+

Projection method Pressure correction (iterative)

method

MAR665-Lec.8: Non-Hydrostatic Dynamics

Step2: predict the intermediate velocity field

xqtfluxtuun

nu

n

∂Δ−⋅Δ−=ρ

*

yqtfluxtvvn

nv

n

∂Δ−⋅Δ−=ρ

*

zqtfluxtwwn

nw

n

∂Δ−⋅Δ−=ρ

*

nu

n fluxtuu ⋅Δ−=*

nv

n fluxtvv ⋅Δ−=*

nw

n fluxtww ⋅Δ−=*

Projection method Pressure correction (iterative ) method

A key issue here is the B.C. for the intermediate velocities! It was demonstrated that using physical conditions for intermediate velocities at B.C. will cause the projection method be first-order accuracy in time, while the pressure correction (iterative) method is second-order time accuracy.

MAR665-Lec.8: Non-Hydrostatic Dynamics

Step3: Solve the non-hydrostatic pressure and correct the velocity field

0=∂

∂+

∂+

zw

yv

xu

yqtvvn

n

∂Δ−=

++

11 *

ρ

xqtuun

n

∂Δ−=

++

11 *

ρ

zqtwwn

n

∂Δ−=

++

11 *

ρ

yqtvvn∂

∂Δ−=+ '*1

ρ

xqtuun∂

∂Δ−=+ '*1

ρ

zqtwwn∂

∂Δ−=+ '*1

ρ

Projection method Pressure correction (iterative)

method

)***()( 12

2

2

2

2

2

zw

yv

xu

tq

zyxn

∂+

∂+

Δ=

∂+

∂+

∂ + ρ )***(')( 2

2

2

2

2

2

zw

yv

xu

tq

zyx ∂

∂+

∂+

Δ=

∂+

∂+

∂ ρ

'1 qqq nn +=+

MAR665-Lec.8: Non-Hydrostatic Dynamics

(1)  There are many well-developed and validated hydrostatic ocean models such as FVCOM, MITgcm, POM, ROMs which are free available. Can we build a non-hydrostatic ocean model based on these models or we have to start from the very beginning?

(2)  Choose structured or unstructured grid? What is the matrix properties of the discretized non-hydrostatic pressure Poisson equation? How to solve it efficiently?

(3)  The fractional-step is originated from and applied extensively in CFD. But in ocean modeling, we are facing additional issues such as surface moving boundary, vertical sigma coordinate and split-mode time-stepping method. How to adjust this method for these issues.

(4)  How to design a non-hydrostatic algorithm which is mass conserved?

How to develop a non-hydrostatic ocean model?

MAR665-Lec.8: Non-Hydrostatic Dynamics We use non-hydrostatic FVCOM (FVCOM-NH) as an example:

qPPP Ha ++=Physical integration loop

n+1 time step momentum correction:

zetan+1(*), un+1(*), vn+1(*), ωn(*) → zetan+1, un+1, vn+1, ωn

Vertical momentum update:

w4zn → w4zn+1

Non-hydrostatic pressure update: qn → qn+1

Integrate the tracers: t1n, s1n → t1n+1, sn+1

Integrated the turbulence model

Hydrostatic FVCOM momentum update:

zetan, un, vn → (intermediate) zetan

+1(*), un+1(*), vn+1(*), ωn(*)

Diagnostic calculate physical w veloci ty f rom omega velocity

Using pressure decomposition

(Red color means the non-hydrostatic implementation)

MAR665-Lec.8: Non-Hydrostatic Dynamics

(1) The non-hydrostatic primitive equations in the sigma coordinate:

um

o

a

o

DFuKD

qxx

qD

dxDd

xDgD

xpD

xgDfvDu

yuvD

xDu

tuD

+∂∂

∂∂

+∂∂

∂∂

+∂∂

∂−

∂−−

∂−=−

∂+

∂+

∂+

∂∫∫

)(1][

] [

0

002

σσσσ

ρ

σσρ

σσρ

ρ∂∂

ρζ

σω

σσ

vmo

o

a

o

DFvKD

qyy

qD

dyDd

yDgD

ypD

ygDfuDv

yDv

xuvD

tvD

+∂∂

∂∂

+∂∂

∂∂

+∂∂

∂−

∂−−

∂−=+

∂+

∂+

∂+

∂∫∫

)(1][

] [002

σσσσ

ρ

σσρ

σσρ

ρ∂∂

ρζ

σω

σσ

wmo

DFwKD

qwyvwD

xuwD

twD

+∂∂

∂∂

+∂∂

−=∂∂

+∂

∂+

∂∂

+∂∂ )(11

σσσρσω

01=

∂∂

+∂∂

∂∂

+∂∂

∂∂

+∂∂

+∂∂

σσσ

σσ w

Dv

yu

xyv

xu

0=∂∂

+∂∂

+∂∂

+∂∂

σωζ

yvD

xuD

t

Continuity equation for divergent free

Continuity equation for free surface and omega velocity

(8.5)

(8.6)

(8.7)

(8.8)

(8.9)

MAR665-Lec.8: Non-Hydrostatic Dynamics

(2) Fractional-step formula

(8.10)

(8.11)

(8.12)

(8.13)

(8.14)

)(1)(***

σσσσ

ρ ∂∂

∂∂

+∂∂

∂∂

+∂∂

−−=Δ− uK

Dq

xxqDaF

tDuDu

m

nn

o

nx

nn

)(1)(***

σσσσ

ρ ∂∂

∂∂

+∂∂

∂∂

+∂∂

−−=Δ− vK

Dq

yyqDaF

tDvDv

m

nn

o

ny

nn

)(11 ***

σσσρ ∂∂

∂∂

+∂∂

−−=Δ− wK

DqaF

tDwDw

m

n

o

nz

nn

)(1*1

σσ

ρ ∂

ʹ′∂∂∂

+∂

ʹ′∂−=

Δ−+ q

xxq

tuu

o

n

)(1*1

σσ

ρ ∂

ʹ′∂∂∂

+∂

ʹ′∂−=

Δ−+ q

yyq

tvv

o

n

σρ ∂

ʹ′∂−=

Δ−+ q

Dtww

o

n 1*1

qn +1 = a ⋅ qn + ʹ′ q

(8.15)

a = 0: projection a = 1: pressure correction

MAR665-Lec.8: Non-Hydrostatic Dynamics

(3) Solve the intermediate free surface and velocities

•  Split-mode explicit time stepping method

Step1: vertically integrated Eqs (8.5), (8.6) and (8.9) for ( ) ( ) 0=

∂+

∂+

yDv

xDu

∂u D∂t

+∂u 2D∂x

+∂u v D∂y

− fv D −DF u −Gx −τ sx −τ bx

ρo

= −gD ∂ζ∂x

−gDρo{ ∂

∂x(D ρ d ʹ′ σ

σ

0

∫ )dσ +∂D∂x

−1

0

∫ σ ρ dσ−1

0

∫ }+ [ Dρo(∂q∂x

+∂σ∂x

∂q∂σ)

−1

0

∫ ]dσ

σσ

σρ

σρσσσρρ

ζ

ρ

ττ

σ

dqyy

qDdyDddD

ygD

ygD

GFDDufyDv

xDvu

tDv

oo

o

bysyyv

])([})({0

1

0

1

0

1

0

2

∫∫ ∫∫−− − ∂

∂∂∂

+∂∂

+∂∂

+ʹ′∂∂

−∂∂

−=

−−−−+

∂∂

+∂

∂+

∂∂

Step2: bring into Eqs. (8.5)-(8.7) to solve

*** ,, vuζ

*ζ *** ,, wvu

MAR665-Lec.8: Non-Hydrostatic Dynamics

•  Semi-implicit time stepping method

Step1: rewrite Eqs (8.5) - (8.6) into the semi-implicit form

umoo

a

o

nn

DFuKD

qxx

qDdxDd

xDgD

xpD

xxgDfvDu

yuvD

xDu

tuD

+∂∂

∂∂

+∂∂

∂∂

+∂∂

−∂∂

∂∂

−∂∂

∂−

∂∂

+∂∂

−−=−∂∂

+∂∂

+∂

∂+

∂∂

∫∫

+

)(1)(] [

])1[(

00

12

σσσσ

ρσ

σρ

σσρ

ρ

ρζ

θζ

θσω

σσ

vmoo

a

o

nn

DFvKD

qyy

qDdyDd

yDgD

ypD

yygDfuDv

yDv

xuvD

tvD

+∂∂

∂∂

+∂∂

∂∂

+∂∂

−∂∂

∂∂

−∂∂

∂−

∂∂

+∂∂

−−=+∂∂

+∂∂

+∂

∂+

∂∂

∫∫

+

)(1)(] [

])1[(

00

12

σσσσ

ρσ

σρ

σσρ

ρ

ρζ

θζ

θσω

σσ

(8.16)

(8.17)

or its simplified form

)(11

σσζ

θ∂∂

∂∂

+∂

∂−=

∂∂ + uK

DxDgXFLUX

tuD

m

nn

)(11

σσζ

θ∂∂

∂∂

+∂

∂−=

∂∂ + vK

DyDgYFLUX

tvD

m

nn

(8.18)

(8.19)

MAR665-Lec.8: Non-Hydrostatic Dynamics

•  Semi-implicit time stepping method

Step2: Integrating Eqs. (8.18)-(8.19) from to 0 yields

(8.20)

1−=σ

Dt

xtDgdXFLUXtDuDu

nbx

nsx

nnnn ττζ

θσ−

Δ+∂

∂Δ−Δ+=

+

+ ∫10

1

1 )()(

Dt

ytDgdYFLUXtDvDv

nby

nsy

nnnn ττζ

θσ−

Δ+∂

∂Δ−Δ+=

+

+ ∫10

1

1 )()( (8.21)

and bring Eqs. (8.20)-(8.21) into vertically integrated semi-implicit continuity equation:

∂ζ∂t

+ (1−θ) ∂(u D)n

∂x+θ

∂(u D)n+1

∂x+ (1−θ) ∂(v D)n

∂y+θ

∂(v D)n +1

∂y= 0 (8.22)

It will result in a 2D linear system for surface elevation

Dn

D BA 21

2 =+ζ (8.23)

After solving intermediate free surface, again, we can bring into Eqs. (8.18)-(8.19) and (8.7) to solve

*ζ*** ,, wvu

MAR665-Lec.8: Non-Hydrostatic Dynamics

(4) Solving non-hydrostatic pressure Substitute Eqs. (8.13)-(8.15) into continuity equation (8.8) that will result in the

non-hydrostatic pressure equation:

)1(

)()(2]1)()[(

*****0

2

2

2

222

2

2

222

2

2

2

2

σσσ

σσρ

σσσ

σσ

σσ

σσσ

∂∂

+∂∂

∂∂

+∂∂

+∂∂

∂∂

+∂∂

Δ=

ʹ′∂∂∂

+∂∂

+∂∂

ʹ′∂∂∂

+∂∂

ʹ′∂∂∂

+∂

ʹ′∂+

∂∂

+∂∂

+∂

ʹ′∂+

ʹ′∂

wD

vyy

vuxx

ut

qyxy

qyx

qx

qDyxy

qxq

(8.24)

The boundary conditions for Eq. (8.24):

•  at surface •  at bottom •  at lateral solid wall •  at open boundary let u* = un+1, v* = vn+1, w* = wn+1 to derive a form of q’

ʹ′ q = 0

∂ ʹ′ q ∂σ

=Dtanβ

(1+ tan2β)∂ ʹ′ q ∂n

∂ ʹ′ q ∂nh

= −(nx ⋅∂σ∂x

+ ny ⋅∂σ∂y) ∂ ʹ′ q ∂σ

MAR665-Lec.8: Non-Hydrostatic Dynamics

The discretization of Eq. (8.24) will results in a large sparse matrix:

To solve it, we employ a parallel sparse matrix solver library (PETSc) (Balay et al., 2007) and High Performance Preconditioners (HYPRE) software library (Falgout and Yang, 2002)

A ʹ′ q = b

MAR665-Lec.8: Non-Hydrostatic Dynamics

(5) Correct the intermediate velocity field and free surface Once obtain the n+1 time step q, it is easy to correct the intermediate velocity

field based on Eqs (8.13)-(8.15):

)(*1

σσ

ρ ∂

ʹ′∂

∂+

ʹ′∂Δ−=+ q

xxqtuu

o

n )(*1

σσ

ρ ∂

ʹ′∂

∂+

ʹ′∂Δ−=+ q

yyqtvv

o

n

σρ ∂

ʹ′∂Δ−=+ q

Dtwwo

n *1

For other non-hydrostatic ocean models, the n+1 time step integration is finished at this stage without further correcting the free surface (assuming the error is small!). But our numerical experiment indicate that this will cause free surface damping. So we also correct the intermediate free surface by

u n +1 = un +1dσ−1

0

∫First compute

v n +1 = v n +1dσ−1

0

∫and

Then update by:

ζ n +1 −ζ n

Δt+∂[u n +1(H +ζ n +1)]

∂x+∂[v n +1(H +ζ n +1)]

∂y= 0*ζ

MAR665-Lec.8: Non-Hydrostatic Dynamics

How we validate FVCOM-NH?

Test cases Testing non-hydrostatic

dynamics for Validation method

Surface standing wave Linear wave Analytical solution

Surface solitary waves Non-linear wave

Analytical solution (Grimshaw, 1971, Fenton, 1972),

lab experiment (Madsen and Mei, 1969)

Lock-exchange flows Internal flow

Analytical estimate (Turner, 1973)

numerical simulation (Hartel et al, 2000)

Internal solitary wave breaking on slopes Realistic flows Lab experiment

(Michallet and Ivey ,1999)

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case1: surface standing wave

),,( tzx!

m1.00 =!

10m

10m Grid: 40×40

Vertical view

Horizontal view

y

x

z

x

xp

tu

∂−=

∂ '1ρ

yp

tv

∂−=

∂ '1ρ

zp

tw

∂−=

∂ '1ρ

0=∂

∂+

∂+

zw

yv

xu

Model setup:

)cos(0 kxηη = Lk π=

0== wu

)(25.0 mdx =

Setup a 2D problem by assuring no along y-direction gradient. The same approach was applied in later numerical tests

MAR665-Lec.8: Non-Hydrostatic Dynamics

Compare analytical solution (left panel) with numerical results (right panel):

• velocity field (vectors)

• free surface (dash line)

• non-hydrostatic pressure (contour lines)

MAR665-Lec.8: Non-Hydrostatic Dynamics

Integrating the model over 600 seconds (roughly 160 wave periods) under inviscid conditions to test numerical dissipation.

Hydrostatic Numerical Analytic

Non-hydrostatic

MAR665-Lec.8: Non-Hydrostatic Dynamics

FVCOM-NH

FVCOM

The dynamical reason why we see the hydrostatic run is not correct:

MAR665-Lec.8: Non-Hydrostatic Dynamics

The comparison of FVCOM-NH numerical solution with other models

Non-hydrostatic ROMs (Kanarska, 2007) Ziljema and Stelling’s (2005) test to show the free surface error that is related to Casulli’s method of setting non-hydrostatic pressure to be zero in the whole first layer cell.

FVCOM-NH

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case2: surface solitary wave

(1) Over flat bottom

Model setup:

•  initially generate a third-order solution of solitary wave (Grimshaw,1971; Fenton, 1972)

•  h/H = 0.12

•  effective wave length, L=1.6 m

•  dx = 0.01(m)

•  no bottom friction and eddy viscosity

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case2: surface solitary wave

(1) Over flat bottom

compare free surface with analytical solution

compare u and w velocity at mid-depth

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case2: surface solitary wave

(2) Over a linear slope

•  The model setup is same as before;

•  Without wave breaking, laboratory observations indicate the initial solitary wave is transformed into a train of solitary waves after it enters the shallow region, called “fission phenomena”.

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case2: surface solitary wave

(2) Over a linear slope

The simulated free surface variations match well with the observed at all probe stations. The fission phenomena is also well reproduced!

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case3: lock-exchange flow

Heavy fluid Light fluid

0.8m

0.1m

Model setup:

•  Initially

•  Vertical 100 sigma layers

•  Horizontal 400×5 nodes, dx = 0.002(m)

•  no bottom friction and viscosity/diffusivity

20 /01.0/' smgg =Δ= ρρ

FVCOM-NH

FVCOM

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case3: lock-exchange flow

Hydrostatic FVCOM

FVCOM-NH

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case3: lock-exchange flow Define: Potential Energy =

Kinetic Energy = ! !"

+2/

2/ 0

22 )(21L

L

H

dxdzvuV#

Under inviscid condition, the simulation showed a nice potential and kinetic energy transferring process and conserve the total energy to the order of 10-4.

Blue line: PE

Red line: KE

! !"

2/

2/ 0

L

L

H

gzdxdz#

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case3: lock-exchange flow

FVCOM-NH

Comparison of FVCOM-NH result with the one from a high-order direct numerical simulation (DNS) method, with constant horizontal and vertical eddy viscosity and tracer diffusivity 1×10-6 m2/s:

(DNS results from Härtel et al., 2000)

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case3: lock-exchange flow

FVCOM-NH

The comparison of FVCOM-NH numerical solution with other models

Fringer et al. (2006) repeated this case with a similar setup but applying first-order scheme. His results was diffusive.

The lock-exchange problem did by Non-hydrostatic ROMS (Kanarska et al., 2007) could not show the symmetric eddies in this idealized problem.

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case4: Internal solitary waves breaking on a linear varying slope

2ρH h

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case4: Internal solitary waves breaking on a linear varying slope Photography result of exp15 (from Michallet and Ivey ,1999) FVCOM-NH

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case4: Internal solitary waves breaking on a linear varying slope Photography result of exp12 (from Michallet and Ivey ,1999) FVCOM-NH

MAR665-Lec.8: Non-Hydrostatic Dynamics

Test case4: Internal solitary waves breaking on a linear varying slope Hydrostatic FVCOM

FVCOM-NH without bottom friction and eddy viscosity/tracer diffusivity

FVCOM-NH with constant bottom friction and eddy viscosity/tracer diffusivity