[Mesa-users] Variables on other_energy hook
José Lopes
josevlopes at ist.utl.pt
Wed Nov 28 14:31:13 EST 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20181128/7d661291/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/7d661291/attachment.png>
More information about the Mesa-users
mailing list