NCAR / music-box

A box/column model using MICM chemistry
https://ncar.github.io/music-box/branch/main/
Apache License 2.0
14 stars 9 forks source link

MusicBox with TUV photolysis (Use Case 10) #17

Closed mattldawson closed 1 month ago

mattldawson commented 4 years ago

Use case 10: Simple box model with TUV photolysis

The user wants to run a simple 48-hour (or any length of time) box model run with TUV photolysis. No input data exists for this scenario, so the user creates a NetCDF file in the native MusicBox format for a column of grid cells with the initial chemical species concentrations in each cell, and names the file my_initial_conditions.nc. They also create a my_evolving_conditions.nc file (also in the native MusicBox format) for 24-hour profiles of temperature, pressure, and methane and formaldehyde concentrations for each grid cell in the column and a 24-hour profile of solar zenith angle for the column, all at 2-hour intervals (or any interval they want). The environmental conditions will be reused every 24 hours to make up the 48-hour simulation time.

To run this scenario, they first copy the two NetCDF files to the configuration/ folder they created (see page 1 workflow) and write a my_config.json file that looks like this:

{
  “initial conditions” : {
    “my_initial_conditions.nc” : {}
  },
  “evolving conditions” : {
    “my_evolving_conditions.nc” : {
      “cycle time [hr]” : 24
    }
  },
  “box model options” : {
    “grid”                      : “column”,
    “pressure [Pa]”             : 101325.0,
    “chemistry time step [min]” : 5.0,
    “output time step [hr]”     : 1.0,
    “simulation length [hr]”    : 48.0
  },
  “photolysis module” : { “TUV” : { } }
}

They then follow the remainder of the workflow on page 1.

NOTES:

mattldawson commented 4 years ago

Hi @fvitt - let me know when you're ready to try to start using the refactored TUV in MusicBox 2.0 and maybe we can do it as part of this issue

zmoon commented 4 weeks ago

Is there an example or something with this use case now? (noticed the recent closure)

K20shores commented 4 weeks ago

@zmoon not yet. We have not had time to finish the python side of TUV. I'll be sure to ping you when we get an example working.