Skip to content

src/core/hz.js ​

text
Habitable zone from the Kopparapu et al. (2013, 2014) effective-flux fits:
  S_eff = S_sun + a T + b T^2 + c T^3 + d T^4,  T = Teff - 5780 K  (2600-7200 K)
  d = sqrt(L / S_eff) AU
With L = R^2 (Teff/Tsun)^4 the distance in units of the stellar radius does not
depend on R at all:  d/R* = 215.032 (Teff/Tsun)^2 / sqrt(S_eff). Tsun = 5780 K
here, the value the fits were normalised with.

Import: import { … } from './src/core/hz.js' — no DOM, runs in Node and the browser.

seff ​

js
function seff(limit, teff)

No description in the source.

hzEdges ​

js
function hzEdges(teff)

HZ edges in stellar radii: optimistic [recentVenus, earlyMars], conservative [runaway, maxGreen].

hzProfile ​

js
function hzProfile({ teff, teffErr = 0, albedo = [0.2, 0.4] }, n = 128)
text
Radial membership profile that folds in what we do not know.
  teff, teffErr : the star's temperature and its 1-sigma uncertainty
  albedo [lo, hi]: range of planetary Bond albedo. The climate models behind
    the fits assume an Earth-like albedo near 0.3; a planet that reflects
    more absorbs less, so every edge is moved by sqrt((1-A)/(1-0.3)). This
    scaling is a heuristic layered on the published limits, not part of them.
Returns { r, w } with w in [0,1]: 1 where every draw puts r inside the
conservative zone, lower where only some draws (or only the optimistic
limits) include it.

MIT licensed · Kyle A. Pearson