vfact_mod.f
36 lines · 1 definitions · on GitHub (7be4133)
Python version: vfact_mod.py, 24 lines, on the right (switch to Python above the code).
Purpose
VFACT_MOD holds the factors at each interface from which the circulation velocities and the stability criteria of rotational mixing are computed; SETUPV sets them once per step and VCIRC uses them. Shared by 2 routines. It replaces COMMON/VFACT/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.
What its variables hold, who sets them, who reads them. All are set by SETUPV (to 0 first, then at each interface); SETUPV's page gives the equations.
FACT1,FACT2(JSONeach): the Eddington–Sweet velocity,VES=FACT1·FACT2·$\Omega^2$ ("Endal and Sofia paper II"), withFACT6ofTAUKH_MOD; read byVCIRC, which also usesFACT1for the $\mu$ currents.FACT3(JSON): $|H_T r|$, for the Goldreich–Schubert–Fricke velocity; read only inVCIRC's commented-out lines.FACT4(JSON): the "fictitious $\mu$ currents" (Kippenhahn, IAU 66); read byVCIRC.FACT5(JSON): the Richardson criterion of the secular shear with $\mu$ gradients; read byVCIRC.FACT7,FACT8(JSONeach): the terms of order $\mathrm{d}\Omega/\mathrm{d}r$ (Zahn and Maeder 1998), computed only withLDIFAD;FACT8stays 0. Read byVCIRC.
Design
A blanket USE VFACT_MOD in each routine.
Definitions
moduleVFACT_MOD
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/VFACT/ as a module.