[Mesa-users] Help regarding custom mesa run
ABHIJNAN KAR 20064
abhijnank20 at iiserbpr.ac.in
Tue Dec 20 17:39:57 UTC 2022
Hi Evan,
Thanks for the response!
Yeah, I am trying to do it with help of extras routine.
However, I have one question in the custom code,for the output values of the desired variables/parameters at each step, should i write it like : call run_binary_extras(output variable, age_yr) ?
will this give an array which will change its value with run?
And at first I am declaring variables like
real :: output1, new_input
> On 20-Dec-2022, at 12:31 AM, Evan Bauer <evan.bauer.astro at gmail.com> wrote:
>
> Hi Abhijnan,
>
> Yes, it should be possible to do what you describe with run_binary_extras. If you aren't already familiar with using run_star_extras and run_binary_extras, here's the place to start learning in the documentation: https://docs.mesastar.org/en/release-r22.11.1/using_mesa/extending_mesa.html
>
> For run_binary_extras specifically, Pablo's lab from this year's summer school has a lot of great material that should help you get a sense of how to use it: https://orlox.github.io/mesa2022_hmxb/
>
> Cheers,
> Evan
>
>> On Dec 15, 2022, at 11:50 AM, ABHIJNAN KAR 20064 <abhijnank20 at iiserbpr.ac.in <mailto:abhijnank20 at iiserbpr.ac.in>> wrote:
>>
>> Hi Pablo,
>> Thanks for the reply!I want to take the output values of MESA run at each step, employ those values in formulae to adjust for difference between gravitational mass and baryonic mass(assuming M acc= delM g is not full expression: Mon. Not. R. Astron. Soc. 413, L47–L50 (2011)), then take the output values of the formulae and use it in again in next step of MESA run.Like this the loop will go on. Now, is it possible without having a driver code for the whole process?(just from run_binary_extras).
>>
>>> On 15-Dec-2022, at 7:36 PM, Pablo Marchant <pamarca at gmail.com <mailto:pamarca at gmail.com>> wrote:
>>>
>>> Dear Abhijnan,
>>>
>>> to help you it would be useful to know more precisely what you're trying to do. In particular, what parameters do you need to change, and on what output values do these depend? The use case you describe sounds like something that can be achieved inside a single run using run_binary_extras (without the need to stop and reload simulations), but without further details it is hard to know.
>>>
>>> Best,
>>>
>>> Pablo
>>>
>>> On Wed, Dec 14, 2022 at 5:34 PM ABHIJNAN KAR 20064 <abhijnank20 at iiserbpr.ac.in <mailto:abhijnank20 at iiserbpr.ac.in>> wrote:
>>>> Hi all,
>>>> I am currently working the recent mesa version in the field of binary evolution.I am trying to model a binary system consisting of neutron star and a donor star and its orbital parameter. However, what I want to do is that I want to stop the MESA at every step of run binary evolution run and take the output of each step, calculate those outputs in some other formulas regarding some parameters and again start the mesa with the output values from the formulas as input for next step and so on. Can anyone please help in the software aspect i.e how to stop the mesa at every step automatically and extract the output values to be used in some other formulae?
>>>> It would be extremely helpful!
>>>> Regards,
>>>> Abhijnan Kar(He/his/him)
>>>> BS-MS,IISER Berhampur
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> mesa-users at lists.mesastar.org <mailto:mesa-users at lists.mesastar.org>
>>>> https://lists.mesastar.org/mailman/listinfo/mesa-users
>>>>
>>>
>>>
>>> --
>>> Pablo Marchant Campos
>>> M.Sc on Astrophysics, Universidad Católica de Chile
>>> PhD on Astrophysics, Argelander-Institut für Astronomie, Universität Bonn
>>
>> Regards,
>> Abhijnan Kar(He/his/him)
>> BS-MS,IISER Berhampur
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> mesa-users at lists.mesastar.org <mailto:mesa-users at lists.mesastar.org>
>> https://lists.mesastar.org/mailman/listinfo/mesa-users
>>
>
Regards,
Abhijnan Kar(He/his/him)
BS-MS,IISER Berhampur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20221220/30c4cdc2/attachment.htm>
More information about the Mesa-users
mailing list