[Mesa-users] Output Models at Specific Hydrogen Abundances

Matteo Cantiello matteo.cantiello at gmail.com
Thu Jul 18 12:30:17 UTC 2024


Hi Hiyaa,

You can achieve what you need by modifying the *run_star_extras.f90 *file
in your local *src* folder.
Please find details on how to do this here
https://docs.mesastar.org/en/latest/using_mesa/extending_mesa.html#choosing-when-to-output-history-or-profiles


The example provided is quite similar to what you need (saving a profile
when the central density reaches certain values). In your case you want to
identify the hydrogen central abundance. Maybe useful for you to look into
the source code for something like 'center_h1' and see how this is usually
determined in MESA…

Let us know how it goes!

Matteo

--
Matteo Cantiello - https://www.stellarphysics.org/
Research Scientist,  CCA, Flatiron Institute
Visiting Associate Researcher, Princeton University

Sent via Superhuman <https://sprh.mn/?vip=matteo.cantiello@gmail.com>


On Thu, Jul 18, 2024 at 3:25 AM, Hiyaa Atreya <mesa-users at lists.mesastar.org
> wrote:

> Dear MESA-users,
>
> I am very new to the software and I am trying to create a model for a 1.4
> solar mass star. I want to print profile files at specific intervals of
> hydrogen abundances (e.g. 0.7, 0.65 and so on) however, I cannot figure out
> how to do so.
>
> Is there a way I can achieve this?
>
> Warm Regards,
> Hiyaa
>
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20240718/6a4d94d6/attachment.htm>


More information about the Mesa-users mailing list