The Lin-Rood Finite Volume (FV) Dynamical Core: Tutorial

Slides:



Advertisements
Similar presentations
GEMS Kick- off MPI -Hamburg CTM - IFS interfaces GEMS- GRG Review of meeting in January and more recent thoughts Johannes Flemming.
Advertisements

Weather Research & Forecasting: A General Overview
A High-Order Finite-Volume Scheme for the Dynamical Core of Weather and Climate Models Christiane Jablonowski and Paul A. Ullrich, University of Michigan,
Geophysical Fluid Dynamics Laboratory Review June 30 - July 2, 2009 Geophysical Fluid Dynamics Laboratory Review June 30 - July 2, 2009.
V. Shashkin et al. Mass-conservative SL, WWOSC-2104, P&P August 21, 2014 Inherently mass-conservative semi-Lagrangian transport scheme and global hydrostatic.
WRF Modeling System V2.0 Overview
Finite Volume II Philip Mocz. Goals Construct a robust, 2nd order FV method for the Euler equation (Navier-Stokes without the viscous term, compressible)
Discretizing the Sphere for Multi-Scale Air Quality Simulations using Variable-Resolution Finite-Volume Techniques Martin J. Otte U.S. EPA Robert Walko.
(c) MSc Module MTMW14 : Numerical modelling of atmospheres and oceans Staggered schemes 3.1 Staggered time schemes.
RAMS/BRAMS Basic equations and some numerical issues.
Cold Fronts and their relationship to density currents: A case study and idealised modelling experiments Victoria Sinclair University of HelsinkI David.
ICONAM ICOsahedral Non-hydrostatic Atmospheric Model -
Coupled Fluid-Structural Solver CFD incompressible flow solver has been coupled with a FEA code to analyze dynamic fluid-structure coupling phenomena CFD.
Design and evaluation of the National Institute for Environmental Studies (NIES) transport model Dmitry Belikov and Shamil Maksyutov National Institute.
Eta Model. Hybrid and Eta Coordinates ground MSL ground Pressure domain Sigma domain  = 0  = 1  = 1 Ptop  = 0.
Nesting. Eta Model Hybrid and Eta Coordinates ground MSL ground Pressure domain Sigma domain  = 0  = 1  = 1 Ptop  = 0.
1 NGGPS Dynamic Core Requirements Workshop NCEP Future Global Model Requirements and Discussion Mark Iredell, Global Modeling and EMC August 4, 2014.
Non-hydrostatic algorithm and dynamics in ROMS Yuliya Kanarska, Alexander Shchepetkin, Alexander Shchepetkin, James C. McWilliams, IGPP, UCLA.
SELFE: Semi-implicit Eularian- Lagrangian finite element model for cross scale ocean circulation Paper by Yinglong Zhang and Antonio Baptista Presentation.
Mixing diagnostics Atmospheric tracers are often observed to be functionally related, and these relations can be physically or chemically significant.
Implementation of a Cubed- sphere Finite-volume Dynamical Core into CAM Linjiong Zhou 1,2, Minghua Zhang 1, Steve Goldhaber 3 1 SoMAS, Stony Brook University.
NUMERICAL WEATHER PREDICTION K. Lagouvardos-V. Kotroni Institute of Environmental Research National Observatory of Athens NUMERICAL WEATHER PREDICTION.
A Look at High-Order Finite- Volume Schemes for Simulating Atmospheric Flows Paul Ullrich University of Michigan.
Zängl ICON The Icosahedral Nonhydrostatic model: Formulation of the dynamical core and physics-dynamics coupling Günther Zängl and the ICON.
Development of WRF-CMAQ Interface Processor (WCIP)
– Equations / variables – Vertical coordinate – Terrain representation – Grid staggering – Time integration scheme – Advection scheme – Boundary conditions.
– Equations / variables – Vertical coordinate – Terrain representation – Grid staggering – Time integration scheme – Advection scheme – Boundary conditions.
Implementation of an Advection Scheme based on Piecewise Parabolic Method (PPM) in the MesoNH The main goal of this study was to estimate if the RGSW model.
Hans Burchard Leibniz Institute for Baltic Sea Research Warnemünde How to make a three-dimensional numerical model that.
Altitude (km) January Global AverageTemperature (K) Pressure (hPa) With O( 3 P) Cooling WACCM-X The Whole Atmosphere Community Climate Model – eXtended.
The Finite-Volume Dynamical Core on GPUs within GEOS-5 William Putman Global Modeling and Assimilation Office NASA GSFC 9/8/11 Programming weather, climate,
A cell-integrated semi-Lagrangian dynamical scheme based on a step-function representation Eigil Kaas, Bennert Machenhauer and Peter Hjort Lauritzen Danish.
Georgia Institute of Technology Initial Application of the Adaptive Grid Air Quality Model Dr. M. Talat Odman, Maudood N. Khan Georgia Institute of Technology.
J.-Ph. Braeunig CEA DAM Ile-de-FrancePage 1 Jean-Philippe Braeunig CEA DAM Île-de-France, Bruyères-le-Châtel, LRC CEA-ENS Cachan
A baroclinic instability test case for dynamical cores of GCMs Christiane Jablonowski (University of Michigan / GFDL) David L. Williamson (NCAR) AMWG Meeting,
KoreaCAM-EULAG February 2008 Implementation of a Non-Hydrostatic, Adaptive-Grid Dynamics Core in the NCAR Community Atmospheric Model William J. Gutowski,
“Very high resolution global ocean and Arctic ocean-ice models being developed for climate study” by Albert Semtner Extremely high resolution is required.
Recent Developments in the NRL Spectral Element Atmospheric Model (NSEAM)* Francis X. Giraldo *Funded.
Implementation of Grid Adaptation in CAM: Comparison of Dynamic Cores Babatunde J. Abiodun 1,2 William J. Gutowski 1, and Joseph M. Prusa 1,3 1 Iowa State.
1 The Nonhydrostatic Icosahedral (NIM) Model: Description and Potential Use in Climate Prediction Alexander E. MacDonald Earth System Research Lab Climate.
Matthias Raschendorfer DWD Recent extensions of the COSMO TKE scheme related to the interaction with non turbulent scales COSMO Offenbach 2009 Matthias.
需完成之平行化工作 1. 平行化 domain decomposition 之方案確定。 2. timcom 之 preprocessor with f95 and dynamic allocated memory (inmets, indata, bounds) 3. timcom main code.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Standardized Test Set for Nonhydrostatic Dynamical Cores of NWP Models
The Impact of the Lin-Rood Dynamical Core on Modeled Continental Precipitation Richard B. Rood Atmospheric, Oceanic and Space Sciences University of Michigan.
Mass Coordinate WRF Dynamical Core - Eulerian geometric height coordinate (z) core (in framework, parallel, tested in idealized, NWP applications) - Eulerian.
NOAA Global Modeling Workshop January 2006NOAA/ESRL FIM Contribution toward future NOAA global modeling system Developed at ESRL, collaboration so.
EGU General assembly 2014, AS 1.5 A three-dimensional Conservative Cascade semi-Lagrangian transport Scheme using the Reduced Grid on the sphere (CCS-RG)
Model and Data Hierarchies for Simulating and Understanding Climate Marco A. Giorgetta Demands on next generation dynamical solvers.
Vincent N. Sakwa RSMC, Nairobi
Development of an Atmospheric Climate Model with Self-Adapting Grid and Physics Joyce E. Penner 1, Michael Herzog 2, Christiane Jablonowski 3, Bram van.
Deutscher Wetterdienst Flux form semi-Lagrangian transport in ICON: construction and results of idealised test cases Daniel Reinert Deutscher Wetterdienst.
Global variable-resolution semi-Lagrangian model SL-AV: current status and further developments Mikhail Tolstykh Institute of Numerical Mathematics, Russian.
Performance of a Semi-Implicit, Semi-Lagrangian Dynamical Core for High Resolution NWP over Complex Terrain L.Bonaventura D.Cesari.
Computational Modeling of 3D Turbulent Flows With MC2 Claude Pelletier Environment Canada MSC / MRB.
Representing Effects of Complex Terrain on Mountain Meteorology and Hydrology Steve Ghan, Ruby Leung, Teklu Tesfa, PNNL Steve Goldhaber, NCAR.
Mirin – AMWG 2006 – Slide 1 Coupled Finite-Volume Simulations at One-Degree Resolution Art Mirin and Govindasamy Bala Lawrence Livermore National Laboratory.
An accurate, efficient method for calculating hydrometeor advection in multi-moment bulk and bin microphysics schemes Hugh Morrison (NCAR*) Thanks to:
Harvard Ocean Prediction System (HOPS)
Adaptive Grids in Climate Modeling: Dynamical Core Tests
J-Zephyr Sebastian D. Eastham
National Center for Atmospheric Research
Modeling the Atmos.-Ocean System
COSMO-GM Rome, WG-2 Meeting, Sept. 5, 2011
Finite Volume Method Philip Mocz.
Introduction to Fluid Dynamics & Applications
Bogdan Rosa1, Marcin Kurowski1, Damian Wójcik1,
Low Order Methods for Simulation of Turbulence in Complex Geometries
Conservative Dynamical Core (CDC)
GungHo! A new dynamical core for the Unified Model Nigel Wood, Dynamics Research, UK Met Office © Crown copyright Met Office.
Presentation transcript:

