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

oldphy_mod.f

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

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

Variables on this page (13)

amuo, cpo, delao, delo, delro, epso, esumo, json, oo, qdto, thdifo, velo, visco

Purpose

OLDPHY_MOD holds physical quantities of the model at the start of the step, which MIDMOD interpolates against the new model for the rotational-mixing substeps, shared by HPOINT, MIDMOD and GETW. It replaces COMMON/OLDPHY/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD. All members are arrays of JSON.

What its variables hold, who sets them, who reads them. HPOINT saves them after it has remapped the model ("for diffusion store the auxiliary quantities needed to calculate velocities at the start of the timestep with the new point distribution"):

  • DELRO, DELO, DELAO: the radiative, actual and adiabatic gradients (SDEL(1..3)); AMUO (mean molecular weight), OO (opacity), CPO ($c_P$), QDTO, VELO (convective velocity), VISCO (viscosity), THDIFO (thermal diffusivity).
  • ESUMO, EPSO: the energy generation, without and with the SEG(6), SEG(7) terms, interpolated by HPOINT onto the new grid ("MHP 6/00").
  • All are read by MIDMOD, which forms the mid-step values of MDPHY_MOD from them; GETW reads AMUO (the change of μ over the step).

Design

A blanket USE OLDPHY_MOD. HPOINT also uses DELAO − DELO for DDELM in OLDROT2_MOD.

Definitions

moduleOLDPHY_MOD

lines 19–41 · GitHub

Uses modules DIMENSIONS_MOD

Used by (3 units)

GETW, HPOINT, MIDMOD

Change log

The changes since rp_1

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