[Mesa-users] question on rerunning simulations
Farag, Ebraheem
ebraheem.farag at yale.edu
Wed Feb 19 16:56:11 UTC 2025
Hi Angel,
I'm a little confused by your question. Are you referring to the terminal output or the history.data files in the LOGS folder?
If you adopt photo restarts instead of reading from '.mod' files between runs, then your model will append the new data to the same history.data file.
See for example the $MESA_DIR/star/test_suite/20M_pre_ms_to_cc test_suite. There are two example run files which you can use to test both approaches.
'./rn_all' uses mod files for restarting from inlist to inlist
'./run_all' uses photo restarts to restart the model while reading new inlists.
The only downside of photo restarts is that if you have to go backward to restart (say you run from model # 0 -> 5000, but restart from 3000), then it will continue appending new data in your history file on top of old data. In this scenario, you'll need to scrub your history file of the old bad rows. If you run into this issue, I can share with you a python scrubbing script that will clean your history file and only keep the latest information.
-EbF
________________________________
From: Mesa-users <mesa-users-bounces at lists.mesastar.org> on behalf of Angel Hernandez via Mesa-users <mesa-users at lists.mesastar.org>
Sent: Tuesday, February 18, 2025 5:21 PM
To: mesa-users at lists.mesastar.org <mesa-users at lists.mesastar.org>
Subject: [Mesa-users] question on rerunning simulations
Hello MESA community,
I am currently trying to evolve a star and output various variables. However, my output parameters seem to only output between 10^5 years - 10^7 years. I do have data in a separate run which has data from 10^4 - 10^5 years, for the "same" star. Is it possible to only keep one run directory, with a smooth flow of data running from 10^4 - 10^7 years?
best,
angel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20250219/231e15f4/attachment.htm>
More information about the Mesa-users
mailing list