PyREC scaffolding (from YREC development, 7be4133)/ entrop_mod.fGlossary

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).

Variables on this page (5)

hll0, hpp0, hrr0, htt0, json

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 (JSON each): the changes of $\log T$ and $\log P$ over the last step, divided by the step DELTS; 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 LNEWS is 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.
  • HPOINT interpolates 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

lines 19–33 · GitHub

Uses modules DIMENSIONS_MOD

Used by (2 units)

(file level), HPOINT

Change log

The changes since rp_1

Changed since rp_1. New file: COMMON/ENTROP/ as a module.