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 scales #953

Closed
chaoui-mu opened this issue Apr 16, 2024 · 2 comments
Closed

Time scales #953

chaoui-mu opened this issue Apr 16, 2024 · 2 comments

Comments

@chaoui-mu
Copy link

Dear Gillespy2 developers,
I am currently working on the chemical reaction of water radiolysis. I am trying to input the yields at a specific time that is determined by the irradiation time. Once this is complete, I would like to continue the simulation with Gillespy2 in the homogeneous stage. However, I have encountered an issue with transitioning between time scales. I am unsure of how to maintain the end time of irradiation as the start time of Gillespy2.

Thank you..???

@briandrawert
Copy link
Member

Hi @chaoui-mu,
I am happy that you are using GillesPy2 for your simulation. We are a little confused by your question, but it sounds like you are combining two different simulation methods, with GillesPy2 being the 2nd of the methods. Is it the case that you are trying to start the GillesPy2 simulation at a non-zero initial time? If so, that is not possible. The usual method in this case is to have two different time spans, one for each of the two simulations (both starting from zero). Then in a post-processing step, you would add the end-time value of the first simulation to all the time values from the GillesPy2 simulation.
If this is not the issue you are dealing with, please re-open this issue, clarify and we will attempt to help.

@mustapha-chaoui
Copy link

Here's a corrected version of your response:

Hi @briandrawert, thank you for your prompt answer. Exactly, I'm using Gillespy2 for the second simulation stage. In the first stage, I'm using TOPAS-nBio to irradiate a water phantom and tracking the yields of irradiation with time evolution. However, TOPAS-nBio doesn't account for some reactions that occur in the homogeneous stage. In this case, I'm trying to use Gillespy2 to continue the simulation of radicals for large timescales (1000s). But for consistency, I need to continue from the TOPAS-nBio end time, which is in milliseconds, and initialize the Gillespy2 model with the yields at the end time of TOPAS-nBio. Is there a way to do this, or a methodolgy to adress this.
Thanks again;
Mustapha

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

No branches or pull requests

3 participants