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

Time-dependent species concentration function #116

Open
LaurieNovak opened this issue Nov 25, 2024 · 1 comment
Open

Time-dependent species concentration function #116

LaurieNovak opened this issue Nov 25, 2024 · 1 comment
Labels
question Further information is requested

Comments

@LaurieNovak
Copy link

Ask a question about KPP:

I am trying to use KPP to build a boxmodel simulation of chamber experiments. To this end, I want to use a function which describes the concentration of reactant A, which is added a various timesteps.
e.g. Limonene = 2 ppb at t = 0, then at t = 2h, I want to raise Limonene to 4 ppb.
I saw in the KPP guide that a function of
CO2 = MyCO2Func() is possible, however I cannot find any further information as to where to define MyCO2Func.
Do you have suggestions how to handle this?
Thanks in advance!

@LaurieNovak LaurieNovak added the question Further information is requested label Nov 25, 2024
@LaurieNovak LaurieNovak changed the title [FEATURE REQUEST] Time-dependent species concentration function Nov 25, 2024
@RolfSander
Copy link
Contributor

This is only an example showing that you can use your own Fortran90
SUBROUTINE to define initial values. The actual code of MyCO2Func()
could be in any Fortran90 file that is linked into your boxmodel.

If you only need a step function (i.e., a sudden increase from 2 to 4
nmol/mol, it's easiest to change the limonene concentration outside of
KPP.

In my CAABA/MECCA boxmodel, you can find something like this in
SUBROUTINE injection in messy_semidep_box.f90:

https://gitlab.com/RolfSander/caaba-mecca/-/blob/develop/caaba/messy_semidep_box.f90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants