Documentation
¶
Overview ¶
Package stars derives a simple stellar state from birth mass and age: life stage, surface temperature, luminosity, and radius.
Constants and units come from measure; empirical and chosen parameters come from research data; mainsequence.txt supplies the published dwarf sequence. Comments retain the distinction between measurements and tuning.
Two life stages are implemented: Burning and Ended. Ended currently has no emitted light or remnant model. The fixed fuel fraction is a simplified lifetime model, particularly inaccurate for massive stars.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Life ¶ added in v0.0.3
type Life struct {
// contains filtered or unexported fields
}
Life identifies the implemented stellar stage: Burning or Ended.
type Star ¶
type Star struct {
// contains filtered or unexported fields
}
Star stores the modelled state at an age and the light it emits.
func NewStar ¶
NewStar derives a state from birth mass and age. It rejects masses outside the published main-sequence table and ages below zero or above the universe’s age. NaN also fails these range checks.
func (Star) Luminosity ¶
Luminosity returns total emitted power across all wavelengths, not only visible light.
func (Star) Temperature ¶
func (star Star) Temperature() measure.Temperature
Temperature returns surface temperature, or zero in the current Ended model.