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

quadd_mod.f

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

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

Variables on this page (5)

json, phidis, phirot, phisp, rat

Purpose

QUADD_MOD holds terms of the potential of a rotating star at each shell and the quadrupole correction factor of the meridional circulation. Shared by 3 routines. It replaces COMMON/QUADD/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.

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

  • PHISP, PHIROT, PHIDIS (JSON each): the spherical potential $GM/r$, the rotational term $\Omega^2 r^2$ and the distortion term, computed by FPFT (under "OUTPUT DATA," fpft.f, lines 93–98↗) and read by no routine, at rp_1 too, where a fourth file declared the block (unused?).
  • RAT(JSON): the ratio of the corrected to the classical expression of the Eddington–Sweet circulation velocity (the quadrupole term, "as per Zahn (1992)"), set by VCIRC from QUAD and GG (QUADRU_MOD); read by VCIRC and written by CHECKJ.

Design

A blanket USE QUADD_MOD in each routine.

Definitions

moduleQUADD_MOD

lines 19–33 · GitHub

Uses modules DIMENSIONS_MOD

Used by (3 units)

CHECKJ, FPFT, VCIRC

Change log

The changes since rp_1

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