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

envprt_mod.f

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

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

Variables on this page (10)

ebeta, ed, edel, efxion, eo, ep, er, es, et, evel

Purpose

ENVPRT_MOD holds the state at the current point of the envelope integration, passed from QENV (the right-hand side) to ENVINT (the integrator), which stores it. It replaces COMMON/ENVPRT/ (MHP via Claude, 10/14/26). All members are REAL*8.

What its variables hold, who sets them, who reads them. QENV sets them at each call ("07/02 always store the basic structure variables"):

  • EP, ET, ED, ER: $\log P$, $\log T$, $\log\rho$, $\log r$; ES: $\log(m/M_*)$ (SL - STOTAL).
  • EO: the opacity; EBETA: $\beta$; EVEL: the convective velocity; EDEL(3): the radiative and adiabatic gradients and the actual one (DELR, DELA, DEL); EFXION(3): the ionization fractions.
  • ENVINT reads them to print the point and to store the envelope's run in ENVSTRUCT_MOD.

Design

A blanket USE ENVPRT_MOD. QENV is called by the ODE solver through a fixed argument list, so its extra outputs go through the module. At rp_1, GETNEWENV and STARIN also declared the block without using it.

Definitions

moduleENVPRT_MOD

lines 19–35 · GitHub

Used by (2 units)

ENVINT, QENV

Change log

The changes since rp_1

Changed since rp_1. New file: COMMON/ENVPRT/ as a module (two unused declarations dropped).