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

op953d.f

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

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

Variables on this page (15)

bd, bdd, bt, btt, bx, cappa, jd, jt, jx, lexh, lexth, lextl, rho_t63l, rho_t63ll, rlh

Purpose

Gets the OPAL95 opacity from the table pre-interpolated to the model's $Z$ (MHP 7/98: "at fixed Z"): a three-dimensional interpolation in $X$, $\log T$ and $\log R$ ($R = \rho/T_6^3$). The same as OP952D, with one more interpolation in $X$.

How it fits

  • Inputs: the table CAPPA(10,70,19) of $\log\kappa$ at the model's $Z$ in LLOT95_MOD, built by OP95ZTAB; the indices and weights in OP95INTERP_MOD (BX(1,·) for $X$; formerly /OP95INDX/, /OP95FACT/ and /OP95EXT/), from GETOPAL95.
  • Who calls it: GETOPAL95, when the point's $Z$ matches the table's ZTAB (to a relative $10^{-4}$) but its $X$ does not match the surface table's, and the acoustic depth is not being computed.
  • Outputs: $\kappa$, $\log\kappa$, QOD and QOT, as in OP952D.

The method

For each of the four nearest $X$ tables, the interpolation of OP952D in $\log R$ (with linear extrapolation beyond the table) and in $\log T$ gives $\log\kappa$ and its two derivatives; these three are then interpolated in $X$ with four-point weights BX(1,J), and $\partial\log\kappa/\partial\log T$ is converted to constant $\rho$ as in OP952D.

Definitions

subroutineOP953D

lines 6–89 · GitHub

Uses modules LLOT95_MOD, OP95INTERP_MOD

Called by GETOPAL95

Change log

The changes since rp_1

Changed since rp_1. Declarations only: COMMON blocks to modules (the three interpolation blocks merged into OP95INTERP_MOD, with RL, RLL renamed RHO_T63L, RHO_T63LL), the dimension parameters moved into LLOT95_MOD, IMPLICIT NONE.