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).
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(JSONeach): the spherical potential $GM/r$, the rotational term $\Omega^2 r^2$ and the distortion term, computed byFPFT(under "OUTPUT DATA," fpft.f, lines 93–98↗) and read by no routine, atrp_1too, 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 byVCIRCfromQUADandGG(QUADRU_MOD); read byVCIRCand written byCHECKJ.
Design
A blanket USE QUADD_MOD in each routine.
Definitions
moduleQUADD_MOD
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/QUADD/ as a module.