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

atmstruct_mod.f

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

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

Variables on this page (13)

abetas, adels, afxions, agam1, aqdt, atmocp, atmod, atmoo, atmop, atmor, atmot, json, numatm

Purpose

ATMSTRUCT_MOD holds the structure of the atmosphere, point by point, for the stitched output of the whole star. It replaces COMMON/ATMSTRUCT/ (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 ENVINT during the atmosphere integration, and read only by STITCH, which joins them to the envelope and the interior: NUMATM, the number of points; at each point $\log P$, $\log T$, $\log\rho$ (ATMOP, ATMOT, ATMOD) and ATMOR, not $\log r$ but the step DELTR in cm (ENVINT), which STITCH adds to the envelope's top radius, $10^{\tt ENVR} + {\tt ATMOR}$, the three gradients ADELS(3,·), ABETAS ($\beta$), AGAM1 ($\Gamma_1$), AQDT, the ionization fractions AFXIONS(3,·), the opacity ATMOO and $c_P$ ATMOCP.

Definitions

moduleATMSTRUCT_MOD

lines 19–41 · GitHub

Uses modules DIMENSIONS_MOD

Used by (2 units)

ENVINT, STITCH

Change log

The changes since rp_1

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