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

confac_mod.f

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

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

Variables on this page (4)

con_mass, con_rad, con_temp, con_time

Purpose

CONFAC_MOD holds the factors that convert radius, mass, temperature and time between the code's units and those of the diffusion routines (from Bahcall's): CON_RAD, CON_MASS, CON_TEMP, CON_TIME. It replaces COMMON/CONFAC/ (MHP via Claude, 10/14/26).

Who sets them, who reads them. Set by MICRODIFF_SETUP and SETUP_GRSETT, with the same formulas ($1/R_\odot$, $10^{-2}$ CON_RAD³, $10^{-7}$, $2.7\times10^{13}$ yr in seconds: the units of Bahcall and Loeb (1989), a length unit $R_\odot$, a mass unit $100\ \mathrm{g\,cm^{-3}}\times R_\odot^3$, a temperature unit $10^7$ K, and a time unit that "includes factor of 2.2 from ln Lambda," the Coulomb logarithm; see MICRODIFF_SETUP); read by them and by EQUAL_TO_MODEL and MICRODIFF_ETM.

Definitions

moduleCONFAC_MOD

lines 19–29 · GitHub

Used by (4 units)

EQUAL_TO_MODEL, MICRODIFF_ETM, MICRODIFF_SETUP, SETUP_GRSETT

Change log

The changes since rp_1

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