The Lin-Rood Finite Volume (FV) Dynamical Core: Tutorial Christiane Jablonowski National Center for Atmospheric Research Boulder, Colorado NCAR Tutorial, May / 31/ 2005

Topics that we discuss today The Lin-Rood Finite Volume (FV) dynamical core History: where, when, who, … Equations & some insights into the numerics Algorithm and code design The grid Horizontal resolution Grid staggering: the C-D grid concept Vertical grid and remapping technique Practical advice when running the FV dycore Namelist and netcdf variables variables (input & output) Dynamics - physics coupling Hybrid parallelization concept Distributed-shared memory parallelization approach: MPI and OpenMP Everything you would like to know

Who, when, where, … FV transport algorithm developed by S.-J. Lin and Ricky Rood (NASA GSFC) in 1996 2D Shallow water model in 1997 3D FV dynamical core around 1998/1999 Until 2000: FV dycore mainly used in data assimilation system at NASA GSFC Also: transport scheme in ‘Impact’, offline tracer transport In 2000: FV dycore was added to NCAR’s CCM3.10 (now CAM3) Today (2005): The FV dycore might become the default in CAM3 Is used in WACCAM Is used in the climate model at GFDL

Dynamical cores of General Circulation Models Dynamics Physics FV: No explicit diffusion (besides divergence damping)

