-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Constraining Groups of Compounds #483
Comments
HI Alfie, I do understand what you mean and I agree it could be a useful option to have. |
Hi, Thanks for your help. |
As an update to this, I have managed to get a NOx constraint to work by making a few changes. I'll outline what I've done below, as well as the current limitations. I may try making this more generalisable at some point, but this fulfils my needs for now so I'll just put it out there for anyone else who is interested. The changes can be seen on my AtChem2 fork.
As mentioned before, this isn't the best solution and there's a few things that could be changed:
Hopefully that's useful and I'll post again if I do any further work on this. |
Nice work. Thanks for posting this. As you say, it requires a bit more work before we can think of merging it, but it is good to have a workable starting point. Please update if you test it more and/or develop further. |
As an update to this, I've developed the branch a bit more to correct the constraining of NOx from a fractional difference (which would lead to run-away partitioning of NOx towards 100% of either NO or NO2) to calculating the absolute difference and apportion it between NO and NO2. |
Hi,
I have a question regarding the possibility of constraining (or holding constant) groups of compounds in a model run. As an example, I'm looking to run a model in which I hold the concentration of NOx constant but would like to allow NO and NO2 to freely vary within that constraint. So for every time step, NO and NO2 can take any value provided the sum of NO and NO2 (the total NOx) is equal to the constrained value. There are some analogues to the RO2 sum here, except I'm looking to constrain the compound group, whether its NOx or RO2.
I can imagine having a new file in the configuration directory where groups of compounds are listed and then these groups could be referenced throughout the model, or just in the constraint files. This could open up a lot of possibilities for what can be done with the models, but I have no idea if this is easily implemented without requiring major changes to the code.
Do you have any thoughts on whether I would be able to adjust the model code to allow for the constraining of groups of compounds in models? And if so, how would I go about this?
I realise this is a very speculative request and so it's absolutely no problem if this would require far too much work, but I figured it was worth asking in case there is some reasonably quick way that this could be implemented.
Thanks,
Alfie
The text was updated successfully, but these errors were encountered: