Physics Options#
YREC is generally called by two namelists: the “control” namelist, or nml1; and the “physics” namelist, or nml2. This page is a reference that will document various current and deprecated possible commands in the namelist files.
Physics (.nml2)#
Constants#
YREC does computations in CGS but outputs in solar units.
Parameter |
Description |
|---|---|
|
Definition of \(L_\odot\) used for tracks and output |
|
Definition of \(R_\odot\) used for tracks and output |
Core fitting options#
Parameter |
Description |
|---|---|
|
If |
|
Factor in mass by which the central fitting point is moved inward. |
Gravitational settling & microscopic diffusion#
Parameter |
Description |
|---|---|
|
Enable gravitational settling of helium. |
|
Enable gravitational settling of metals. |
|
Enable gravitational settling of light species. |
|
Scaling factor for helium-settling diffusion coefficients (e.g., 0.75 if no rotational mixing). |
|
Scaling factor for metal-settling diffusion coefficients. |
|
Settling solved in multiple timesteps if global timestep < |
|
Disable diffusion once central hydrogen |
|
Disable diffusion once surface helium |
|
Numerical tolerance for diffusion abundance changes. |
|
Maximum iterations for diffusion abundance solver. |
|
Formula for Coulomb logarithm, used in collision integrals; 4 (recommended) is a constant, 2.2. |
Numerical convergence options#
Parameter |
Description |
|---|---|
|
Extrapolate changes from prior step for next step in initial entropy change estimate; can improve convergence. |
|
Iterations before SBC (surface boundary condition) is checked. |
|
Iterations after SBC check, assumes start of T nuclear burning rates. |
|
Iterate between model solution and nuclear burning rates (set to 0 if you encounter convergence difficulties). |
|
Iterate betweeen model solution, rotation, and rotationally induced mixing. Set to 0 for models without rotation. |
|
Iterations between structure equations and rotational mixing (1=none). This is the same as NITER3 unless >1. Recommend 2 for rotational mixing models. |
|
The code predicts corrections to the structure variables, which can initially be overestimated. This is the iteration 1 scale factor by which they are multipled. |
|
This is the increment to the factor for each successive interation, for example it reaches the max of 1 in 8 steps if (0.6,0.05). larger factor = faster convergence, less stable. |
|
Convergence tol for log P. If the maximum correction in a given stage anywhere is below this threshold (for all 4 state variables), the run is converged. |
|
Convergence tol for log T. |
|
Convergence tol for log R. |
|
Convergence tol for L/Ltot. Note: all are local |
|
If the difference between analytic and numerical derivatives is better than this, iteration is skipped. (5,1) is for P+R |
|
If the difference between analytic and numerical derivatives is better than this, iteration is skipped. (5,2) is for T+L |
Convective mixing & overshoot#
Parameter |
Description |
|---|---|
|
Enable semi-convection. |
|
Enable core overshoot mixing. Note: unless |
|
Core overshoot in pressure scale heights. |
|
Alternative test (only checked if |
|
Alternative test - maximum overshoot in fraction of physical size of core |
|
Enable envelope overshoot. |
|
Envelope overshoot in pressure scale heights. |
|
Enable overshoot in intermediate convection zones (recommend not on, needs to be checked). |
|
Intermediate overshoot (above and below) in pressure scale heights. |
|
Adiabatic convection assumed above this log T. |
Equation of state (EOS)#
Parameter |
Description |
|---|---|
|
Use SCV EOS in domain where it is valid and OPAL is not. |
|
Use OPAL EOS. Note - a simplified Boltzmann/Saha solver, fully ionized at high T, is used when this is disabled, or outside the table. |
|
Use numerical derivatives instead of analytic ones (very slow). |
|
Use Debye–Hückel correction for the Yale EOS. |
|
Lower Debye–Hückel parameter limit. |
|
Upper Debye–Hückel parameter limit. |
|
Threshold above which the default EOS assumes full ionization. |
Opacity options#
Parameter |
Description |
|---|---|
|
Use updated conductive opacity tables. |
|
The code generates a 2D surface abundance opacity table, useful for outer CZs and envelope integration. It switches to a 3D/4D solution when x, z differ from it by more than this. |
|
Below this |
|
Above this |
Nuclear reaction & burning options#
Numerics
The numerics of abundance change solutions and thresholds for computing reaction rates. Only TCUT1 is adjusted from default. Do not change without good reason.
Parameter |
Description |
|---|---|
|
Threshold for using weak-screening in reaction rates. |
|
Compute solar neutrino fluxes. |
|
Temperature threshold for computing \(\epsilon _{\mathrm{nuc}}\). Others are thresholds for progressively more advanced burning stages (Default 6.5, bad for D burning in preMS) |
|
Minimum abundance tracked in solver. |
|
Absolute convergence criterion for abundance changes. |
|
Relative convergence criterion for abundance changes. |
|
Maximum substeps for abundance integration. |
Light-element burning cross-sections#
Parameter |
Description |
|---|---|
|
Use manually specified p+⁶Li cross-section. |
|
Use manually specified p+⁷Li cross-section. |
|
Value of p+⁶Li cross-section (keV barns). |
|
Value of p+⁷Li cross-section (keV barns). |
|
Toggle p+⁹Be → γ channel. |
|
Toggle p+⁶Li → d channel. |
|
Toggle p+⁶Li → α channel. |
|
Cross-section for p(⁹Be,γ). |
|
Cross-section for p(⁹Be,d). |
|
Cross-section for p(⁹Be,α). |
Surface boundary conditions#
Parameter |
Description |
|---|---|
|
SBC model selector (0=Eddington, 1=Krishnaswamy, 3=Kurucz, 4=Allard). |
|
The code solves for a SBC between 3 models. This is the spacing between 2 of them in Log Teff. The third is a different L at the average Teff. |
|
Spacing between the lower pair and upper point in Log L. |
Atmospheric integration#
Parameter |
Description |
|---|---|
|
Numerical tolerance for atmosphere integration. |
|
Maximum step size in log τ for atmosphere integrator. |
|
Minimum step size in log τ for atmosphere integrator. |
|
Initial step size in log τ for atmosphere integrator. |
|
log10 of starting density at τ = 0 in the atmosphere integrator (may need adjusting for massive stars). |
Envelope integrator#
Parameter |
Description |
|---|---|
|
Numerical tolerance for envelope integration. |
|
Maximum step size in log P for envelope integrator. |
|
Minimum step size in log P for envelope integrator. |
|
Initial step size in log P for envelope integrator. |
|
Required fractional agreement between envelope mass and mass at fitting point. |
|
Integrators start with a large step, divide to smaller, and extrapolate to zero. Maximum number of loops to infer integration step size (envelope + atmosphere). |
|
Number of prior steps used for extrapolation to zero step size (atm+env). |
Spatial tolerances#
Parameter |
Description |
|---|---|
|
Minimum mass spacing (most important for thin outer fitting points). |
|
Maximum log mass spacing (most important for stellar cores). |
|
Maximum spacing in L/Lsurf (most important for energy generating regions). |
|
Maximum log P spacing in outer CZ (most important for outer layers). |
|
Maximum log P spacing at SCZ base. |
|
Maximum log P spacing below SCZ (important between burning, SCZ base). |
|
Minimum threshold for preserving discontinuities in X. |
|
Minimum threshold for preserving discontinuities in Z. |
|
Width of fine-zoned region at CZ base (0.4 for red giant models). |
|
Minimum threshold for preserving Ω discontinuities. |
Timestep criteria#
Parameter |
Description |
|---|---|
|
Restrict timestep during Hertzsprung gap. |
|
Minimum X,Y for using core vs shell burning criteria. |
|
Max absolute ΔX in core H-burning. |
|
Max fractional ΔX in core H-burning. |
|
Max absolute ΔY/Z in core He-burning (red clump/HB). |
|
Max fractional ΔY/Z in core He-burning (red clump/HB). |
|
Max absolute H burned per timestep (post-MS). |
|
Max fractional ΔX in shell H-burning (post-MS). |
|
Max absolute He burned (AGB). |
|
Max fractional ΔY in He shell. |
|
Restrict timestep based on structural changes - disabled once Lgrav<0 (minimum radius, close to ZAMS). |
|
Max local ΔT (pre-MS). |
|
Max local ΔP (pre-MS). |
|
Max local ΔR (pre-MS). |
|
Max local ΔL (pre-MS). |
|
Max fractional timestep change step-to-step. |
|
Max ΔΩ per mixing substep (can be more than one per full model step). |
|
Max ΔΩ per model. |
Rotation#
Parameter |
Description |
|---|---|
|
Enable rotation. |
|
Force new SBC each model when rotation enabled. Required for models with rotation, as rotation is held fixed in the solution. |
Rotation & mixing timesteps#
Parameter |
Description |
|---|---|
|
Maximum ΔΩ per model step (replaces DTWIND). |
|
Maximum ΔΩ per mixing step (replaces DTDIF). |
|
Iterations between nuclear burning and rotational mixing (1=none). |
|
Numerical tolerance for rotational mixing. |
Structural effects of rotation#
Parameter |
Description |
|---|---|
|
Fractional accuracy for departures from spherical symmetry (cubed). |
|
Iterations between equipotential shape and effective radius solutions (structural effects of rotation). |
|
Iterations for measuring effective radius given shape parameter (structural effects of rotation). |
Initializing rotation#
Parameter |
Description |
|---|---|
|
Convert non-rotating model to rotating. |
|
Uniform angular velocity if |
|
Enforce disk locking. |
|
Disk lifetime in Gyr. 1e5yr = 1e-4 Gyr is the D burning BL. 1e-4 to 1e-2 is the recommended range |
|
Disk rotation period (rad/s). 8 days (9.0902e-6) is the observed median period in solar-mass disked stars in star forming regions. |
Angular momentum loss & winds#
Parameter |
Description |
|---|---|
|
Enable angular momentum loss. |
|
Use Matt et al. 2012 wind model. |
|
Wind law selector ( |
|
Scale factor for angular momentum loss. Typically used as a free parameter to reproduce the solar rotation at the solar age. |
|
Scale the loss rate relative to the Rossby number. Should be used with a saturation threshold ( |
|
Maximum angular velocity (rad/s) for scaling the mass loss rate and magnetic fields in the scaled solar wind. This is over-written if WMAX_SUN is below 1000; the latter expresses WMAX relative to the solar angular velocity. |
|
WMAX expressed in solar Ω units. |
|
log P at Teff in solar model (for B-field calibration). |
|
Solar convective overturn timescale. |
Angular momentum transport#
Parameter |
Description |
|---|---|
|
Include rotationally induced mixing and hydrodynamic AM transport. |
|
Enforce solid-body rotation everywhere. Set true for strongly coupled magnetic models. |
|
Angular velocity in CZ scales as R^WALPCZ. 0 = solid body -2 = uniform specific angular momentum |
|
Global angular momentum coupling settings. 0 = no effect 1 = solid body everywhere 2 = solid body core, decoupled cz 3 = solid body core, coupled at base of CZ rate. |
|
Include magnetic diffusion term. |
|
Magnetic diffusion term for angular momentum transport. 0 = Pure hydro. Nonzero=extra diffusive mechanism. 9e4 matches the solar core rotation constraints. |
|
Global factor for scaling the angular momentum transport diffusion coefficients. |
|
Scale factor for mixing diffusion coefficeints relative to angular momentum. Typicaly calibrated to match Li depletion in a benchmark (cluster stars or the Sun). |
|
Toggle for the stability condition used to evaluate the GSF and ABCD instabilties. 1 is recommended. |
Starspots#
Parameter |
Description |
|---|---|
|
Control that descreases spot contrast with depth, assuming a constant B. This does not have a dramatic effect on the results. |
|
Starspot filling factor. 0.25 is the active star bound in main sequence stars. |
|
Starspot temperature contrast; only alter if SPOTF > 0. 0.85 is a typical sunspot value. |
Rarely used options#
Parameter |
Description |
|---|---|
|
Use Thoul formalism for settling. |
|
Use published fit instead of full solution (not recommended). |
|
Abort threshold for log P divergence greater than this. |
|
Abort threshold for log T divergence greater than this. |
|
Abort threshold for log R divergence greater than this. |
|
Abort threshold for L/Ltot divergence greater than this. |
|
Minimum T for envelope integration. Code stops below this. |
|
Maximum T for envelope integration. Code stops above this. |
|
Max step for atmosphere integrator ( |
|
Max step for envelope integrator ( |
Legacy options#
Parameter |
Description |
|---|---|
|
Extend tracked isotopes to include D, Li6/7, Be9. |
|
Enable updated settling routines. |
|
Use new nuclear cross-section format. |
|
Use Itoh et al. (1996) neutrino loss rates. |
|
Use updated variable names for tolerances. |
|
Legacy mesh spacing in X. |
|
Legacy mesh spacing in Z. |
Experimental options#
Parameter |
Description |
|---|---|
|
Full mixing from center to fractional mass depth. |
|
Experimental adiabatic overshoot. |
|
Zahn 1991 variable-FC model. |
|
Treat meridional circulation as diffusion + advection. |
|
Enable experimental mass-loss module. |
|
Remove mass loss scaled to solar wind (not implemented). |
Unused parameters#
Parameter |
Description |
|---|---|
|
Not used. Former pp-chain equilibrium threshold. |
|
Not used. Former CNO-cycle equilibrium threshold. |
|
Not used. Obsolete core mesh allocation parameter. |
|
Not used. Outer-layer structure calculation after convergence. |
|
Not used. Legacy exponent for Kawaler (1988) wind law. |