The NASA/NCAR finite volume dynamical core 3D hydrostatic dynamical core for climate and weather prediction: 2D horizontal equations are very similar to the shallow water equations 3rd dimension in the vertical direction is a floating Lagrangian coordinate: pure 2D transport with vertical remapping steps Numerics: Finite volume approach conservative and monotonic 2D transport scheme upwind-biased orthogonal 1D fluxes, operator splitting in 2D van Leer second order scheme for time-averaged numerical fluxes PPM third order scheme (piecewise parabolic method) for prognostic variables Staggered grid (Arakawa D-grid for prognostic variables)

The 3D Lin-Rood Finite-Volume Dynamical Core Momentum equation in vector-invariant form Continuity equation Pressure gradient term in finite volume form Thermodynamic equation, also for tracers (replace ): The prognostics variables are: p: pressure thickness, =Tp-: scaled potential temperature

Finite volume principle Continuity equation in flux form: Integrate over one time step t and the 2D finite volume  with area A: Integrate and rearrange: Time-averaged numerical flux Spatially-averaged pressure thickness

Finite volume principle Apply the Gauss divergence theorem: unit normal vector Discretize:

Orthogonal fluxes across cell interfaces Flux form ensures mass conservation G i,j+1/2 F i-1/2,j F i+1/2,j (i,j) G i,j-1/2 Upwind-biased: Wind direction F: fluxes in x direction G: fluxes in y direction

