Identifying and controlling linear and nonlinear instability in WRF

Slides:



Advertisements
Similar presentations
What’s quasi-equilibrium all about?
Advertisements

MEEG 5113 Modal Analysis Set 3.
An intraseasonal moisture nudging experiment in a tropical channel version of the WRF model: The model biases and the moisture nudging scale dependencies.
DFT/FFT and Wavelets ● Additive Synthesis demonstration (wave addition) ● Standard Definitions ● Computing the DFT and FFT ● Sine and cosine wave multiplication.
The Problem of Parameterization in Numerical Models METEO 6030 Xuanli Li University of Utah Department of Meteorology Spring 2005.
Günther Zängl, DWD1 Improvements for idealized simulations with the COSMO model Günther Zängl Deutscher Wetterdienst, Offenbach, Germany.
HEDAS ANALYSIS STATISTICS ( ) by Altug Aksoy (NOAA/AOML/HRD) HEDAS retrospective/real-time analyses have been performed for the years
Krakow - September, 15th 2008COSMO WG 2 - Runge Kutta1 Further Developments of the Runge-Kutta Time Integration Scheme Investigation of Convergence (task.
Cold Fronts and their relationship to density currents: A case study and idealised modelling experiments Victoria Sinclair University of HelsinkI David.
Horizontal Convective Rolls Asai papers & Simulations w/ ARPS.
GG450 April 22, 2008 Seismic Processing.
Baroclinic Instability in the Denmark Strait Overflow and how it applies the material learned in this GFD course Emily Harrison James Mueller December.
Characteristics of Isolated Convective Storms Meteorology 515/815 Spring 2006 Christopher Meherin.
Basic Concepts of Numerical Weather Prediction 6 September 2012.
Introduction to Running the WRF in LES Mode Jeff Massey April 1, 2014 University of Utah WRF Users Group.
Mesoscale Modeling Review the tutorial at: –In class.
HWRF ERROR ANALYSIS T N Krishnamurti A.Thomas A. Simon Florida State University.
19 December ConclusionsResultsMethodologyBackground Chip HelmsSensitivity of CM1 to Initial θ' Magnitude and Radius Examining the Sensitivity of.
Sources of Error in NWP Forecasts or All the Excuses You’ll Ever Need Fred Carr COMAP Symposium 00-1 Monday, 13 December 1999.
Model Task 0A: Programming the 1D upstream scheme ATM 562 Fall 2015 Fovell 1.
Kelvin K. Droegemeier and Yunheng Wang Center for Analysis and Prediction of Storms and School of Meteorology University of Oklahoma 19 th Conference on.
Parameter Range Study of Numerically-Simulated Isolated Multicellular Convection Z. DuFran, B. Baranowski, C. Doswell III, and D. Weber This work is supported.
Model Task 0B: Implementing different schemes ATM 562 Fall 2015 Fovell 1.
Sensitivity Analysis of Mesoscale Forecasts from Large Ensembles of Randomly and Non-Randomly Perturbed Model Runs William Martin November 10, 2005.
LES of Turbulent Flows: Lecture 2 (ME EN )
Seismology Part VI: Surface Waves: Love Augustus Edward Hough Love
Sensitivity experiments with the Runge Kutta time integration scheme Lucio TORRISI CNMCA – Pratica di Mare (Rome)
WRF Four-Dimensional Data Assimilation (FDDA) Jimy Dudhia.
Model Task 5: Implementing the 2D model ATM 562 Fall 2015 Fovell (see updated course notes, Chapter 13) 1.
Model Task 4: Time stepping and the leapfrog scheme ATM 562 Fall 2015 Fovell (see updated course notes, Chapter 12) 1.
Seismology Part V: Surface Waves: Rayleigh John William Strutt (Lord Rayleigh)
1 Reformulation of the LM fast- waves equation part including a radiative upper boundary condition Almut Gassmann and Hans-Joachim Herzog (Meteorological.
Page 1© Crown copyright Modelling the stable boundary layer and the role of land surface heterogeneity Anne McCabe, Bob Beare, Andy Brown EMS 2005.
The story so far… ATM 562 Fovell Fall, Convergence We will deploy finite difference (FD) approximations to our model partial differential equations.
Compressible vs. anelastic (Elliptic equation example) ATM 562 Fovell Fall, 2015.
WRF modeling: fundamentals, error sources and troubleshooting ATM 419 Spring 2016 Fovell 1.
Adjoint models: Theory ATM 569 Fovell Fall 2015 (See course notes, Chapter 15) 1.
Time Integration Schemes Bill Skamarock NCAR/MMM 1.Canonical equations for scheme analyses. 2.Time-integration schemes used in NWP models.
HYBRID LARGE EDDY SIMULATION/REYNOLDS AVERAGED NAVIER-STOKES FORMULATION FOR NUMERICAL WEATHER PREDICITON H. A. Hassan North Carolina State University,
A revised formulation of the COSMO surface-to-atmosphere transfer scheme Matthias Raschendorfer COSMO Offenbach 2009 Matthias Raschendorfer.
Impact of Cloud Microphysics on the Development of Trailing Stratiform Precipitation in a Simulated Squall Line: Comparison of One- and Two-Moment Schemes.
Supercell storms: In-class demo and Experiment 3
Northwest Modeling Consortium
Predictability of orographic drag for realistic atmospheric profiles
Lecture 4: Numerical Stability
The Sine Rule The Cosine Rule
Hurricane Vortex X L Converging Spin up Diverging Spin down Ekman
MECH 373 Instrumentation and Measurements
Ben Green Group meeting, 9/13/2013
The linear sea-breeze circulation and effect of Earth’s rotation
Robert Fovell Meteorology – Lecture 23 Robert Fovell
Seamless turbulence parametrization across model resolutions
Coupled atmosphere-ocean simulation on hurricane forecast
Fourier Analyses Time series Sampling interval Total period
IMPROVING HURRICANE INTENSITY FORECASTS IN A MESOSCALE MODEL VIA MICROPHYSICAL PARAMETERIZATION METHODS By Cerese Albers & Dr. TN Krishnamurti- FSU Dept.
Convergence in Computational Science
Mark A. Bourassa and Qi Shi
Update on the Northwest Regional Modeling System 2017
Quantum One.
The Wind Hodograph METR 4433: Mesoscale Meteorology Spring 2013 Semester Adapted from Materials by Drs. Kelvin Droegemeier, Frank Gallagher III and Ming.
Chapter 3: Selection Structures: Making Decisions
Boolean Expressions to Make Comparisons
Consortium Meeting June 14th 2012
Chapter 3: Selection Structures: Making Decisions
Dawson, D. T. II, M. Xue, J. A. Milbrandt, and A. Shapiro, 2015
Ming-Jen Yang and Robert A. House Jr. Mon. Wea. Rev., 123,
Reporter : Prudence Chien
Mesh Morph 2.0 Tutorial 7/29/2019.
Presentation transcript:

Identifying and controlling linear and nonlinear instability in WRF ATM 419/563 Spring 2017 Fovell

Goals Demonstrate potential examples of linear and nonlinear instability in WRF and how to address them Demonstrate potential sensitivity of simulations to time stepping and diffusion Show value of “new” schemes and approaches used by WRF (odd-order and positive-definite advection, RK3 time stepping)

Squall line vertical x-section Storm motion

mp = 2 mp = 6 2D squall line mp = 4 mp = 10 Linear or nonlinear? Real or false? What is going on here? We’ll return to this Different microphysics schemes: reflectivity (shaded) and vertical velocity at 6 h forecast

“Fourier thinking” recap

“Fourier thinking”and its implications Any series, no matter how aperiodic, can be decomposed into a finite set of sines and cosines of different wavelengths and amplitudes When those Fourier components are recombined, the original feature is reobtained

The original feature and its Fourier components. Some components have short and very short wavelengths.

In reality, advection (Latin, “to carry, to convey”) moves all features identically (same speed, direction), independent of wavelength

In the model, longest wavelengths are handled best and the smallest wavelengths are handled very, very poorly. When things “go wrong” in a model, it is often (not always) due to the smallest resolvable waves (2∆x, 3∆x, 4∆x)

One of those ways things can go wrong is improper advection. In this example, the shortest waves are handled poorly (and even moving in the wrong direction!), but they are not growing When linear or nonlinear instability appears, it may be first apparent in the unrestrained growth of the smallest scale waves GIF animation

Controlling linear and nonlinear instability

Linear instability Linear instability is caused, first and foremost, by using a time step that is too long or large When linearly unstable, all wavelengths should grow exponentially with time However, shorter waves typically grow faster, so the linearly unstable solution may look “noisy” (contain a lot of large-amplitude, small-scale features) as it “blows up” Solution: reduce the time step Caveats Nonlinear instability also can manifest as small-scale noise, and reducing the time step can make nonlinear instability worse Changing the time step can change both simulation results and experimental conclusions, in pathological cases. Check to see if your time step matters.

Review of nonlinear instability Nonlinear instability results when energy builds up at the smallest resolvable wavelengths (i.e., 2-3∆x) Wave-wave interaction causes energy to spread to smaller and smaller scales In reality, this energy cascade continues to microscales, where it is dissipated by friction In the model, the energy accumulates at the smallest resolvable scales because there is no natural sink and aliasing occurs One test for nonlinear instability: decrease the time step… if the problem occurs earlier (in “real” time), then nonlinear instability is suspected Reason: wave-wave interaction occurs every time step. Reducing the time step means more possible interactions within a given time period

Controlling nonlinear instability Apply an artificial, explicit diffusion term to remove energy at the smallest scales These are even-order derivatives in space, time (next slide) This is completely artificial, so you do not want to impact well-resolved components Thus, you want the filter to be as scale-selective and scale-specific as possible: Hit 2∆x waves hard with minimal impact waves longer than 4∆x Utilize “odd-order” advection schemes (like default WRF) which have implicit diffusion Do both (can be done in WRF)

Explicit diffusion terms • f = variable being predicted • Diffusion terms added to RHS • an is a dimensional diffusion coefficient ≥ 0 • Note derivatives are even order, starting with order 0 (f itself) • Note signs alternate • You may (will) want diffusion in z direction as well…

Zeroth-order diffuser The 0th order diffuser is a “tax” that reduces the amplitude of all waves equally Not scale-selective at all, so a very poor choice for controlling nonlinear instability Also called a “sponge”, Rayleigh damping (when applied to velocity components) and Newtonian cooling (when applied to temperature). Used when we need to damp everything out Tricky to implement, requires care

Higher-order diffusers Smoothing applied at grid point i • Note symmetry • Note denominator • Note increasing order by two involves incorporating two additional points • Each higher order scheme is more scale selective, targeting smallest wavelengths (next slide), at the cost of increasing computational complexity • These terms are multiplied by the time step and the diffusion coefficient a, which can be combined and expressed as a nondimensional coefficient

Amplitude factor vs. wavenumber (and wavelength) • Amplitude factor l < 1 is amplitude reduction per time step (per application) and l = 1 means no damping • Plots are normalized relative to complete removal of 2∆x wave in 1 time step (i.e., l = 0), which is overkill • Desire l to be close to 1 for wavelengths longer than 4∆x ∞∆x 4∆x 2∆x << wavelength This is artificial. You want the smallest amount of diffusion that gets the job done. Xue (2000)

WRF 6th order diffusion option &dynamics rk_ord = 3, diff_opt = 2, 2, 2, km_opt = 2, 2, 2, diff_6th_opt = 2, 2, 2, diff_6th_factor = 0.12, • diff_opt = km_opt = 2: you are computing and applying eddy mixing (subgrid turbulence). - this is intended to be physically realistic and reasonable diffusion - this is applied via 2nd derivatives in space (x, y, z) - the mixing is intermittent in time and space and may not be generated where nonlinear instability is growing - in real-data WRF, using a PBL scheme, you select diff_opt=1, km_opt=4 instead • rk_ord = 3 means we’re using an odd-order Runge-Kutta scheme - this does have implicit numerical diffusion, which is larger for smaller-scale waves - this often suffices to control nonlinear instability • diff_6th_opt = 2 means we’re requesting additional, highly targeted 6th order diffusion - the coefficient diff_6th_factor is nondimensional, and relative to 2∆x damping rate diff_6th_factor = 1.0 would mean complete removal of 2∆x in one time step (overkill)

Linear or nonlinear instability? Example using 2D squall line

21jun2003_vnx_long_NEW.GIF 21 June 2003, VNX radar

Squall line vertical x-section Storm motion

Vertical profile of horizontal wind In input_sounding, can easily manipulate vertical wind speed difference (∆u, m/s) and shear layer depth (D, m). No shear above z = D. Also specify domain translation speed (G, m/s).

input_sounding (in your SQUALL directory) domain translation speed G shear layer depth D (m) ∆u (m/s) surface pressure, potential temperature and vapor mixing ratio 1000.0 300.5000 14.00000 6.0 3750. 16.0 125 300.5 14 -15.4 0.00E+00 375 300.565 14 -14.2 0.00E+00 625 301.0699 14 -13 0.00E+00 875 301.6293 14 -11.8 0.00E+00 1125 302.2307 14 -10.6 0.00E+00 1375 302.8666 13.11911 -9.4 0.00E+00 1625 303.5323 11.87561 -8.2 0.00E+00 1875 304.2242 10.742 -7 0.00E+00 ignore these Configuration altered to ∆u = 6, D = 3750, G = 16.0

mp = 2 mp = 6 ∆u = 6 D = 3750 mp = 4 mp = 10 Different microphysics schemes: reflectivity (shaded) and vertical velocity at 6 h forecast

Development of noisy features in a single case mp=4, ∆u=6, D=3750, G=16 case

Shaded = reflectivity Contoured = vertical velocity

10 min later

There’s something different about these new vert motion features There’s something different about these new vert motion features. Instead of stronger updrafts with weaker downdrafts located below and behind, the new feature has updrafts and downdrafts of about same magnitude at same altitude.

mostly 3-4∆x

W at z = 3 km @ 6 h One feature at left is 11∆x. The new features are 3 and 4∆x.

Shorten the time step ∆t = 12 sec ∆t = 6 sec Issue disappears after reducing the time step. Does this ensure the feature was linear instability?

Add 6th order diffusion ∆t = 12 sec No 6th order diffusion Light 6th order diffusion (diff_6th_factor = 0.06) Issue disappears after adding some small scale diffusion. Does this ensure the feature was nonlinear instability instead?

Light 6th order diffusion (diff_6th_factor = 0.06) Do both ∆t = 12 sec No 6th order diffusion ∆t = 6 sec Light 6th order diffusion (diff_6th_factor = 0.06) Original looks wrong. New looks possible. Issue reappears. But, is it really the same problem?

Now use larger diffusion ∆t = 12 sec No 6th order diffusion ∆t = 6 sec Standard 6th order diffusion (diff_6th_factor = 0.12) There is no correct answer. Issue disappears again. So, was it ever real? Or are we now doing too much damping?

Add light diffusion Reduce ∆t Both

Add std diffusion Reduce ∆t Both 0.12

Caveats Just because a feature disappears when the time step is reduced does not necessarily mean it represented linear instability Just because the feature becomes more amplified when the time step is reduced (or artificial diffusion is reduced) does not necessarily mean it represented nonlinear instability Reason: Small differences owing to physical and/or numerical causes can evolve into dramatic differences later Keep in mind: “A difference is a difference only if it makes a difference”

Escalation scenarios • WRF simulation finishes. Nothing written to sbatch.err.out. No “cfl” warnings in rsl.out.XXXX files. wrf_to_grads runs to completion. You may be OK. [grep cfl rsl.out.*] • WRF simulation finishes. Nothing written to sbatch.err.out. A few “cfl” warnings do appear in rsl.out.XXXX files. wrf_to_grads runs to completion. You’re on the edge. • WRF simulation finishes. Nothing written to sbatch.err.out. Many “cfl” warnings in rsl.out.XXXX files. wrf_to_grads bombs, ending like this: time 0001-01-01_01:00:00, output variable PSFC Troubles finding level 100 above ground. Problems first occur at ( 1, 1) Surface pressure = NaN hPa. Error_in_finding_100_hPa_up - The model actually did blow up, generating NaNs. Simulation is worthless (except for debugging purposes) • WRF simulation stalls, but remains in queue. sbatch.err.out file length is nonzero. The model blew up, AND you need to remove it from the queue manually. See next slide.

Removing a stalled job • Look for sbatch.err.out. If it is nonzero length, your job bombed, and you need to remove it manually • To remove a job, first identify your WRF job with squeue –u YOURNETID JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) 538709 snow tcsh atm419 R 57:52 1 snow-02 538701 snow tcsh atm419 R 1:59:41 1 snow-10 538724 snow-nwp ATM419 atm419 R 0:29 1 snow-22 • Your WRF job is the one that doesn’t say “tcsh” • Remove it with qdel. Check your queue again to make sure it’s gone $ qdel 538724

New snow-nwp queue $ sbatch –p snow-nwp submit_wrf $ sinfo PARTITION AVAIL TIMELIMIT NODES STATE NODELIST snow-vis up 12:00:00 6 alloc snow-[01-02,09-10,14-15] snow-vis up 12:00:00 18 idle snow-[03-08,11-13,16-17,26-32] snow-dbg up 2-00:00:00 6 alloc snow-[01-02,09-10,14-15] snow-dbg up 2-00:00:00 18 idle snow-[03-08,11-13,16-17,26-32] snow up 12:00:00 6 alloc snow-[01-02,09-10,14-15] snow up 12:00:00 18 idle snow-[03-08,11-13,16-17,26-32] snow-1 up 4-00:00:00 1 drain snow-33 snow-1 up 4-00:00:00 7 alloc snow-[01-02,09-10,14-15,22] snow-1 up 4-00:00:00 21 idle snow-[03-08,11-13,16-17,23-32] snow-gst up 2-00:00:00 6 alloc snow-[01-02,09-10,14-15] snow-gst up 2-00:00:00 18 idle snow-[03-08,11-13,16-17,26-32] student* up 14-00:00:0 3 alloc cc1-[03-04,15] student* up 14-00:00:0 7 idle cc1-[05,07,09-13] snow-nwp up 12:00:00 1 alloc snow-22 snow-nwp up 12:00:00 3 idle snow-[23-25]

Trade-offs (TANSTAAFL) By default, WRF uses 3rd order RK time stepping, odd-order advection, and positive-definite methods for scalars (including moisture) These help prevent small-scale noise, which can lead to nonlinear instability, from emerging Odd-order advection “works” by causing implicit diffusion &dynamics rk_ord = 3, h_mom_adv_order = 5, v_mom_adv_order = 3, h_sca_adv_order = 5, v_sca_adv_order = 3, moist_adv_opt = 1, scalar_adv_opt = 1,

Supercell demo Create a directory called SUPERCELL2, and move into that directory Copy everything from this directory: cp /network/rit/lab/atm419lab/SC2/* . Execute make_all_links.csh Edit the namelist.input to make these changes: &dynamics rk_ord = 2, h_mom_adv_order = 4, v_mom_adv_order = 2, h_sca_adv_order = 4, v_sca_adv_order = 2, moist_adv_opt = 0, scalar_adv_opt = 0, was 3 was 5 was 1

Comparison srun ideal.exe sbatch –p snow submit_wrf OR sbatch –p snow-nwp submit_wrf wrf_to_grads control_file.z obsolete GrADS files called ctrl.ctl, ctrl.dat already exist in your directory for control run Open up both. Go to time 7 (1 hr forecast). Plot the variable “tc” for each. That will, by default, be at level z=1. These runs are 1 hr, 6 s time step (needed for ‘obsolete’) and have no added diffusion Point: with old methods, needed to add diffusion anyway. But obsolete run cold pool has spread farther. Newer schemes permit longer time steps.