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

temp2_mod.f

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

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

Variables on this page (9)

hle, json, ves, ves0, vgsf, vgsf0, vmu, vss, vss0

Purpose

TEMP2_MOD holds the velocities of rotational mixing at each interface, computed by VCIRC and turned into diffusion coefficients by CODIFF. Shared by 5 routines. It replaces COMMON/TEMP2/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.

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

  • VES, VGSF, VSS, VMU (JSON each): the Eddington–Sweet circulation, the Goldreich–Schubert–Fricke, the secular-shear and the $\mu$-current velocities, set by VCIRC (to 0 first). Read by CODIFF (the coefficients COD, COD2 from the sum VES + VGSF + VSS), CHECKJ (which writes them) and, except VMU, by PUTSTORE and STITCH (the stored model).
  • VES0, VGSF0, VSS0: the previous iteration's VES, VGSF, VSS, saved by VCIRC from the second iteration on, which then averages old and new values; CHECKJ writes VES0 and VGSF0.
  • HLE(JSON): a length scale, set to 0 at every interface by CODIFF (its assignments of RMID are commented out); CHECKJ writes it as "LENGTH."

Design

A blanket USE TEMP2_MOD in each routine.

Definitions

moduleTEMP2_MOD

lines 19–37 · GitHub

Uses modules DIMENSIONS_MOD

Used by (5 units)

CHECKJ, CODIFF, PUTSTORE, STITCH, VCIRC

Change log

The changes since rp_1

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