EXERCISE 2

Exercise Volcanic Ash: Using the the prep_chem tool to conduct volcanic ash simulation

***************************************************************************

Purpose: To familiarize the user with the available global volcanic data set. This data set uses a program called "prep_chem_sources" to read the grid location and volcano information and map the eruption data to the user specified simulation domain.

The use of the prep_chem_sources program is complex and requires the user to be familiar with the simulation domain mapping information, the location of various data sets and where they are obtained as well as located on their particular system. Also, the user needs to be very familiar with the WRF-Chem registry (WRFV3/Registry/registry.chem) as the conversion process for this data that relies on the correct specification of chemistry namelist options. See the WRF-Chem Quick_start guide, the User's guide as well as the WRF-Chem FAQ web page for additional information.

This exercise demonstrates the methodology for making a WRF-Chem forecast. All forecasts should follow the process shown here which is:

Produce a WRF simulation for your domain of interest with chemistry turned off.

Generate emissions data file for the domain and chemical mechanism of interest and write them into an intermediate file.

Convert the emission into a WRF chemical emissions input file.

Produce a new WRF simulation for your domain of interest with chemistry.

***************************************************************************

Please finish the Exercise1 before you try this exercise!

***************************************************************************

1. Before starting, it is assumed that the previous WRF-Chem emissions tutorial exercises have been finished. If the previous exercises have not been done, please return to the main emissions tutorial page and do the skipped emissions tutorial exercise(s).

2. Be sure your environmental variables are set. You don't have to compile WRFV3, but it is always a good idea to have them set.

3. Go to your prep_sources_chem run directory under the {Run_prep} directory.

cd ${Run_prep}

cp prep_chem_sources.inp

4. Edit the prep_sources_chem.inp input file settings to have emissions produced for 00UTC 14 July 2010 and add in the volcanic ash. This is accomplised by turning on use_volcanoes, providing the volcano_index and the beginning time of the volcanic eruption (assume run start time).

ihour=00,

iday=14,

imon=07,

iyear=2010,

use_volcanoes=1,

volcano_index =9, !Mount Vesuvius (Italy)

begin_eruption='201007140000', !begin time UTC of eruption YYYYMMDDhhmm

"""""""""""OPTIONAL"""""""""""

""""""""""""START"""""""""""""

But what if I want a different volcano? The volc_emissions.f90 routine in the PREP_CHEM_SOURCES/src directory has a listing of 1535 volcanos from around the world. Look through the table at the beginning of the routine and find the one you want and remember the integer value in the comments on the right hand side.

'WESTEIFELVOLCFIELD '&! 1

,'CHAINEDESPUYS '&! 2

,'OLOTVOLCFIELD '&! 3

,'CALATRAVAVOLCFIELD '&! 4

Enter the integer value as the volcano_index in your prep_chem_sources.inp file.

"""""""""""OPTIONAL"""""""""""

"""""""""""""END""""""""""""""

5. run prep_chem_sources_RADM_WRF_FIM.exe. You should see the following message at the end of a successful run.

=> ------------------------------------------------------

=> Volcanoes Eruption Section ---------------------------

=> ------------------------------------------------------

=> Gocart Background Section ---------------------------

writing spc = DMS 41 41 12

DMS for month= 7

gocart_bg_spc_nameDMS

writing spc=EROD 41 41 3

writing spc=H2O2 41 41 55

writing spc=OH 41 41 55

writing spc=NO3 41 41 55

# (No, there is not a nice ending statement at this time.)

6. Verify that the emissions data exists in the prep_chem_sources directory and that their size is (approximately) correct. Depending upon your system and data used the file sizes could vary by a small fraction.

WRF-T-2010-07-14-000000-g1-volc.bin _____________ 33768 bytes

WRF-T-2010-07-14-000000-g1-gocartBG.bin ________ 1136624 bytes

WRF-T-2010-07-14-000000-g1-bb.bin _______________ 235672 bytes

WRF-T-2010-07-14-000000-g1-ab.bin _______________ 181816 bytes

7. Link these files to the ${Run_convert_emiss} directory since the convert_emiss.exe in WRF-Chem v3.8 does not work. So we have to use v3.6 to do the convert_emiss.exe.

ln -sf ../Run_prep/WRF-T-2010-07-14-000000-g1-gocartBG.bin wrf_gocart_backg

