[Mesa-users] Revision of structral variables after mass adjustement in new versions of MESA

Arman Aryaeipour a.aryaeipour at surrey.ac.uk
Mon Sep 12 09:21:36 UTC 2022


Hi Frank,

Many thanks for your reply! I see that the radius is updated at the end of the do_adjust_mass subroutine to reflect the new mass structure of the model, but I don't see where the other structural variables are updated.

I ask as the variable I'm concerned about is velocity at the cell face. I'm using the other_adjust_mdot hook to eject mass that is going beyond the ejection velocity. When mass is ejected from the model and the mass structure is updated in the do_adjust_mass subroutine, the velocity of the cells should also be updated to reflect the new mass structure no? I don't see where in the do_adjust_mass subroutine the velocity variable is updated, or any of the other structural variables.

Perhaps I'm not seeing where the structural variables are updated in the subroutine, could you kindly point me towards where this is done?

Best wishes,
Arman Aryaeipour
________________________________
From: Francis Timmes <fxt44 at mac.com>
Sent: 10 September 2022 00:37
To: Aryaeipour, Arman (PG/R - Maths & Physics) <a.aryaeipour at surrey.ac.uk>
Cc: Frank Timmes <fxt44 at mac.com>; mesa-users <mesa-users at lists.mesastar.org>
Subject: Re: [Mesa-users] Revision of structral variables after mass adjustement in new versions of MESA

hi armen,

a quick look suggests the functionality still resides within star/private/adjust_mass.f90.

the is fairly deep in the source. what takes you there?

fxt




> On Sep 9, 2022, at 9:21 AM, Arman Aryaeipour via Mesa-users <mesa-users at lists.mesastar.org> wrote:
>
> Hello MESA-users,
>
> I had a question about the revision of structural variables after mass adjustment.
>
> I can see that MESA versions up to mesa-r15140 revised lnT, lnd, velocity and other structural variables to reflect the new stellar structure after mass adjustment. In mesa-r15140, I can see that this is done in the set_cell_stuff_for_d_dt and set_face_stuff_for_d_dt subroutines within the do_adjust_mass subroutine.
>
> However, in MESA versions mesa-r21.12.1 and mesa-r22.05.1 these subroutines have been taken out and I can't see a replacement for them, or their function being carried out elsewhere in the code. Are the structural variables revised after mass adjustment in these two new versions of MESA? I'm currently using MESA version mesa-r21.12.1.
>
> My apologies if this is a silly question with an obvious answer. Many thanks in advance!
>
> Kindest regards,
> Arman Aryaeipour
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.mesastar.org%2Fmailman%2Flistinfo%2Fmesa-users&data=05%7C01%7Ca.aryaeipour%40surrey.ac.uk%7C181041869aaf4cfaa21d08da92bc44c3%7C6b902693107440aa9e21d89446a2ebb5%7C0%7C0%7C637983634585650000%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=90mD267OPEImiKwzHkQb8ct74dxklrp91q3MlTX%2Bq6Q%3D&reserved=0

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


More information about the Mesa-users mailing list