-
Notifications
You must be signed in to change notification settings - Fork 2
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
KPP export working #177
Comments
A basic KPP export was added in #210 , although there are several outstanding issues:
|
Hello Stuart, Thanks for all your work of implementing the KPP export! I have made a My next plans are:
I think we can finish these tasks until early next year, maybe January. |
I just noticed that the MCM home page needs to be updated as well. It currently says:
|
Good spot Rolf, I've updated the home page accordingly. Your plan sounds sensible, I look forward to working with you to polish off this functionality. Please update this issue when you have an idea for the next development phase. |
Hello Stuart, I have now created a minimum working example (MWE) which shows how to https://github.com/KineticPreProcessor/KPP/tree/mcm/examples/mcm We have also discussed the most flexible file structure for external https://github.com/KineticPreProcessor/KPP/blob/mcm/examples/mcm/mcm_isoprene.eqn https://github.com/KineticPreProcessor/KPP/blob/mcm/examples/mcm/constants_mcm.f90 Would you be able to generate With respect to our open questions, the following approaches have been
The The variables
|
Hi @RolfSander Thanks for getting back to me with these suggestions, they largely look straight forward to implement and I'm happy to change the block comment notation to the preprocessor style for the header. Having the complete set of photolysis rates makes sense, but would you mind if I changed the constant names to be the MCM J numbers? I.e. |
Hello @stulacy,
Thanks!
If you prefer Anyway, the only really important point is that the J numbers don't change in |
We can go with the human readable J rates, that's fine. I've just noticed something else that might be a potential issue. In the constants_mcm.f90 file, the RO2 sum is using the peroxy radicals that are in the isoprene mechanism. However, these peroxies are specific to the submechanism being exported, so should they be included within the global constants file, or within the exported If it was kept within the constants then it should comprise all peroxies within the full MCM, but (from my limited understanding of KPP), that will cause problems when some of the |
Thanks!
Good point, thanks for spotting this! Yes, you're right, having unused The best place is just before
|
I've updated the web-app to generate both mcm_export.eqn and |
Hello @stulacy, Thanks for the updated implementation! I had to make a few changes to the files, and then I was able to
needs to be changed to:
|
Cheers Rolf. The syntax/typos are straight forward, but issues 3&4 worry me a bit as this is auto-generated from the database and should be correct, which suggests that there's a flaw in my logic somewhere that I'll need to fix. I'm busy today and am only at work for 2 days next week so it might not be until after Christmas that I fix this. |
No problem, take your time. Let's continue next year... Have a nice Christmas time! |
Merry Christmas to you too! |
Hi Rolf, I found some time to look at this this morning and the complex rate issue was far simpler than I'd expected (I'd forgotten to take into account the website now hosts both the MCM and the CRI). Have a look at the updated exported files and let me know if they look OK now. |
Great, thanks! The files are (almost) perfect now. The only remaining issue is However, if you would like to keep the products, the line
would be necessary in the |
Oops I missed the I'm a bit confused with how the species are handled and the difference between defining a species in the mechanism file (with Is that correct / as expected? |
Thanks! Now it is (completely) perfect :-)
Yes, this can be confusing. It's important to note that KPP species and Only for
Alternatively, they could adopt the humidity from the meteorological
Part of the confusion may result from the fact that a reaction in the HTH :-) |
Brilliant, I've made those changes live. Feel free to reopen this ticket if you spot anything else! Also thank you for that explainer, that's helped to solidify my mental model of how the 2 files interact. |
This is a high priority feature and will be worked on once the new release is live. This in theory should just require a few modifications to the code that runs on the old site.
The text was updated successfully, but these errors were encountered: