[Mesa-users] Some routines in run_star_extras not called during binary evolution

Evan Bauer evan.bauer.astro at gmail.com
Wed Jan 24 14:41:24 UTC 2024


Hi Jeremy,

First, a quick correction to what I had said earlier, this issue was actually reported somewhat earlier and fixed in June 2022. So the fix should be present in releases r22.11.1 and r23.05.1.
https://lists.mesastar.org/pipermail/mesa-users/2022-June/013811.html <https://lists.mesastar.org/pipermail/mesa-users/2022-June/013811.html>
https://github.com/MESAHub/mesa/commit/3112c2a097b2b9d6e7a08a45b9194984fcfd6d2e <https://github.com/MESAHub/mesa/commit/3112c2a097b2b9d6e7a08a45b9194984fcfd6d2e>

> In the meantime, I did some more digging, and it looks to me like the star is first evolved and then the binary routines are called so if I want to integrate my extras_start_step into the binary run then the correct would be extras_binary_finish_step. This way it is called before the star is evolved on the next timestep.
> 
> Is this correct?

I don't think this is correct. The stellar evolution is wrapped within the binary evolution so that it can converge to a self-consistent solution  for mass transfer, which both affects and is affected by the evolution of each star.

Cheers,
Evan


> 
> On Tue, Jan 23, 2024 at 6:50 AM Evan Bauer <evan.bauer.astro at gmail.com <mailto:evan.bauer.astro at gmail.com>> wrote:
> Hi Jeremy,
> 
> Thanks for the report, and sorry it took us so long to get back to you on this one.
> 
> It does indeed seem to be the case that binary does not call extras_start_step in r12778. Pablo Marchant recently explained to me that extras_start_step was added to star somewhat after the binary module was developed, which is probably the reason that it didn't get fully integrated into binary for a while.
> 
> Happily, Matthias Fabry has done some more recent updates to the binary module so that it does now incorporate the extras_start_step routines (https://github.com/MESAHub/mesa/pull/459 <https://urldefense.com/v3/__https://github.com/MESAHub/mesa/pull/459__;!!PvDODwlR4mBZyAb0!SHG0tx0ZPTe2MFFS-QIXtk0y3gJmoT4Sryi2oXVS-sw67q6rW4Mw51w0UBLTB9c3f74CZl9n1pf2lMfPTiXepqSo3CTR$>), so this appears to be all patched up as of the latest MESA release version (r23.05.1).
> 
> For older versions such as r12778, you should hopefully be able to use extras_binary_start_step in run_binary_extras to achieve the same goals you might have intended to use extras_start_step for. Is that a sufficient workaround for you?
> 
> Cheers,
> Evan
> 
>> On Jan 9, 2024, at 3:23 PM, Jeremy Sakstein via Mesa-users <mesa-users at lists.mesastar.org <mailto:mesa-users at lists.mesastar.org>> wrote:
>> 
>> Hi everyone,
>> 
>> I am trying to add some modifications to the run_star_extars in the binary module in mesa-r12778 and it appears to me that some functions are not being called. Specifically, it looks to me like extras_start_step and extras_after_evolve are not being called.
>> 
>> To test this, I wrote write(*,*) statements into each routine but the print statements for extras_start_step and extras_after_evolve but they did not display on the terminal. I did the same for extras_controls and extras_finish_step and these did write to the terminal.
>> 
>> To test this further I added a global integer that is set to zero in extras_controls, set to 1 in extras_start_step, and written to the terminal in extras_finish_step. The write statement gives zero, indicating that extars_start_step is not being called.
>> 
>> I am attaching a simple run_star_extras that can be used to reproduce this. It is a modified version of the version found in the 'evolve_both_stars' test_suite. I checked for 'star_plus_point_mass' and it also seems to be the case that these routines are not being called.
>> 
>> Am I correct that they are not being called and, if so, is there a way of calling them?
>> 
>> Cheers,
>> 
>> Jeremy
>> 
>> 
>> -- 
>> Jeremy Sakstein (He/Him/His)
>> Assistant Professor of Theoretical Physics
>> Department of Physics & Astronomy
>> University of Hawaiʻi at Mānoa
>> Watanabe Hall
>> 2505 Correa Road
>> Honolulu, HI, 96822, USA
>> http://www.jeremysakstein.com <https://urldefense.com/v3/__http://www.jeremysakstein.com/__;!!PvDODwlR4mBZyAb0!SHG0tx0ZPTe2MFFS-QIXtk0y3gJmoT4Sryi2oXVS-sw67q6rW4Mw51w0UBLTB9c3f74CZl9n1pf2lMfPTiXepry078O7$>
>> <run_star_extras.f>_______________________________________________
>> mesa-users at lists.mesastar.org <mailto:mesa-users at lists.mesastar.org>
>> https://lists.mesastar.org/mailman/listinfo/mesa-users <https://urldefense.com/v3/__https://lists.mesastar.org/mailman/listinfo/mesa-users__;!!PvDODwlR4mBZyAb0!SHG0tx0ZPTe2MFFS-QIXtk0y3gJmoT4Sryi2oXVS-sw67q6rW4Mw51w0UBLTB9c3f74CZl9n1pf2lMfPTiXepvQoRyKl$>
>> 
> 
> 
> 
> -- 
> Jeremy Sakstein (He/Him/His)
> Assistant Professor of Theoretical Physics
> Department of Physics & Astronomy
> University of Hawaiʻi at Mānoa
> Watanabe Hall
> 2505 Correa Road
> Honolulu, HI, 96822, USA
> http://www.jeremysakstein.com <http://www.jeremysakstein.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20240124/4fd7e68e/attachment.htm>


More information about the Mesa-users mailing list