-
Notifications
You must be signed in to change notification settings - Fork 69
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
Change parameters midway through simulation #651
Comments
Hi, Yes, it is possible in principle, but whether it will work properly depends a lot on what you are modeling, and on the details of the Python code that implements the change of value. One way to do this is by calling
In this case, make sure that the Python code is modifying a variable that is actually used by the simulation, and not some intermediate variables. Another way to do this would be to use checkpoints and restarts (and thus modify the value of e.g. the density in the script for the restarted simulation) Finally, note that, if you are running a simulation with a moving window, you can effectively change the value of the density during the simulation by providing a function that varies on |
Hello, I had tried that first method before, but found that only the information from the first step was being saved. |
OK, thanks for letting me know. |
Of course, here is the script
|
Hello,
Is it possible to run a portion of a simulation, pause the simulation, then change some values i.e. the plasma density, and then continue the simulation from where it was paused with the changes implemented?
Thanks a million!
The text was updated successfully, but these errors were encountered: