Physics Implementation Three_level Structure What you might need to do

Slides:



Advertisements
Similar presentations
Weather Research & Forecasting: A General Overview
Advertisements

WRF Model: Software Architecture
Tutorial Notes: WRF Software
Add a Physics Scheme into WRF Model
Meteorologisches Institut der Universität München
A NUMERICAL PREDICTION OF LOCAL ATMOSPHERIC PROCESSES A.V.Starchenko Tomsk State University.
Some Coding Structure in WRF
The WRF Model: 2012 Annual Update
June 2003Yun (Helen) He1 Coupling MM5 with ISOLSM: Development, Testing, and Application W.J. Riley, H.S. Cooley, Y. He*, M.S. Torn Lawrence Berkeley National.
An intraseasonal moisture nudging experiment in a tropical channel version of the WRF model: The model biases and the moisture nudging scale dependencies.
Shortwave Radiation Options in the WRF Model
The Problem of Parameterization in Numerical Models METEO 6030 Xuanli Li University of Utah Department of Meteorology Spring 2005.
WRF Physics Options Jimy Dudhia. diff_opt=1 2 nd order diffusion on model levels Constant coefficients (khdif and kvdif) km_opt ignored.
Md. Mizanur Rahman Simulation of Seasonal Monsoon Rainfall over the SAARC Region by Dynamical Downscaling using WRF Model SAARC Meteorological Research.
© Crown copyright Met Office Radiation developments Latest work on the radiation code in the Unified Model James Manners, Reading collaboration meeting.
Overview of WRF ARW Thermodynamic Equation
1 NGGPS Dynamic Core Requirements Workshop NCEP Future Global Model Requirements and Discussion Mark Iredell, Global Modeling and EMC August 4, 2014.
How to set up and run WRF model. Outline n How to download and compile the WRF code? n Namelist n Input and output files.
WRF Model: Software Architecture and Code Structure John Michalakes, NCAR NCAR: W. Skamarock, J. Dudhia, D. Gill, A. Bourgeois, W. Wang, C. Deluca, R.
Guidelines for the CMM coding project 5 October 2006 (or, “How to make your life easier in the long run”)
THE EFFECT OF THE SURFACE CHARACTERISTICS ON THE DICE RESULTS SEEN BY THE MESONH MODEL M. A. Jiménez, P. Le Moigne and J. Cuxart DICE workshop, October.
Introduction to Running the WRF in LES Mode Jeff Massey April 1, 2014 University of Utah WRF Users Group.
Development of WRF-CMAQ Interface Processor (WCIP)
Mesoscale Modeling Review the tutorial at: –In class.
– Equations / variables – Vertical coordinate – Terrain representation – Grid staggering – Time integration scheme – Advection scheme – Boundary conditions.
Summary of Boundary Layer, Microphysics and Cumulus Options Jimy Dudhia NCAR/MMM.
Atmospheric Modeling in an Arctic System Model John J. Cassano Cooperative Institute for Research in Environmental Sciences and Department of Atmospheric.
Some WRF Software Architecture and Coding Features to Share Shu-Hua Chen UC Davis WRF: Weather Research and Forecasting model
Improvements of WRF Simulation Skills of Southeast United States Summer Rainfall: Focus on Physical Parameterization and Horizontal Resolution Laifang.
Initialization for Real Data Cases Dave Gill
Convective Parameterization Options
How to set up and run WRF model. Outline n How to download and compile the WRF code? n Namelist n Input and output files.
winter RADIATION FOGS at CIBA (Spain): Observations compared to WRF simulations using different PBL parameterizations Carlos Román-Cascón
Jonathan Pleim 1, Robert Gilliam 1, and Aijun Xiu 2 1 Atmospheric Sciences Modeling Division, NOAA, Research Triangle Park, NC (In partnership with the.
An Overview of the Noah- Distributed Land Surface Model David J. Gochis, Wei Yu, Fei Chen, Kevin Manning WRF Land Surface Modeling Workshop Sep. 13, 2005.
WRF Volcano modelling studies, NCAS Leeds Ralph Burton, Stephen Mobbs, Alan Gadian, Barbara Brooks.
Preliminary Study: Direct and Emission-Induced Effects of Global Climate Change on Regional Ozone and Fine Particulate Matter K. Manomaiphiboon 1 *, A.
Sensitivity Analysis of Mesoscale Forecasts from Large Ensembles of Randomly and Non-Randomly Perturbed Model Runs William Martin November 10, 2005.
Seasonal Modeling (NOAA) Jian-Wen Bao Sara Michelson Jim Wilczak Curtis Fleming Emily Piencziak.
Justin Glisan Iowa State University Department of Geological and Atmospheric Sciences RACM Project Update: ISU Atmospheric Modeling Component: Part 1 3rd.
HNMS contribution to CONSENS Petroula Louka & Flora Gofa Hellenic National Meteorological Service
Unified Noah LSM Code at NCAR Kevin W. Manning Fei Chen National Center for Atmospheric Research Boulder, CO.
Implementation and preliminary test of the unified Noah LSM in WRF F. Chen, M. Tewari, W. Wang, J. Dudhia, NCAR K. Mitchell, M. Ek, NCEP G. Gayno, J. Wegiel,
WRF Version 2: Physics Update Jimy Dudhia NCAR/MMM.
1 NEMS and NGGPS integration Presented By: Hendrik Tolman (NWS/NCEP/EMC) Contributors: EMC senior staff.
MCS Introduction Where? Observed reflectivity at 3km from
Computation and analysis of the Kinetic Energy Spectra of a SI- SL Model GRAPES Dehui Chen and Y.J. Zheng and Z.Y. Jin State key Laboratory of Severe Weather.
Deutscher Wetterdienst COSMO-ICON Physics Current Status and Plans Ulrich Schättler Source Code Administrator COSMO-Model.
Module 6 MM5: Overview William J. Gutowski, Jr. Iowa State University.
Mesoscale Modeling with a 3D Turbulence Scheme Jocelyn Mailhot and Yufei Zhu (Claude Pelletier) Environment Canada MSC / MRB 3 rd Annual Meeting on CRTI.
Test Cases for the WRF Height Coordinate Model
Initialization for Idealized Cases
November 21 st 2002 Summer 2009 WRFDA Tutorial WRF-Var System Overview Xin Zhang, Yong-Run Guo, Syed R-H Rizvi, and Michael Duda.
The NOAA Environmental Modeling System at NCEP Mark Iredell and the NEMS group NOAA/NWS/NCEP Environmental Modeling Center June 12, 2014.
Test Cases for the WRF Mass Coordinate Model 2D flow over a bell-shaped mountain WRFV1/test/em_hill2d_x 2D squall line (x, z ; y, z) WRFV1/test/em_squall2d_x.
Computational Modeling of 3D Turbulent Flows With MC2 Claude Pelletier Environment Canada MSC / MRB.
WRF-based rapid updating cycling system of BMB(BJ-RUC) and its performance during the Olympic Games 2008 Min Chen, Shui-yong Fan, Jiqin Zhong Institute.
A modeling study of cloud microphysics: Part I: Effects of Hydrometeor Convergence on Precipitation Efficiency. C.-H. Sui and Xiaofan Li.
Numerical Modeling Laboratory Yonsei University A new ice microphysical processes for a commonly used bulk parameterization of cloud and precipitation.
Ronald J Stouffer October 2015
WRF Four-Dimensional Data Assimilation (FDDA)
Status of the COSMO-Software and Documentation
Overview of the COSMO NWP model
J-Zephyr Sebastian D. Eastham
Midterm Review Programming in Fortran
Bill Scheftic Atmo 558 May 6th 2008
Convective and orographically-induced precipitation study
Joint GEOS-Chem and NCAR Modeling Workshop:
MODELING AT NEIGHBORHOOD SCALE Sylvain Dupont and Jason Ching
A brief introduction to NEMS
Presentation transcript:

Physics Implementation Three_level Structure What you might need to do WRF Model: Physics Implementation Shu-hua Chen NCAR/AFWA (UC Davis, Sep.) OUTLINE F S C I Y H P R W Physics Schemes Three_level Structure Rules for WRF physics WRF Physics Features WRF Language What you might need to do

Scheme Selection W F R Simple schemes for operation Y H P R W Simple schemes for operation Complicated schemes for research

Physics Schemes W F R P I H C Y S Physical Process Available Microphysics Kessler, Lin et al. , Ncloud3, Ncloud5 Cumulus KF, BMJ Subgrid scale turbulence TKE, Smagrinsky, Constant K Radiation RRTM(L), Dudhia(S), Goddard(S) PBL MRF Surface layer Similarity theory Land-surface layer 5-layer soil temperature

• Physics Interface Design W F R Simple User friendly Different dynamics cores Three-level structure =>

Three-level Structure F S C I Y H P R W Solver Physics_driver SELECT CASE (CHOICE) CASE ( NOPHY ) CASE ( SCHEME1 ) CALL XXX CASE ( SCHEME2 ) CALL YYY . CASE DEFAULT END SELECT Individual physics scheme ( XXX )

W F R . . . P I H C Y S phy_prep phy_init Radiation_driver pbl_driver … microphysics_driver Radiation_driver Cumulus_driver pbl_driver INIT . WRF solve_rk … moist_physics_prep ADV TENDENCIES . ADVANCE VARS .

phy_prep & moist_physics_prep F S C I Y H P R W • Decouple variables • Convert variables from C grid to A grid

Three-level Structure F S C I Y H P R W Solver Physics_driver SELECT CASE (CHOICE) CASE ( NOPHY ) CASE ( SCHEME1 ) CALL XXX CASE ( SCHEME2 ) CALL YYY . CASE DEFAULT END SELECT Individual physics scheme ( XXX )

Physics Standard Interface W SELECT CASE (CHOICE) CASE ( NOPHY ) CASE ( SCHEME1 ) CALL XXX(…) CASE ( SCHEME2 ) CALL YYY(…) . CASE DEFAULT END SELECT Physics_driver

Three-level Structure F S C I Y H P R W Solver Physics_driver SELECT CASE (CHOICE) CASE ( NOPHY ) CASE ( SCHEME1 ) CALL XXX CASE ( SCHEME2 ) CALL YYY . CASE DEFAULT END SELECT Individual physics scheme ( XXX )

Three Sets of Dimensions C I Y H P R W Domain size: ids, ide, jds, jde, kds, kde Memory size: ims, ime, jms, jme, kms, kme Tile size: its, ite, jts, jte, kts, kte

Logical Domain (ids,kds,jds) F S C I Y H P R W (ids,ide)

Memory size (ims,kms,jms) F S C I Y H P R W patch (ids,ide) halo (ims,ime)

Tile size (its,kts,jds) W F R P I H C Y S tile (its,ite) (ims,ime) halo (ims,ime) tile (its,ite)

W F R . . . P I H C Y S phy_prep phy_init Radiation_driver pbl_driver … microphysics_driver Radiation_driver Cumulus_driver pbl_driver INIT . WRF solve_rk … moist_physics_prep ADV TENDENCIES . ADVANCE VARS .

Rules for WRF Physics F S C I Y H P R W Coding rules

Coding Rules W F R P I H C Y S 1. F90 Replace continuation characters in the 6th column with f90 continuation `&‘ at end of previous line Subroutine kessler(QV, T, & its,ite,jts,jte,kts,kte, & ims,ime,jms,jme,kms,kme, & ids,ide,jds,jde,kds,kde) F77 Subroutine kessler(QV, T, . . . & its,ite,jts,jte,kts,kte,& ims,ime,jms,jme,kms,kme,& ids,ide,jds,jde,kds,kde ) F90

Coding Rules W F R P I H C Y S 1. F90 Replace continuation characters in the 6th column with f90 continuation `&‘ at end of previous line b)Replace the 1st column `C` for comment with `!` c This is a test F77 ! This is a test F90