Quasi semi-Lagrange approach in x direction CFLy = v * t/y < 1 required G i,j+1/2 F i-5/2,j F i+1/2,j (i,j) G i,j-1/2 CFLx = u * t/y > 1 possible: implemented as an integer shift and fractional flux calculation

Numerical fluxes & subgrid distributions 1st order upwind constant subgrid distribution 2nd order van Leer linear subgrid distribution 3rd order PPM (piecewise parabolic method) parabolic subgrid distribution ‘Monotonocity’ versus ‘positive definite’ constraints Numerical diffusion Explicit time stepping scheme: Requires short time steps that are stable for the fastest waves (e.g. gravity waves) CGD web page for CAM3: http://www.ccsm.ucar.edu/models/atm-cam/docs/description/

Subgrid distributions: constant (1st order) x1 x2 x3 x4 u

Subgrid distributions: piecewise linear (2nd order) van Leer x1 x2 x3 x4 u See details in van Leer 1977

Subgrid distributions: piecewise parabolic (3rd order) PPM x1 x2 x3 x4 u See details in Carpenter et al. 1990 and Colella and Woodward 1984

Monotonicity constraint Prevents over- and undershoots Adds diffusion not allowed van Leer Monotonicity constraint results in discontinuities x1 x2 x3 x4 u See details of the monotinity constraint in van Leer 1977

Simplified flow chart subcycled 1/2 t only: compute C-grid time-mean winds stepon dynpkg cd_core c_sw d_p_coupling trac2d physpkg te_map full t: update all D-grid variables d_sw p_d_coupling Vertical remapping

Grid staggerings (after Arakawa) B grid u v u v A grid u v u v u v C grid v u D grid u v v u Scalars: v u

Regular latitude - longitude grid Converging grid lines at the poles decrease the physical spacing x Digital and Fourier filters remove unstable waves at high latitudes Pole points are mass-points

Typical horizontal resolutions  x  Lat x Lon Max. x (km) t (s) ≈ spectral 4o x 5o 46 x 72 556 7200 T21 (32x64) 2o x 2.5o 91 x 144 278 3600 T42 (64x128) 1o x 1.25o 181 x 288 139 1800 T85 (128x256) Time step is the ‘physics’ time step: Dynamics are subcyled using the time step t/nsplit ‘nsplit’ is typically 8 or 10 CAM3: check (dtime=1800s due to physics ?) WACCAM: check (nsplit = 4, dtime=1800s for 2ox2.5o ?) Defaults:

Idealized baroclinic wave test case The coarse resolution does not capture the evolution of the baroclinic wave Jablonowski and Williamson 2005

Idealized baroclinic wave test case Finer resolution: Clear intensification of the baroclinic wave

Idealized baroclinic wave test case Finer resolution: Clear intensification of the baroclinic wave, it starts to converge

Idealized baroclinic wave test case Baroclinic wave pattern converges

Idealized baroclinic wave test case: Convergence of the FV dynamics Global L2 error norms of ps Solution starts converging at 1deg Shaded region indicates the uncertainty of the reference solution

Floating Lagrangian vertical coordinate 2D transport calculations with moving finite volumes (Lin 2004) Layers are material surfaces, no vertical advection Periodic re-mapping of the Lagrangian layers onto reference grid WACCAM: 66 vertical levels with model top around 130km CAM3: 26 levels with model top around 3hPa (40 km) http://www.ccsm.ucar.edu/models/atm-cam/docs/description/

Physics - Dynamics coupling Prognostic data are vertically remapped (in cd_core) before dp_coupling is called (in dynpkg) Vertical remapping routine computes the vertical velocity  and the surface pressure ps d_p_coupling and p_d_coupling (module dp_coupling) are the interfaces to the CAM3/WACCAM physics package Copy / interpolate the data from the ‘dynamics’ data structure to the ‘physics’ data structure (chunks), A-grid Time - split physics coupling: instantaneous updates of the A-grid variables the order of the physics parameterizations matters physics tendencies for u & v updates on the D grid are collected

