[Mesa-users] Variables on other_energy hook
Aaron Dotter
aaron.dotter at gmail.com
Wed Nov 28 14:47:57 EST 2018
Hi Jose,
Is there a reason why you use s% actual_gradT instead of s% gradT?
s% gradT is calculated by mlt and is smoothed (by default). Please try
that and see if it solves your problem.
Aaron
On Wed, Nov 28, 2018 at 2:34 PM José Lopes via Mesa-users <
mesa-users at lists.mesastar.org> wrote:
> Dear Mesa Users,
>
> I am using the other_energy hook in MESA and while testing my subroutines
> I found that some internal variables are different when they are called in
> the hook and when they are called by the MESA output subroutines, within
> the same age step. In particular, I found that the variable s%actual_gradT
> shows a divergent behaviour when the other_energy hook is called, and has a
> much smoother behaviour when the output subroutines are called at the end
> of the age step (see the picture attached to this e-mail).
>
> My problem is that the temperature gradient is one of the ingredients in
> my additional energy term (computed during the other_energy hook call) and
> its divergence is causing me troubles!
>
> My guess would be that the variable actual_gradT is being
> smoothed/converged/computed again at the end of the age step. If so, how
> can I have access to the variable as in the end of the age step in the
> other_energy hook? Is it even possible? Am I missing something?
>
> Thank you all,
>
> José Vargas Lopes
> PhD Student
>
> CENTRA, Centre for Astrophysics and Gravitation
> IST, University of Lisbon, Portugal
>
> _______________________________________________
> 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/20181128/2d09cee0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: actual_gradT.png
Type: image/png
Size: 71051 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20181128/2d09cee0/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: actual_gradT.png
Type: image/png
Size: 71051 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20181128/2d09cee0/attachment-0001.png>
More information about the Mesa-users
mailing list