Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: update tag

The Model for Simulating Aerosol Interactions and Chemistry (MOSAIC) is a comprehensive aerosol chemistry module designed to dynamically partition H2SO4, MSA, HNO3, HCl, NH3 and secondary organic aerosol (SOA) to different aerosol size bins/modes, driven by particle-phase thermodynamics and heterogeneous chemical reactions (Zaveri et al., JGR, doi:10.1029/2007JD008782, 2008; Zaveri et al., JAMES, doi:10.1029/2020MS002346, 2021).  It has been implemented into CESM2, but is not yet available in the standard code.  A full description of this implementation is in Lu et al., JGR-Atmospheres, doi:10.1029/2021JD034809, 2021).  

Get the CESM code with MOSAIC implementedthe CESM code with MOSAIC implemented

You can get the CESM source code with MOSAIC by executing the following commands:

Code Block
languagebash
cd your_code_directory
git clone https://github.com/ESCOMP/CAM -b zz_cam6_3_018_mosaic0.3 your_mosaic_directory
cd your_mosaic_directory
./manage_externals/checkout_externals

'your_code_directory' should be a directory in your home or work space where you keep CESM source code.  Replace 'your_mosaic_directory' with an appropriate name that reflects this source code.  

You will get a message "You are in 'detached HEAD' state. ..." which is fine.  The mosaic code is not on the main code trunk.

April 2024: the tag "zz_cam6_3_018_mosaic0.3" includes updates replacing SVN with GIT protocols.

CESM tutorials should be helpful if you are not familiar with CESM/CAM-chem, and how to set up a case from the code.

There is not a compset for the MOSAIC scheme so you must make the changes listed below.  Start with a CAM-chem compset (such as FCnudged).

Create new case

After creating a new case in the usual way (use compset FCnudged), issue the following commands in your new case directory (for running on Derecho)You can get the CESM source code with MOSAIC by:

Code Block
languagebash
git clone https://github.com/ESCOMP/CAM -b  zz_cam6_3_018_mosaic_branch

...

./xmlchange PIO_STRIDE=1
./xmlchange NTASKS=2048
./case.setup

Change env_build.xml

Once you set up your case from the code through create_newcase, you You need to change a few files to use MOSAIC. 

...

Replace "MOSAIC_MECH_FILE" to your file path. The mechanism file is available to download herewith the full path to the MOSAIC mechanism file, which you can download here and copy to Derecho (or your HPC): MZ272_TS1.1_simpleVBS_MOSAIC_20210528.in

...

3) If you want to save these newly added species to the history output files (e.g., *h0*, *h1*, etc.), of course, you need to add these to fincl1, fincl2, etc You will also need to remove the old aerosol species (ncl_*) from the default output


Additional information

  • The current CAM-chem/MOSAIC was implemented in CAM6.3.018, which is similar to the CESM2.2 public version but with some minor updates made to CAM. 
  • We have only used it using the "FCnudged" compset. No other compsets have been tested yet. FHIST compset will not work. 
  • You should use "MAM4" to use MOSAIC at this moment, since some parts of the code were hard coded to MAM4 (MAM3, MAM5 and MAM7 are not compatible with MOSAIC). We are hoping that it can be more flexible in the future when MOSAIC is available in the default version.

...