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

deuter_mod.f

33 lines · 1 definitions · on GitHub (7be4133)

Python version: deuter_mod.py, 22 lines, on the right (switch to Python above the code).

Variables on this page (5)

drate, drate0, fmassacc, jcz, json

Purpose

DEUTER_MOD holds the deuterium burning rates, the mass accreted in the step and the base of the surface convection zone, shared by 11 routines. It replaces COMMON/DEUTER/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.

What its variables hold, who sets them, who reads them.

  • DRATE(JSON): the deuterium burning rate at each shell, set by DEUTRATE (zeroed in MIX); read by DBURN and MIDMOD.
  • DRATE0(JSON): the rate at the start of the step, copied from DRATE by DEUTRATE on the first iteration (ITLVL = 1) and remapped by HPOINT when points are added; read by DBURN and MIDMOD.
  • FMASSACC: the mass accreted in the step (DELM), set by MDOT; read by DBURN, DBURNM and LIBURN, which mix the accreted material's deuterium and lithium into the convection zone.
  • JCZ: the shell at the base of the surface convection zone (JENV), set by the main program and MASSLOSS; read by DEUTRATE, which limits burning in the zone to the convective turnover time scale, and ENGEB.

Design

A blanket USE DEUTER_MOD.

Definitions

moduleDEUTER_MOD

lines 19–33 · GitHub

Uses modules DIMENSIONS_MOD

Used by (11 units)

(file level), DBURN, DBURNM, DEUTRATE, ENGEB, HPOINT, LIBURN, MASSLOSS, MDOT, MIDMOD, MIX

Change log

The changes since rp_1

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