newrat_mod.f
32 lines · 1 definitions · on GitHub (7be4133)
Python version: newrat_mod.py, 19 lines, on the right (switch to Python above the code).
Purpose
NEWRAT_MOD holds the proton-capture rates of ⁶Li, ⁷Li and ⁹Be at each shell for the current model, shared by 5 routines. It replaces COMMON/NEWRAT/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD. The rates at the start of the step are in OLDRAT_MOD.
What its variables hold, who sets them, who reads them. All are arrays of JSON.
RLI6,RLI7,RBE9: the rates (the Caughlan–Fowler fit times $\rho X$, scaled by the user factorsSLI6,SLI7,SBE91–SBE93), set byLIRATE88when called withJ= 1, and zero above the burning region.LIBURNandLIBURN2read them to burn the light elements, and adjust the value at the base of the convection zone by interpolation (0.5*FXtoward the shell below).GETWandBURSMIXcopy them into the start-of-step rates ofOLDRAT_MODfor the next step.
Design
A blanket USE NEWRAT_MOD.
Definitions
moduleNEWRAT_MOD
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/NEWRAT/ as a module.