Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

star.cpp File Reference

#include <celmath/mathlib.h>
#include <cstring>
#include "celestia.h"
#include "astro.h"
#include "orbit.h"
#include "star.h"
#include "texmanager.h"

Include dependency graph for star.cpp:

Go to the source code of this file.

Defines

#define SOLAR_RADIUS   696000
#define SOLAR_TEMPERATURE   5860.0f

Variables

static StarDetailsbarycenterDetails = NULL
static StarDetailsblackHoleDetails = NULL
static float bmag_correctionA [3][10]
static float bmag_correctionB [3][10]
static float bmag_correctionF [3][10]
static float bmag_correctionG [3][10]
static float bmag_correctionK [3][10]
static float bmag_correctionL [10]
static float bmag_correctionM [3][10]
static float bmag_correctionO [3][10]
static float bmag_correctionT [10]
char * LumClassNames [StellarClass::Lum_Count]
static StarDetailsneutronStarDetails = NULL
static StarDetails ** normalStarDetails = NULL
static float rotperiod_A [3][10]
static float rotperiod_B [3][10]
static float rotperiod_F [3][10]
static float rotperiod_G [3][10]
static float rotperiod_K [3][10]
static float rotperiod_M [3][10]
static float rotperiod_O [3][10]
char * SpectralClassNames [StellarClass::NormalClassCount]
char * SubclassNames [11]
static float tempA [3][10]
static float tempB [3][10]
static float tempF [3][10]
static float tempG [3][10]
static float tempK [3][10]
static float tempL [10]
static float tempM [3][10]
static float tempO [3][10]
static float tempT [10]
static float tempWC [10]
static float tempWN [10]
char * WDSpectralClassNames [StellarClass::WDClassCount]
static StarDetails ** whiteDwarfDetails = NULL


Define Documentation

#define SOLAR_RADIUS   696000
 

Definition at line 26 of file star.cpp.

Referenced by Star::getRadius().

#define SOLAR_TEMPERATURE   5860.0f
 

Definition at line 25 of file star.cpp.

Referenced by Star::getRadius().


Variable Documentation

StarDetails* barycenterDetails = NULL [static]
 

Definition at line 46 of file star.cpp.

Referenced by StarDetails::GetBarycenterDetails().

StarDetails* blackHoleDetails = NULL [static]
 

Definition at line 45 of file star.cpp.

Referenced by StarDetails::GetBlackHoleDetails().

float bmag_correctionA[3][10] [static]
 

Initial value:

 
{
    
    {
        -0.30f, -0.23f, -0.20f, -0.17f, -0.16f,
        -0.15f, -0.13f, -0.12f, -0.10f, -0.09f,
    },
    
    {
        -0.42f, -0.29f, -0.20f, -0.17f, -0.15f,
        -0.14f, -0.12f, -0.10f, -0.10f, -0.10f,
    },
    
    {
        -0.41f, -0.32f, -0.28f, -0.21f, -0.17f,
        -0.13f, -0.09f, -0.06f, -0.03f, -0.02f,
    }
}

Definition at line 168 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float bmag_correctionB[3][10] [static]
 

Initial value:

 
{
    
    {
        -3.16f, -2.70f, -2.35f, -1.94f, -1.70f,
        -1.46f, -1.21f, -1.02f, -0.80f, -0.51f,
    },
    
    {
        -2.88f, -2.43f, -2.02f, -1.60f, -1.45f,
        -1.30f, -1.13f, -0.97f, -0.82f, -0.71f,
    },
    
    {
        -2.49f, -1.87f, -1.58f, -1.26f, -1.11f,
        -0.95f, -0.88f, -0.78f, -0.66f, -0.52f,
    }
}

Definition at line 149 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float bmag_correctionF[3][10] [static]
 

Initial value:

 
{
    
    {
        -0.09f, -0.10f, -0.11f, -0.12f, -0.13f,
        -0.14f, -0.14f, -0.15f, -0.16f, -0.17f,
    },
    
    {
        -0.11f, -0.11f, -0.11f, -0.12f, -0.13f,
        -0.13f, -0.15f, -0.15f, -0.16f, -0.18f,
    },
    
    {
        -0.01f,  0.00f,  0.00f, -0.01f, -0.02f,
        -0.03f, -0.05f, -0.07f, -0.09f, -0.12f,
    }
}

Definition at line 187 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float bmag_correctionG[3][10] [static]
 

Initial value:

 
{
    
    {
        -0.18f, -0.19f, -0.20f, -0.20f, -0.21f,
        -0.21f, -0.27f, -0.33f, -0.40f, -0.36f,
    },
    
    {
        -0.20f, -0.24f, -0.27f, -0.29f, -0.32f,
        -0.34f, -0.37f, -0.40f, -0.42f, -0.46f,
    },
    
    {
        -0.15f, -0.18f, -0.21f, -0.25f, -0.29f,
        -0.33f, -0.36f, -0.39f, -0.42f, -0.46f,
    }
}

