Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add invariant species and add entries for the status of parameterized and advected #3

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
36 changes: 30 additions & 6 deletions mechanisms/chapman/micm/species.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,64 @@
"type": "CHEM_SPEC",
"absolute tolerance": 1e-12,
"molecular weight [kg mol-1]": 0.0280134,
"__is advected": true
"__is advected": false,
"__is parameterized": true
},
{
"name": "M",
"type": "CHEM_SPEC",
"tracer type": "THIRD_BODY"
"tracer type": "THIRD_BODY",
"__is advected": false,
"__is parameterized": true
},
{
"name": "O",
"type": "CHEM_SPEC",
"absolute tolerance": 1e-12,
"molecular weight [kg mol-1]": 0.0159994,
"__is advected": false
"__is advected": false,
"__is parameterized": false
},
{
"name": "O1D",
"type": "CHEM_SPEC",
"absolute tolerance": 1e-12,
"molecular weight [kg mol-1]": 0.0159994,
"__is advected": false
"__is advected": false,
"__is parameterized": false
},
{
"name": "O2",
"type": "CHEM_SPEC",
"absolute tolerance": 1e-12,
"molecular weight [kg mol-1]": 0.0319988,
"__is advected": true
"__is advected": false,
"__is parameterized": false,
"__is added to profile": true,
"__unit" : "molecule cm-3",
"__scale height [km]": 7.0
},
{
"name": "O3",
"type": "CHEM_SPEC",
"absolute tolerance": 1e-12,
"molecular weight [kg mol-1]": 0.0479982,
"__is advected": true
"__is advected": true,
"__is parameterized": false,
"__is added to profile": true,
"__unit" : "molecule cm-3",
"__scale height [km]": 7.0
},
{
"name": "air",
"type": "CHEM_SPEC",
"absolute tolerance": 1e-12,
"molecular weight [kg mol-1]": 0.0289644,
"__is advected": false,
"__is parameterized": false,
"__is added to profile": true,
"__unit" : "molecule cm-3",
"__scale height [km]": 8.01
}
]
}
18 changes: 0 additions & 18 deletions mechanisms/chapman/tuvx/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@
}
],
"profiles": [
{
"name": "O3",
"type": "O3",
"units": "molecule cm-3",
"file path": "musica_configurations/chapman/tuvx/data/profiles/atmosphere/ussa.ozone"
},
{
"name": "air",
"type": "air",
"units": "molecule cm-3",
"file path": "musica_configurations/chapman/tuvx/data/profiles/atmosphere/ussa.dens"
},
{
"name": "O2",
"type": "O2",
"units": "molecule cm-3",
"file path": "musica_configurations/chapman/tuvx/data/profiles/atmosphere/ussa.dens"
},
{
"name": "solar zenith angle",
"type": "solar zenith angle",
Expand Down
39 changes: 37 additions & 2 deletions mechanisms/terminator/micm/species.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,49 @@
"type": "CHEM_SPEC",
"absolute tolerance": 1e-12,
"molecular weight [kg mol-1]": 0.035453,
"__is advected": true
"__is advected": true,
"__is parameterized": false
boulderdaze marked this conversation as resolved.
Show resolved Hide resolved
},
{
"name": "Cl2",
"type": "CHEM_SPEC",
"absolute tolerance": 1e-12,
"molecular weight [kg mol-1]": 0.070906,
"__is advected": true
"__is advected": true,
"__is parameterized": false
},
{
"name": "O2",
"type": "CHEM_SPEC",
"tracer type": "CONSTANT",
"molecular weight [kg mol-1]": 0.0319988,
"__is advected": false,
"__is parameterized": true,
"__is added to profile": true,
"__unit" : "molecule cm-3",
"__scale height [km]": 7.0
},
{
"name": "O3",
"type": "CHEM_SPEC",
"tracer type": "CONSTANT",
"molecular weight [kg mol-1]": 0.0479982,
"__is advected": false,
"__is parameterized": true,
"__is added to profile": true,
"__unit" : "molecule cm-3",
"__scale height [km]": 7.0
},
{
"name": "air",
"type": "CHEM_SPEC",
"absolute tolerance": 1e-12,
"molecular weight [kg mol-1]": 0.0289644,
"__is advected": false,
"__is parameterized": false,
"__is added to profile": true,
"__unit" : "molecule cm-3",
"__scale height [km]": 8.01
Copy link
Contributor Author

@boulderdaze boulderdaze Dec 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mattldawson, Is it okay to include air in the species.json? The goal is to avoid hardcoding the gas species in atmospheric physics configuration

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's fine, if CAM-SIMA expects air to be in the constituents array. I would just add a "tracer type": "CONSTANT" so that the solver doesn't treat it as a variable to be solved for.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, thank you! I will fix that. Hi @nusbaume, @peverwhee and @jimmielin, is it acceptable to add air into the constituent array?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @boulderdaze, I also believe that should be fine, but it might be good to call it dry_air or something like that ( assuming it is not including H2O as part of the mixture, which CAM-SIMA might complain about). Of course if that doesn't work for you please let me know!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'll use dry_air. Thank you for your suggestion!

}
]
}
18 changes: 0 additions & 18 deletions mechanisms/terminator/tuvx/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@
}
],
"profiles": [
{
"name": "O3",
"type": "O3",
"units": "molecule cm-3",
"file path": "musica_configurations/chapman/tuvx/data/profiles/atmosphere/ussa.ozone"
},
{
"name": "air",
"type": "air",
"units": "molecule cm-3",
"file path": "musica_configurations/chapman/tuvx/data/profiles/atmosphere/ussa.dens"
},
{
"name": "O2",
"type": "O2",
"units": "molecule cm-3",
"file path": "musica_configurations/chapman/tuvx/data/profiles/atmosphere/ussa.dens"
},
{
"name": "solar zenith angle",
"type": "solar zenith angle",
Expand Down