[Mesa-users] Revision of structral variables after mass adjustement in new versions of MESA
a.aryaeipour at surrey.ac.uk
Mon Sep 12 09:21:36 UTC 2022
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?
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
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?
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mesa-users