entrop_mod.f
33 lines · 1 definitions · on GitHub (7be4133)
Python version: entrop_mod.py, 20 lines, on the right (switch to Python above the code).
Purpose
ENTROP_MOD holds the rates of change of the structure variables in the last model, used for a better first guess of the next one (LNEWS), shared by the main program and HPOINT. It replaces COMMON/ENTROP/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.
What its variables hold, who sets them, who reads them.
HTT0,HPP0(JSONeach): the changes of $\log T$ and $\log P$ over the last step, divided by the stepDELTS;HLL0: the relative change of $L$, $2(L - L_\mathrm{old})/(L + L_\mathrm{old})$, per unit time;HRR0: the change of $\log r$ per unit time.- The main program zeroes them at the start of a run and when
LNEWSis off or the step is not positive, sets them after each converged model ("7/91 store changes in the structure"), and reads them to estimate the next model's structure: $\Delta T = $HTT0*DELTS, and so on. HPOINTinterpolates them onto the new mass grid when points are added or removed ("7/91 add entropy term interpolation").
Design
A blanket USE ENTROP_MOD. The comments call them "entropy terms," but they hold time derivatives of the structure.
Definitions
moduleENTROP_MOD
Uses modules DIMENSIONS_MOD
Used by (2 units)
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/ENTROP/ as a module.