-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstar_temps.cpp
98 lines (87 loc) · 2.92 KB
/
star_temps.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#include "star_temps.h"
// Star temperature data from Lang's _Astrophysical Data: Planets and Stars_
// Temperatures from missing (and typically not used) types in those
// tables were just interpolated.
long double tempO[3][10] =
{
{ 52500, 52500, 52500, 52500, 48000, 44500, 41000, 38000, 35800, 33000 },
{ 50000, 50000, 50000, 50000, 45500, 42500, 39500, 37000, 34700, 32000 },
{ 47300, 47300, 47300, 47300, 44100, 42500, 39500, 37000, 34700, 32000 },
};
long double tempB[3][10] =
{
{ 30000, 25400, 22000, 18700, 17000, 15400, 14000, 13000, 11900, 10500 },
{ 29000, 24000, 20300, 17100, 16000, 15000, 14100, 13200, 12400, 11000 },
{ 26000, 20800, 18500, 16200, 15100, 13600, 13000, 12200, 11200, 10300 },
};
long double tempA[3][10] =
{
{ 9520, 9230, 8970, 8720, 8460, 8200, 8020, 7850, 7580, 7390 },
{ 10100, 9480, 9000, 8600, 8300, 8100, 7850, 7650, 7450, 7250 },
{ 9730, 9230, 9080, 8770, 8610, 8510, 8310, 8150, 7950, 7800 },
};
long double tempF[3][10] =
{
{ 7200, 7050, 6890, 6740, 6590, 6440, 6360, 6280, 6200, 6110 },
{ 7150, 7000, 6870, 6720, 6570, 6470, 6350, 6250, 6150, 6080 },
{ 7700, 7500, 7350, 7150, 7000, 6900, 6500, 6300, 6100, 5800 },
};
long double tempG[3][10] =
{
{ 6030, 5940, 5860, 5830, 5800, 5770, 5700, 5630, 5570, 5410 },
{ 5850, 5650, 5450, 5350, 5250, 5150, 5050, 5070, 4900, 4820 },
{ 5550, 5350, 5200, 5050, 4950, 4850, 4750, 4660, 4600, 4500 },
};
long double tempK[3][10] =
{
{ 5250, 5080, 4900, 4730, 4590, 4350, 4200, 4060, 3990, 3920 },
{ 4750, 4600, 4420, 4200, 4000, 3950, 3900, 3850, 3830, 3810 },
{ 4420, 4330, 4250, 4080, 3950, 3850, 3760, 3700, 3680, 3660 },
};
long double tempM[3][10] =
{
{ 3850, 3720, 3580, 3470, 3370, 3240, 3050, 2940, 2640, 2000 },
{ 3800, 3720, 3620, 3530, 3430, 3330, 3240, 3240, 3240, 3240 },
{ 3650, 3550, 3450, 3200, 2980, 2800, 2600, 2600, 2600, 2600 },
};
// Wolf-Rayet temperatures. From Lang's Astrophysical Data: Planets and
// Stars.
long double tempWN[10] =
{
50000, 50000, 50000, 50000, 47000, 43000, 39000, 32000, 29000, 29000
};
long double tempWC[10] =
{
60000, 60000, 60000, 60000, 60000, 60000, 60000, 54000, 46000, 38000
};
// Brown dwarf temperatures
long double tempL[10] =
{
1960, 1930, 1900, 1850, 1800, 1740, 1680, 1620, 1560, 1500
};
long double tempT[10] =
{
1425, 1350, 1275, 1200, 1140, 1080, 1020, 900, 800, 750
};
long double tempH[10] =
{
500, 450, 400, 350, 300, 250, 200, 150, 100, 0
};
long double tempY[10] =
{
750, 700, 650, 600, 550, 500, 450, 400, 300, 273
};
long double tempI[10] =
{
1000000, 900000, 800000, 700000, 600000, 500000, 400000, 300000, 200000,100000
};
long double tempE[10] =
{
10000000, 9000000, 8000000, 7000000, 6000000, 5000000, 4000000, 3000000, 2000000, 1000000
};
// White dwarf temperaturs
long double tempWD[10] =
{
100000.0f, 50400.0f, 25200.0f, 16800.0f, 12600.0f,
10080.0f, 8400.0f, 7200.0f, 6300.0f, 5600.0f,
};