Practical tips Namelist variables: What do IORD, JORD, KORD mean? IORD and JORD at the model top are different (see cd_core.F90) Relationship between dtime nsplit (what happens if you don’t select nsplit or nsplit =0, default is computed in the routine d_split in dynamics_var.F90) time interval for the physics & vertical remapping step Input / Output: Initial conditions: staggered wind components US and VS required (D-grid) Wind at the poles not predicted but derived User’s Guide: http://www.ccsm.ucar.edu/models/atm-cam/docs/usersguide/

Practical tips Namelist variables: IORD, JORD, KORD determine the numerical scheme IORD: scheme for flux calculations in x direction JORD: scheme for flux calculations in y direction KORD: scheme for the vertical remapping step Available options: - 2: linear subgrid, van-Leer, unconstrained 1: constant subgrid, 1st order 2: linear subgrid, van Leer, monotonicity constraint (van Leer 1977) 3: parabolic subgrid, PPM, monotonic (Colella and Woodward 1984) 4: parabolic subgrid, PPM, monotonic (Lin and Rood 1996, see FFSL3) 5: parabolic subgrid, PPM, positive definite constraint 6: parabolic subgrid, PPM, quasi-monotone constraint Defaults: 4 (PPM) on the D grid (d_sw), -2 on the C grid (c_sw)

‘Hybrid’ Computer Architecture SMP: symmetric multi-processor Hybrid parallelization technique possible: Shared memory (OpenMP) within a node Distributed memory approach (MPI) across nodes Example: NCAR’s Bluesky (IBM) with 8-way and 32-way nodes

Schematic parallelization technique 1D Distributed memory parallelization (MPI) across the latitudes: Proc. NP 1 2 Eq. 3 4 SP Longitudes 340

Schematic parallelization technique Each MPI domain contains ‘ghost cells’ (halo regions): copies of the neighboring data that belong to different processors NP Proc. 2 Eq. 3 ghost cells for PPM SP Longitudes 340

Schematic parallelization technique Shared memory parallelization (in CAM3 most often) in the vertical direction via OpenMP compiler directives: Typical loop: do k = 1, plev … enddo Can often be parallelized with OpenMP (check dependencies): !$OMP PARALLEL DO …

Schematic parallelization technique Shared memory parallelization (in CAM3 most often) in the vertical direction via OpenMP compiler directives: k CPU e.g.: assume 4 parallel ‘threads’ and a 4-way SMP node (4 CPUs) !$OMP PARALLEL DO … do k = 1, plev … enddo 1 1 4 5 2 8 3 4 plev

Thank you ! Any questions ??? Tracer transport ? Fortran code …

References Carpenter, R., L., K. K. Droegemeier, P. W. Woodward and C. E. Hanem 1990: Application of the Piecewise Parabolic Method (PPM) to Meteorological Modeling. Mon. Wea. Rev., 118, 586-612 Colella, P., and P. R. Woodward, 1984: The piecewise parabolic method (PPM) for gas-dynamical simulations. J. Comput. Phys., 54,174-201 Jablonowski, C. and D. L. Williamson, 2005: A baroclinic instability test case for atmospheric model dynamical cores. Submitted to Mon. Wea. Rev. Lin, S.-J., and R. B. Rood, 1996: Multidimensional Flux-Form Semi-Lagrangian Transport Schemes. Mon. Wea. Rev., 124, 2046-2070 Lin, S.-J., and R. B. Rood, 1997: An explicit flux-form semi-Lagrangian shallow water model on the sphere. Quart. J. Roy. Meteor. Soc., 123, 2477-2498 Lin, S.-J., 1997: A finite volume integration method for computing pressure gradient forces in general vertical coordinates. Quart. J. Roy. Meteor. Soc., 123, 1749-1762 Lin, S.-J., 2004: A ‘Vertically Lagrangian’ Finite-Volume Dynamical Core for Global Models. Mon. Wea. Rev., 132, 2293-2307 van Leer, B., 1977: Towards the ultimate conservative difference scheme. IV. A new approach to numerical convection. J. Comput. Phys., 23. 276-299