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

tauint.f

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

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

Variables on this page (9)

cgl, cln, cmsun, envr, evels, json, lrot, numenv, taucz

Purpose

TAUINT computes the convective overturn time scale $\tau_\mathrm{cz}$ (TAUCZ) at the base of the surface convection zone, on the whole star's profile, interior and envelope joined (JVS 02/12, "snagged from MIDMOD"). It is the older method; tauintnew.f is the newer one (G. Somers 3/17).

How it fits

  • Inputs: the profile built by GETTAU: the interior shells only, since GETTAU stitches the envelope onto the profile only when LCALCENV and LNEWTCZ are both set, and calls TAUINT only when LNEWTCZ is false. HS1 (mass), LCZ, HR, HP, HD, HG, SVEL, and DEL1, DEL2, which GETTAU takes from SDEL(1,·) and SDEL(3,·), the radiative and adiabatic gradients; and, through ENVSTRUCT_MOD, the envelope from the last ENVINT call.
  • Who calls it: only GETTAU, when LNEWTCZ is false and TAUCZ is still 0 after its ENVINT call (which sets it through TAUCAL when the top of the interior model is radiative).
  • Output: TAUCZ in OVRTRN_MOD.
  • Modules: OVRTRN_MOD, ENVSTRUCT_MOD, NMLPAR_MOD (LROT) and CONSTANTS_MOD.

The method

If the top shell or the one below it is convective, the zone's base IMAX is the lowest shell of the convective run from the surface. The overturn time is computed only if LCZSUR is set, which the test (HSTOP-HSBOT)/CMSUN .GT. 0 makes true for any such zone.

  • Partly convective star: as in taucal.f, step 2 and 4: the base $r_b$ where $\nabla_1 - \nabla_2$ changes sign, $H_p = P/(\rho g)$ there, and $$\tau_\mathrm{cz} = \frac{H_p}{v(r_b + H_p)} ,$$ with $v$ interpolated linearly in $\log r$. If $r_b + H_p$ lies beyond the profile, the envelope in ENVSTRUCT_MOD is searched for the first convective point above it ("stitch on the envelope for more room"; the profile holds the interior only, so TAUINT searches the envelope itself), and $v$ is interpolated between the last shell and that point.

  • Fully convective star: the point where $H_p = r$, by linear interpolation of $H_p - r$; then $\tau_\mathrm{cz} = H_p/v$ there. If already $H_p \le r$ at the first shell, it takes $H_p \approx \sqrt{H_{p,1}\,r_1}$ and $v_1$ (the comment: "assume v constant inside and $H_p = k/r$" near the centre).

  • No surface zone: $\tau_\mathrm{cz} = 0$.

Definitions

subroutineTAUINT

lines 3–196 · GitHub

The older overturn time: $H_p/v$ one pressure scale height above the base of the surface convection zone, or at $H_p = r$ for a fully convective star.

Uses modules CONSTANTS_MOD, DIMENSIONS_MOD, ENVSTRUCT_MOD, NMLPAR_MOD, OVRTRN_MOD

Called by GETTAU

Change log

The changes since rp_1

Changed since rp_1. Declarations only: COMMON blocks to modules (/OVRTRN/ to OVRTRN_MOD, /ENVSTRUCT/ to ENVSTRUCT_MOD, /ROT/ to NMLPAR_MOD, the constants to CONSTANTS_MOD; the unused /COMP/, /DEUTER/ and /JTEST/ dropped, which settles the former question 3), the array size JSON from DIMENSIONS_MOD, IMPLICIT NONE.