Definition at line 206 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails(), and Star::getRadius().

float bmag_correctionK[3][10] [static]
 

Initial value:

 
{
    
    {
        -0.31f, -0.37f, -0.42f, -0.50f, -0.55f,
        -0.72f, -0.89f, -1.01f, -1.13f, -1.26f,
    },
    
    {
        -0.50f, -0.55f, -0.61f, -0.76f, -0.94f,
        -1.02f, -1.09f, -1.17f, -1.20f, -1.22f,
    },
    
    {
        -0.50f, -0.56f, -0.61f, -0.75f, -0.90f,
        -1.01f, -1.10f, -1.20f, -1.23f, -1.26f,
    }
}

Definition at line 225 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float bmag_correctionL[10] [static]
 

Initial value:

{ 
    -4.6f, -4.9f, -5.0f, -5.2f, -5.4f, -5.9f, -6.1f, -6.7f, -7.4f, -8.2f,
}

Definition at line 264 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float bmag_correctionM[3][10] [static]
 

Initial value:

 
{
    
    {
        -1.38f, -1.62f, -1.89f, -2.15f, -2.38f,
        -2.73f, -3.21f, -3.46f, -4.10f, -4.40f,
    },
    
    {
        -1.25f, -1.44f, -1.62f, -1.87f, -2.22f,
        -2.48f, -2.73f, -2.73f, -2.73f, -2.73f,
    },
    
    {
        -1.29f, -1.38f, -1.62f, -2.13f, -2.75f,
        -3.47f, -3.90f, -3.90f, -3.90f, -3.90f,
    }
}

Definition at line 244 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float bmag_correctionO[3][10] [static]
 

Initial value:

 
{
    
    {
        -4.75f, -4.75f, -4.75f, -4.75f, -4.45f,
        -4.40f, -3.93f, -3.68f, -3.54f, -3.33f,
    },
    
    {
        -4.58f, -4.58f, -4.58f, -4.58f, -4.28f,
        -4.05f, -3.80f, -3.58f, -3.39f, -3.13f,
    },
    
    {
        -4.41f, -4.41f, -4.41f, -4.41f, -4.17f,
        -3.87f, -3.74f, -3.48f, -3.35f, -3.18f,
    }
}

Definition at line 130 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float bmag_correctionT[10] [static]
 

Initial value:

{ 
    -8.9f, -9.6f, -10.8f, -11.9f, -13.1f, -14.4f, -16.1f, -17.9f, -19.6f, -19.6f,
}

Definition at line 269 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

char* LumClassNames[StellarClass::Lum_Count]
 

Initial value:

 {
    "I-a0", "I-a", "I-b", "II", "III", "IV", "V", "VI", ""
}

Definition at line 342 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

StarDetails* neutronStarDetails = NULL [static]
 

Definition at line 44 of file star.cpp.

Referenced by StarDetails::GetNeutronStarDetails().

StarDetails** normalStarDetails = NULL [static]
 

Definition at line 42 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float rotperiod_A[3][10] [static]
 

Initial value:

{
    { 0.7f, 0.7f, 0.6f, 0.6f, 0.5f, 0.5f, 0.5f, 0.6f, 0.6f, 0.7f },
    { 2.5f, 2.3f, 2.1f, 1.9f, 1.7f, 1.6f, 1.6f, 1.7f, 1.7f, 1.8f },
    { 75.0f, 77.0f, 80.0f, 82.0f, 85.0f, 87.0f, 95.0f, 104.0f, 115.0f, 125.0f },
}

Definition at line 303 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float rotperiod_B[3][10] [static]
 

Initial value:

{
    { 2.0f, 1.8f, 1.6f, 1.4f, 1.1f, 0.8f, 0.8f, 0.8f, 0.8f, 0.7f },
    { 6.3f, 5.6f, 5.0f, 4.3f, 3.7f, 3.1f, 2.9f, 2.8f, 2.7f, 2.6f },
    { 15.0f, 24.0f, 33.0f, 42.0f, 52.0f, 63.0f, 65.0f, 67.0f, 70.0f, 72.0f },
}

Definition at line 296 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float rotperiod_F[3][10] [static]
 

Initial value:

{
    { 0.7f, 0.7f, 0.6f, 0.6f, 0.5f, 0.5f, 0.5f, 0.6f, 0.6f, 0.7f },
    { 1.9f, 2.5f, 3.0f, 3.5f, 4.0f, 4.6f, 5.6f, 6.7f, 7.8f, 8.9f },
    { 135.0f, 141.0f, 148.0f, 155.0f, 162.0f, 169.0f, 175.0f, 182.0f, 188.0f, 195.0f },
}

