temp_mod.f
34 lines · 1 definitions · on GitHub (7be4133)
Python version: temp_mod.py, 21 lines, on the right (switch to Python above the code).
Purpose
TEMP_MOD holds physics at each shell for rotational mixing: specific heat, mean molecular weight, a density derivative, and the radiative diffusivity and viscosity. Shared by 5 routines. It replaces COMMON/TEMP/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.
What its variables hold, who sets them, who reads them.
CP,SQDT(JSONeach): $c_P$ and $\partial\ln\rho/\partial\ln T$ (QCP,QDT), andHAMU(JSON): the mean molecular weight of a fully ionized gas, set byPHYSIC.CPis read byVISCOS,HAMUbyGETW.VISC(JSON): the viscosity, radiative plus molecular, andTHDIF(JSON): the radiative diffusivity $16\sigma T^3/(3\kappa\rho^2 c_P)$, set byVISCOS.- All five are read by
HPOINTandMIDMOD,HPOINTsaves them as the values at the start of the step, andMIDMODinterpolates between those and the current ones.
Design
A blanket USE TEMP_MOD in each routine.
Definitions
moduleTEMP_MOD
Uses modules DIMENSIONS_MOD
Change log
The changes since rp_1
Changed since rp_1. New file: COMMON/TEMP/ as a module.