1 / 24

Numerical methods IV (time stepping)

Numerical methods IV (time stepping). by Nils Wedi (room 007; ext. 2657). In part based on previous material by Mariano Hortal and Agathe Untch. What is the basis for a stable numerical implementation ?.

gage
Download Presentation

Numerical methods IV (time stepping)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Numerical methods IV(time stepping) by Nils Wedi (room 007; ext. 2657) In part based on previous material by Mariano Hortal and Agathe Untch

  2. What is the basis for a stable numerical implementation ? • A: Removal of fast - supposedly insignificant - external and/or internal acoustic modes (relaxed or eliminated), making use of infinite sound speed (cs) and/or the hydrostatic approximation from the governing equations BEFORE numerics is introduced. • B: Use of the full equations WITH a semi-implicit numerical framework, reducing the propagation speed (cs 0) of fast acoustic and buoyancy disturbances, retaining the slow convective-advective component (ideally) undistorted. • C:Split-explicit integration of the full equations, since explicit NOT practical (~100 times slower)  Determines the choice of the numerical scheme

  3. Choices for numerical implementation • Avoiding the solution of an elliptic equation fractional step methods (eg. split-explicit); Skamrock and Klemp (1992); Durran (1999) • Solving an elliptic equation Projection method; Durran (1999) Semi-implicit Durran (1999); Cullen et. al.(1994); Benard et al. (2004); Benard (2004); Benard et al. (2005) Preconditioned conjugate-residual solvers (eg. GMRES) or multigrid methods for solving the resulting Poisson or Helmholtz equations; Skamarock et. al. (1997); Saad (2003); Direct Methods; Martinsson (2009); and in the context of IFS: the spectral transform method, Eliasen et al. (1970) Orszaag (1970);

  4. Spectralsemi-Lagrangiansemi-implicit (compressible) viable ? Action: Establish if okay to slow-down acoustic waves Action: Establish if spectral viable at ultra-high resolution yes no Action: Establish if semi-Lagrangian viable for CFL larger than 1 with permitted/resolved convection Action: Firmly establish efficiency of 3D elliptic solvers on MPP computers (linear with number of gridpoints) Action: Invest in grid/finite-volume methods no yes Action: Can advantage for SL schemes be maintained on MPP computers and issues with lower boundary overcome ? yes no • Options that may be explored: • -Improve on existing NH system • ε add-on NH via (1D) implicit in the vertical • -Z-coordinate W, ln(p) system • -UN/QE system ? yes explicit • Options can be explored: • UN/QE • Anelastic/pseudo-incompressible • Fully implicit • Coupled model equations Compressible semi-implicit no Fast/slow split Action: Invest in flux-form Eulerian formulation Single step, horizontally explicit/vertically (2D) implicit

  5. Split-explicit integration Skamarock and Klemp (1992); Durran (1999); Doms and Schättler (1999); ‘Slow’ part of solution ‘Fast’ part of solution e.g. implemented in popular limited-area models: Deutschland Modell, WRF model

  6. Semi-implicit schemes linearised term, treated implicit (i) coefficients constant in time and horizontally (hydrostatic models Robert et al. (1972), Benard et al. (2004), Benard (2004) ECMWF/Arpege/Aladin NH) (ii) coefficients constant in time Thomas (1998); Qian, (1998); see references in Bénard (2004) (iii) non-constant coefficients Skamarock et. al. (1997),(UK Met Office NH model, EULAG model) non-linear term, treated explicit

  7. Design of semi-implicit methods • Treat all terms involving the fastest propagation speeds implicitly (acoustic waves, gravity waves). • Assume that the energy in those components is negligible. • Consider the solvability of the resulting implicit system, which is typically an elliptic equation. • Note, that using large time-steps as permitted by the stability analysis of the scheme may still incur a phase error, as the fast waves (fast considering the “wave-CFL” >1 given the chosen time-step) are distorted.

  8. Example: Shallow water equations Linearized: Linear analytic solution: Phase speed: H denotes here a mean state depth.

  9. Shallow water equations : advection : gravity-wave (or sometimes called ‘adjustment’) term In the linear version: advection adjustment combined In the atmosphere ==> Δt≤ 236 sec ~ 4 min in synoptic-scale models

  10. x x x x x x x x x Explicit time-stepping • Leap-frog explicit scheme j+Δy j+Δx j-Δx j Stability: j-Δy If we treat implicitly the advection terms we do not get a Helmholtz equation

  11. Increasing the allowed timestep • Forward-backward scheme forward backward doubles the leapfrog timestep von Neumann gives • Pressure averaging if ε=0 ------> leapfrog doubles the leapfrog timestep if ε=1/4 we get

  12. Split-explicit time-stepping slow fast Stability as before but M times a simpler problem. Potential drawbacks: splitting errors, conservation. However recent advances for NH NWP suggested in (Klemp et. al. 2007) Note: The fast solution may be computed implicitly.

  13. x x x x x x x x x Semi-implicit time-stepping j+Δy Solve: j+Δx j-Δx j j-Δy Helmholtz equation ! Stability: now onlylimited by the advection terms Note: if we also treat the advection terms implicitly we do not get a Helmholtz equation!

  14. Compressible Euler equations Davies et al. (2003)

  15. Compressible Euler equations

  16. A semi-Lagrangian semi-implicit solution procedure (not as implemented, Davies et al. (2005) for details) Davies et al. (1998,2005)

  17. A semi-Lagrangian semi-implicit solution procedure

  18. A semi-Lagrangian semi-implicit solution procedure Non-constant- coefficient approach! Helmholtz equation (solutions see e.g. Skamarock et al. 1997, Smolarkiewicz et al. 2000)

  19. Semi-implicit time integration in IFS Choice of which terms in RHS to treat implicitly is guided by the knowledge of which waves cause instability because they are too fast (violate the CFL condition) and need to be slowed down with an implicit treatment. In a hydrostatic model, fastest waves are horizontally propagating external gravity waves (long surface gravity waves), Lamb waves (acoustic wave not filtered out by the hydrostatic approximation) and long internal gravity waves. => implicit treatment of the adjustment terms. L= linearization of part of RHS (i.e. terms supporting the fast modes) => good chance of obtaining a system of equations in the variables at “+” that can be solved almost analytically in a spectral model.

  20. For compact notation define: “semi-implicit correction term” Two-time-level semi-Lagrangian semi-implicit time integration in the hydrostatic IFS Notations: X : advected variable RHS: right-hand side of the equation L: part of RHS treated implicitly Superscripts: “0” indicates value at dep. point (t) “1/2” indicates value at mid-point (t+0.5Δt) “+” indicates value at arrival point (t+Δt) => L=RHS => implicit scheme L= part of RHS => semi-implicit (β=1) L=0 => explicit (β=0)

  21. Semi-implicit time integration in IFS semi-implicit corrections semi-implicit equations

  22. Semi-implicit time integration in IFS semi-implicit equations Reference state for linearization: ref. temperature ref. surf. pressure Where: => lin. geopotential for X=T => lin. energy conv. term for X=D

  23. = unity operator Linear system to be solved Eliminate all variables to find also a Helmholtz equation for D+ : operator acting only on the vertical

  24. One equation for each In spectral space (spherical harmonics space): because Semi-implicit time integration in IFS Vertically coupled set of Helmholtz equations. Coupling through Uncouple by transforming to the eigenspace of this matrix gamma (i.e. diagonalise gamma). Unity matrix “I” stays diagonal. => Once D+ has been computed, it is easy to compute the other variables at “+”.

More Related