48
The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Embed Size (px)

Citation preview

Page 1: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

The equations of motion and their numerical solutions II

by Nils Wedi (2006)contributions by Mike Cullen and Piotr Smolarkiewicz

Page 2: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Dry “dynamical core” equations

• Shallow water equations• Isopycnic/isentropic equations• Compressible Euler equations• Incompressible Euler equations• Boussinesq-type approximations• Anelastic equations• Primitive equations• Pressure or mass coordinate equations

Page 3: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Shallow water equations

eg. Gill (1982)

Numerical implementation by transformation to a Generalized transport form for the momentum flux:

This form can be solved by eg. MPDATASmolarkiewicz and Margolin (1998)

Page 4: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Isopycnic/isentropic equations

eg. Bleck (1974); Hsu and Arakawa (1990);

" "d m

1" "d

isentropic

isopycnic

shallow water

defines depth between “shallow water layers”

Page 5: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

More general isentropic-sigma equations

Konor and Arakawa (1997);

Page 6: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Euler equations for isentropic inviscid motion

Page 7: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Euler equations for isentropic inviscid motion

Speed of sound (in dry air 15ºC dry air ~ 340m/s)

Page 8: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Distinguish between• (only vertically varying) static reference or

basic state profile (used to facilitate comprehension of the full equations)

• Environmental or balanced state profile (used in general procedures to stabilize or increase the accuracy of numerical integrations; satisfies all or a subset of the full equations, more recently attempts to have a locally reconstructed hydrostatic balanced state or use a previous time step as the balanced state

Reference and environmental profiles

e

Page 9: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

The use of reference and environmental/balanced profiles

• For reasons of numerical accuracy and/or stability an environmental/balanced state is often subtracted from the governing equations

Clark and Farley (1984)

Page 10: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

*NOT* approximated Euler perturbation equations

using:

eg. Durran (1999)

Page 11: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Incompressible Euler equations

eg. Durran (1999); Casulli and Cheng (1992); Casulli (1998);

Page 12: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

"two-layer" simulation of a critical flow past a gentle mountain

reduced domain simulation with H prescribed by an explicit shallow water model

Animation:

Compare to shallow water:

Example of simulation with sharp density gradient

Page 13: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Two-layer t=0.15

Page 14: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Shallow water t=0.15

Page 15: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Two-layer t=0.5

Page 16: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Shallow water t=0.5

Page 17: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Classical Boussinesq approximation

eg. Durran (1999)

Page 18: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Projection method

Subject to boundary conditions !!!

Page 19: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Integrability condition

With boundary condition:

Page 20: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Solution

Ap = f

Since there is a discretization in space !!!

Most commonly used techniques for the iterative solution of sparse linear-algebraic systems that arise in fluid dynamics are the preconditioned conjugate gradient method and the multigrid method. Durran (1999)

Page 21: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Importance of the Boussinesq linearization in the momentum

equation

Incompressible Euler two-layer fluid flow past obstacle

Two layer flow animation with density ratio 1:1000 Equivalent to air-water

Incompressible Boussinesq two-layer fluid flow past obstacle

Two layer flow animation with density ratio 297:300 Equivalent to moist air [~ 17g/kg] - dry air

Incompressible Euler two-layer fluid flow past obstacle

Incompressible Boussinesq two-layer fluid flow past obstacle

Page 22: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Anelastic approximation

Batchelor (1953); Ogura and Philipps (1962); Wilhelmson and Ogura (1972); Lipps and Hemler (1982); Bacmeister and Schoeberl (1989); Durran (1989); Bannon (1996);

Page 23: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Anelastic approximation

Lipps and Hemler (1982);

Page 24: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Numerical Approximation

Compact conservation-law form:

Lagrangian Form:

Page 25: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Numerical Approximation

LE, flux-form Eulerian or Semi-Lagrangian formulation using MPDATA advection schemes Smolarkiewicz and Margolin (JCP, 1998)

with Prusa and Smolarkiewicz (JCP, 2003)

specified and/or periodic boundaries

with

Page 26: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Importance of implementation detail?

Example of translating oscillator (Smolarkiewicz, 2005):

time

Page 27: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Example

”Naive” centered-in-space-and-time discretization:

Non-oscillatory forward in time (NFT) discretization:

paraphrase of so called “Strang splitting”, Smolarkiewicz and Margolin (1993)

Page 28: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Compressible Euler equations

Davies et al. (2003)

Page 29: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Compressible Euler equations

Page 30: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

A semi-Lagrangian semi-implicit solution procedure

Davies et al. (1998,2005)

(not as implemented, Davies et al. (2005) for details)

Page 31: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

A semi-Lagrangian semi-implicit solution procedure

Page 32: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

A semi-Lagrangian semi-implicit solution procedure

Non-constant-coefficient approach!

Page 33: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Pressure based formulationsHydrostatic

Hydrostatic equations in pressure coordinates

Page 34: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Pressure based formulationsHistorical NH

Miller (1974); Miller and White (1984);

Page 35: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Pressure based formulationsHirlam NH

Rõõm et. Al (2001), and references therein;

Page 36: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Pressure based formulationsMass-coordinate

Define ‘mass-based coordinate’ coordinate: Laprise (1992)

Relates to Rõõm et. Al (2001):

By definition monotonic with respect to geometrical height

‘hydrostatic pressure’ in a vertically unbounded shallow atmosphere

Page 37: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Pressure based formulations

Laprise (1992)

with

Momentum equation

Thermodynamic equation

Continuity equation

Page 38: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Pressure based formulationsECMWF/Arpege/Aladin NH model

Bubnova et al. (1995); Benard et al. (2004), Benard (2004)

hybrid vertical coordinate

coordinate transformation coefficient

scaled pressure departure

‘vertical divergence’

with

Simmons and Burridge (1981)

Page 39: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Pressure based formulations ECMWF/Arpege/Aladin NH model

Page 40: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Hydrostatic vs. Non-hydrostatic

eg. Keller (1994)

• Estimation of the validity

Page 41: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Hydrostaticity

Page 42: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Hydrostaticity

Page 43: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Hydrostatic vs. Non-hydrostaticNon-hydrostatic flow past a mountain without wind shear

Hydrostatic flow past a mountain without wind shear

Page 44: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Hydrostatic vs. Non-hydrostaticNon-hydrostatic flow past a mountain with vertical wind shear

Hydrostatic flow past a mountain with vertical wind shear

But still fairly high resolution L ~ 30-100 km

Page 45: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Hydrostatic vs. Non-hydrostatic

hill hillIdealized T159L91 IFS simulation with parameters [g,T,U,L] chosen to have marginally hydrostatic conditions NL/U ~ 5

Page 46: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Compressible vs. anelastic

Davies et. Al. (2003)

Hydrostatic

Lipps & Hemler approximation

Page 47: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Compressible vs. anelastic

Equation set V A B C D E

Fully compressible 1 1 1 1 1 1Hydrostatic 0 1 1 1 1 1Pseudo-incompressible (Durran 1989) 1 0 1 1 1 1Anelastic (Wilhelmson & Ogura 1972) 1 0 1 1 0 0Anelastic (Lipps & Hemler 1982) 1 0 0 1 0 0Boussinesq 1 0 1 0 0 0

Page 48: The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz

Normal mode analysis of the “switch” equations Davies et. Al. (2003)

• Normal mode analysis done on linearized equations noting distortion of Rossby modes if equations are (sound-)filtered

• Differences found with respect to gravity modes between different equation sets. However, conclusions on gravity modes are subject to simplifications made on boundaries, shear/non-shear effects, assumed reference state, increased importance of the neglected non-linear effects …