starfall/astronomy/star/constants/mod.rs
1/// Below this is too low for a main-sequence star, probably.
2/// Measured in Msol, or solar mass equivalents.
3pub const MINIMUM_MASS: f64 = 0.075;
4
5/// Above this is too high for a main-sequence star, probably.
6/// Measured in Msol, or solar mass equivalents.
7pub const MAXIMUM_MASS: f64 = 120.0;
8
9/// Below this is probably too low to support conventional life.
10/// Measured in Msol, or solar mass equivalents.
11pub const MINIMUM_HABITABLE_MASS: f64 = 0.55;
12
13/// Above this is probably too high to support conventional life.
14/// Measured in Msol, or solar mass equivalents.
15pub const MAXIMUM_HABITABLE_MASS: f64 = 1.25;
16
17/// Assume a star has to be at least this old to have interesting life.
18///
19/// I'm assuming that life could get started at least a little sooner than on
20/// Earth, but figuring it'd take about the same amount of time to get to the
21/// interesting parts.
22///
23/// Measured in Gyr, or billions of years.
24pub const MINIMUM_HABITABLE_AGE: f64 = 4.0;
25
26/// The probability of generating an O-class star.
27pub const CLASS_O_WEIGHT: f64 = 0.00003;
28
29/// The probability of generating a B-class star.
30pub const CLASS_B_WEIGHT: f64 = 0.13;
31
32/// The probability of generating an A-class star.
33pub const CLASS_A_WEIGHT: f64 = 0.6;
34
35/// The probability of generating an F-class star.
36pub const CLASS_F_WEIGHT: f64 = 3.0;
37
38/// The probability of generating a G-class star.
39pub const CLASS_G_WEIGHT: f64 = 7.6;
40
41/// The probability of generating a K-class star.
42pub const CLASS_K_WEIGHT: f64 = 12.1;
43
44/// The probability of generating an M-class star.
45pub const CLASS_M_WEIGHT: f64 = 76.45;