ln -sf ../Run_prep/WRF-T-2010-07-14-000000-g1-ab.bin emissopt3_d01

ln -sf ../Run_prep/WRF-T-2010-07-14-000000-g1-bb.bin emissfire_d01

ln -sf ../Run_prep/WRF-T-2010-07-14-000000-g1-volc.bin volc_d01

8. Copy namelist.input and wrfinput_d01 from ${Exercise_volcanic_ash} and set the correct options for the namelist.input file in your ${Run_convert_emiss} directory. Using settings for dust, sea salt, DMS, and biomass burning will not hurt the conversion process for volcanic ash so you can leave those settings alone. Also, be sure that the settings for the auxiliary input file values are correct or there will be no data read in or values assigned in the output file. Remember, in column 8 of the registry.chem file the auxiliary input port numbers are set and they have been assigned as:

auxinput_5 -> Anthropogenic emissions

auxinput_6 -> Biogenic emissions (BEIS, MEGAN)

auxinput_7 -> Surface biomass burning fields

auxinput_8 -> GOCART background fields

auxinput_12 -> Chemistry initial fields

auxinput_13 -> Volcanic ash emissions

auxinput_14 -> Aircraft emissions

auxinput_15 -> Green House Gas emissions

9. You have to edit the model time, turn on the emiss_opt_vol=1

run_days = 2,

start_year = 2010,

start_month = 07,

start_day = 14,

end_year = 2010,

end_month = 07,

end_day = 16,

io_form_auxinput13 = 2,

emiss_opt_vol = 1,

10. With the updated namelist.input file you can now run convert_emiss.exe.

./convert_emiss.exe

The output files for volcanic ash is

wrfchemv_d01 -> Volcanic Ash emissions

And the convert_emiss.exe program text output should say similar to the following:

*********************************************************************

START DATE 2010-07-14_00:00:00 5184000 21600

END DATE 2010-07-16_00:00:00

I am reading global volcanic emissions, dims: = 1 40 1 40

OPENED FILE: volc_d01

OPEN EMISSIONS WRF file for emissions coming from volcano data set

EMISSIONS CONVERSION : end of program

*********************************************************************

# Use a netCDF data file viewer to examine the volcanic ash emissions data. Does it look like it matches your domain?

ncview wrfchemv_d01

# Look at E_VASH9 e.g. (press the "Linear" button)

11. If the volcanic ash emissions are correct, move or link the file to the ${Run_chem} directory.

link the wrfchemv_d01 file to you ${Run_chem}

12. in the namelist.input set

chem_opt=400

emiss_opt_vol=1

13.With the namelist.input file set you can run real.exe to produce the wrfinput file.

Examine the wrfinput data file. Do you see data in the GOCART background fields? You will find 10 "vash" arrays in the wrfinput file, but the volcano has not erupted so they will all be zero.

./real.exe

# You will see "d01 2010-07-16_00:00:00 real_em: SUCCESS COMPLETE REAL_EM INIT" in the rsl.error.0000.

14.With the input and boundary conditions files built you can now run wrf.exe. As volcanic emissions are needed during the WRF run you should keep auxinput13 turned on.

./wrf.exe

It will probably take approximately 5 minutes to finish the simulation on your computer.

15.Once again, when finished you should examine results of your simulation. Verify that the model text output file (rsl.out.0000) contains a messages saying:

mediation_integrate: med_read_wrf_volc_emiss: Open file wrfchemv_d01

mediation_integrate: med_read_wrf_volc_emiss: Read volcanic ash emissions

16. Examine the WRF output file. Do you see the volcanic ash in the vash_1 through vash_10 fields above the surface? Does the ash evolve in time?

17. What if my particular eruption does not have the standard height as defined in the code? Can I change the plume height? The answer is yes, by setting the ash emissions height in the chemistry namelist. For example, if the plume should go up to 20,000 km one can set the ash emissions height as follows:

emiss_ash_hgt = 20000.,

18. Save the wrfoutput file to a new name (wrfout_volc1 for example).

19. Set the emissions ash height to 20 km and rerun wrf.exe. Compare the results with the default settings. Do you see any differences? Don't forget to adjust the scale as a deep eruption is assumed to put out a lot more ash than a shallow eruption.

This concludes WRF-Chem emissions tutorial for volcanic ash simulation.




Return to WRF-Chem Tutorial Page

Return to WRF-Chem Main Page