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

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

Variables on this page (4)

json, rbe9, rli6, rli7

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 factors SLI6, SLI7, SBE91–SBE93), set by LIRATE88 when called with J = 1, and zero above the burning region. LIBURN and LIBURN2 read them to burn the light elements, and adjust the value at the base of the convection zone by interpolation (0.5*FX toward the shell below).
  • GETW and BURSMIX copy them into the start-of-step rates of OLDRAT_MOD for the next step.

Design

A blanket USE NEWRAT_MOD.

Definitions

moduleNEWRAT_MOD

lines 19–32 · GitHub

Uses modules DIMENSIONS_MOD

Used by (5 units)

BURSMIX, GETW, LIBURN, LIBURN2, LIRATE88

Change log

The changes since rp_1

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