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

nulosses.f

97 lines · 2 definitions · on GitHub (7be4133)

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

Purpose

A thin wrapper, "modified by G. Newsham from codes of N. Itoh & F. Timmes (9/06)": it computes the composition's mean nucleon number $\bar A$ and charge $\bar Z$, and passes them to SNEUT, which computes the neutrino losses. The header notes that only the carbon coefficients are used for bremsstrahlung losses ("the differences for other elements is slight"), and that the cutoff at $0.01\,T_\mathrm{Fermi}$ "is applicable for helium but will need to be amended for carbon and oxygen white dwarfs and cores of AGB stars." In SNEUT this cutoff chooses between the two forms of the bremsstrahlung losses, the weakly degenerate one above $0.01\,T_\mathrm{Fermi}$ and the liquid-metal one with the ¹²C parameters below it; it does not limit the routine, and the parameters are the same for every composition (settled from the code, Nov 9, 2026: sneut.f, lines 882–889↗).

How it fits

  • Who calls it: NEUTRINO.
  • What it calls: AZBAR and SNEUT.
  • Outputs: SNU, DSNUDT, DSNUDD. SNEUT also returns the derivatives with respect to $\bar A$ and $\bar Z$ (DSNUDA, DSNUDZ), which are dropped here.

The method

With mass fractions $X_i$, nucleon numbers $A_i$ and charges $Z_i$, the molar abundances $Y_i = X_i/A_i$ give $$\bar A = \frac{1}{\sum_i Y_i},\qquad \bar Z = \bar A \sum_i Z_i\,Y_i .$$

Definitions

subroutineNULOSSES

lines 19–58 · GitHub

Called by NEUTRINO

Flowchart of its calls, in order (2)

subroutineAZBAR

lines 61–97 · GitHub

The mean nucleon number and charge of the mixture (equations above), from Timmes' code.

Called by NULOSSES

Change log

The changes since rp_1

Changed since rp_1. None: the file is the same as at rp_1.