Template:Solar radius calculator/doc

From testwiki
Revision as of 09:02, 5 October 2021 by imported>Nussun05 (Values and calculations: Such formulae don't exist anyway)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Documentation subpage This template is primarily used by Template:T to simplify its code and allow for easier updating should values require changing. It calculates the radius of a star in comparison to the Solar radius Template:Solar radius.

Parameters

This template has one named and up to two unnamed parameters; the named parameter type determines the calculation, while the unnamed parameter(s) are the values to be input into the equation. If the unit Template:Solar radius is desired, use Template:Para and optional Template:Para.

Template:Para 1 2
Rcm Radius in cm
Rm Radius in m
AD angular diameter in milliarcseconds (mas) distance in kiloparsecs
logLT log of the luminosity temperature in K
LT luminosity temperature in K

Examples

Rcm
Template:TlcTemplate:Solar radius calculator
AD
Template:TlcTemplate:Solar radius calculator
LT using logL
Template:TlcTemplate:Solar radius calculator
LT using L and unit
Template:TlcTemplate:Solar radius calculator

Values and calculations

All radii, once calculated, are divided by Template:Val to convert from m to Template:Solar radius.

AD
radius determined from angular diameter and distance
δ=206,265(d/D)arcsecondsd=δ*D206,265R=d2
D is multiplied by Template:Val to convert from kpc to m
L/Teff
radius calculated from bolometric luminosity and effective temperature per the Stefan–Boltzmann law
If logL is provided, 10logL is used
LR2*T4R=L*3.828×10267.125×107*T4
L is multiplied by Template:Val to convert from solar luminosity to watts