Coding Rules W F R P I H C Y S 1. F90 2. No common block Replace continuation characters in the 6th column with f90 continuation `&‘ at end of previous line b)Replace the 1st column `C` for comment with `!` 2. No common block 3. Use “ implicit none ” 4. Use “ intent ” 5. Variable dimensions and do loops

Rules for WRF Physics W F R Coding rules One scheme one module P I H C Naming rules

Naming Rules W ex, module_cu_kf.F F R cu is for cumulus Y H P R W module_yy_xxx.F (module) yy = ra is for radiation bl is for PBL cu is for cumulus mp is for microphysics. xxx = individual scheme ex, module_cu_kf.F

Naming Rules W F R ex, RTHBLTEN P I H C Y S cu is for cumulus RXXYYTEN (tendencies) XX = variable (th, u, v, qv, qc, … ) YY = ra is for radiation bl is for PBL cu is for cumulus ex, RTHBLTEN

Rules for WRF Physics W F R One scheme one module Naming rules P I H C Coding rules One scheme one module Naming rules Vectorized code preferred ( might depend on which physics component )

WRF Physics Features W F R • Unified global constatnts P I H C Y S (module_model_constants.F) REAL , PARAMETER :: r_d = 287. REAL , PARAMETER :: r_v = 461.6 REAL , PARAMETER :: cp = 7.*r_d/2. REAL , PARAMETER :: cv = cp-r_d .

WRF Physics Features W F R • Unified global constatnts (module_model_constants.F) • Unified common calculations (saturation mixing ratio) • Vertical index (kms is at the bottom)

Three-level Structure F S C I Y H P R W Solver Physics_driver SELECT CASE (CHOICE) CASE ( NOPHY ) CASE ( SCHEME1 ) CALL XXX CASE ( SCHEME2 ) CALL YYY . CASE DEFAULT END SELECT Individual physics scheme ( XXX )

WRF Physics Features W F R • Unified global constatnts (module_model_constants.F) • Unified common calculations (saturation mixing ratio) • Vertical index (kms is at bottom) • kme = kte + 1 (physics) kme = kte (dynamics)

WRF Language W F R • Patch, tile, …. S C I Y H P R W • Patch, tile, …. • Moisture field, moist(i,k,j,?), is 4D • ? = P_QV, P_QC, P_QR, P_QI,P_QS, P_QG (module_state_description.F) • PARAM_FIRST_SCALAR IF ( P_QI .ge. PARAM_FIRST_SCALAR ) . . .

W P_QV, P_QC, P_QR, … F R Registry P I H C Y S package kesslerscheme mp_physics==1 - moist:qv,qc,qr package linscheme mp_physics==2 - moist:qv,qc,qr,qi,qs,qg package ncepcloud3 mp_physics==3 - moist:qv,qc,qr package ncepcloud5 mp_physics==4 - moist:qv,qc,

What you might need to do ? F S C I Y H P R W Run existing codes (namelist.input) Physics Buffet mp_physics = 2, ra_lw_physics = 1, ra_sw_physics = 1, bl_sfclay_physics = 1, bl_surface_physics = 1, bl_pbl_physics = 1, cu_physics = 1,

What you might need to do ? F S C I Y H P R W Run existing codes Modify existing codes Plug in your own codes

WRF Development Team F S C I Y H P R W