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

sound_mod.f

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

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

Variables on this page (3)

gam1, json, lsound

Purpose

SOUND_MOD holds the adiabatic exponent $\Gamma_1$ at each shell and the switch for the sound-speed output ("MHP 7/96 … for solar model"). Shared by 5 routines. It replaces COMMON/SOUND/ (MHP via Claude, 10/14/26); JSON comes from DIMENSIONS_MOD.

What its variables hold, who sets them, who reads them.

  • GAM1(JSON): $\Gamma_1 = \chi_\rho c_P/c_V$ with $\chi_\rho = 1/(\partial\ln\rho/\partial\ln P)$ and $c_V$ from $c_P$ (QCP), computed by COEFFT at every shell ("JVS 01/11 always want gamma"). Read by WRTMOD (the pulsation model) and written to the stored model by PUTSTORE and STITCH.
  • LSOUND: set by the main program, false at the start of each run and true at the run's last model (the end age, or the end of the kind card); WRTMOD writes its sound-speed output only when it is set.

Design

A blanket USE SOUND_MOD in each routine.

Definitions

moduleSOUND_MOD

lines 19–31 · GitHub

Uses modules DIMENSIONS_MOD

Used by (5 units)

(file level), COEFFT, PUTSTORE, STITCH, WRTMOD

Change log

The changes since rp_1

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