Definition at line 310 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float rotperiod_G[3][10] [static]
 

Initial value:

{
    { 11.1f, 18.2f, 25.4f, 24.7f, 24.0f, 23.3f, 23.0f, 22.7f, 22.3f, 21.9f },
    { 10.0f, 13.0f, 16.0f, 19.0f, 22.0f, 25.0f, 28.0f, 31.0f, 33.0f, 35.0f },
    { 202.0f, 222.0f, 242.0f, 262.0f, 282.0f,
      303.0f, 323.0f, 343.0f, 364.0f, 384.0f },
}

Definition at line 317 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float rotperiod_K[3][10] [static]
 

Initial value:

{
    { 21.5f, 20.8f, 20.2f, 19.4f, 18.8f, 18.2f, 17.6f, 17.0f, 16.4f, 15.8f },
    { 38.0f, 43.0f, 48.0f, 53.0f, 58.0f, 63.0f, 71.0f, 78.0f, 86.0f, 93.0f },
    { 405.0f, 526.0f, 648.0f, 769.0f, 891.0f,
      1012.0f, 1063.0f, 1103.0f, 1154.0f, 1204.0f },
}

Definition at line 325 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float rotperiod_M[3][10] [static]
 

Initial value:

{
    { 15.2f, 12.4f, 9.6f, 6.8f, 4.0f, 1.3f, 1.0f, 0.7f, 0.4f, 0.2f },
    { 101.0f, 101.0f, 101.0f, 101.0f, 101.0f, 101.0f, 101.0f, 101.0f, 101.0f, 101.0f },
    { 1265.0f, 1265.0f, 1265.0f, 1265.0f, 1265.0f,
      1265.0f, 1265.0f, 1265.0f, 1265.0f, 1265.0f },
}

Definition at line 333 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float rotperiod_O[3][10] [static]
 

Initial value:

{
    { 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f },
    { 6.3f, 6.3f, 6.3f, 6.3f, 6.3f, 6.3f, 6.3f, 6.3f, 6.3f, 6.3f },
    { 15.0f, 15.0f, 15.0f, 15.0f, 15.0f, 15.0f, 15.0f, 15.0f, 15.0f, 15.0f },
}

Definition at line 289 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

char* SpectralClassNames[StellarClass::NormalClassCount]
 

Initial value:

 {
    "O", "B", "A", "F", "G", "K", "M", "R",
    "S", "N", "WC", "WN", "?", "L", "T", "C",
}

Definition at line 350 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

char* SubclassNames[11]
 

Initial value:

 {
    "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ""
}

Definition at line 346 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails(), and StarDetails::GetWhiteDwarfDetails().

float tempA[3][10] [static]
 

Initial value:

{
    {  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 },
}

Definition at line 66 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float tempB[3][10] [static]
 

Initial value:

{
    { 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 },
}

Definition at line 59 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float tempF[3][10] [static]
 

Initial value:

{
    { 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 },
}

Definition at line 73 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float tempG[3][10] [static]
 

Initial value:

{
    { 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 },
}

Definition at line 80 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float tempK[3][10] [static]
 

Initial value:

{
    { 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 },
}

Definition at line 87 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float tempL[10] [static]
 

Initial value:

{
    1960, 1930, 1900, 1850, 1800, 1740, 1680, 1620, 1560, 1500
}

Definition at line 114 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float tempM[3][10] [static]
 

Initial value:

{
    { 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 },
}

Definition at line 94 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float tempO[3][10] [static]
 

Initial value:

{
    { 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 },
}

Definition at line 52 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float tempT[10] [static]
 

Initial value:

{
    1425, 1350, 1275, 1200, 1140, 1080, 1020, 900, 800, 750
}

Definition at line 119 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float tempWC[10] [static]
 

Initial value:

{
    60000, 60000, 60000, 60000, 60000, 60000, 60000, 54000, 46000, 38000
}

Definition at line 108 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

float tempWN[10] [static]
 

Initial value:

{
    50000, 50000, 50000, 50000, 47000, 43000, 39000, 32000, 29000, 29000
}

Definition at line 103 of file star.cpp.

Referenced by StarDetails::GetNormalStarDetails().

char* WDSpectralClassNames[StellarClass::WDClassCount]
 

Initial value:

 {
    "DA", "DB", "DC", "DO", "DQ", "DZ", "D", "DX",
}

Definition at line 355 of file star.cpp.

Referenced by StarDetails::GetWhiteDwarfDetails().

StarDetails** whiteDwarfDetails = NULL [static]
 

Definition at line 43 of file star.cpp.

Referenced by StarDetails::GetWhiteDwarfDetails().


Generated on Sat Jan 14 22:31:17 2006 for Celestia by  doxygen 1.4.1