Questions about absoluteMag, bolometricMag and star masses.
Posted: 09.06.2003, 09:08
I am writing some code to generate systems based on the mass and luminosity of stars. I have the option of calculating the luminosity on either the absolute or bolometric magnitude. Which would be more suitable? What is the difference?
Also I am currently using the below table to find the mass given the spectralClass of a star.
I want to make this as accurate as I can so if anyone has any comments or links to similar tables that I could compare this to it would be much appreciated.
Also I am currently using the below table to find the mass given the spectralClass of a star.
I want to make this as accurate as I can so if anyone has any comments or links to similar tables that I could compare this to it would be much appreciated.
Code: Select all
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#ifdef USE_GRAVITY
//star mass info for main sequence stars from tables found on the internet
//http://curriculum.calstatela.edu/courses/builders/lessons/less/les1/StarTables.html
//in units of sols
static float massO[10] =
{ //guessed the first 4 entries
210, 180, 150, 120, 90, 60, 37, 30, 23, 23.3f
};
static float massB[10] =
{
17.5f, 14.2f, 10.9f, 7.6f, 6.5f, 5.9f, 5.2f, 4.5f, 3.8f, 3.35f
};
static float massA[10] =
{
2.9f, 2.72f, 2.54f, 2.36f, 2.2f, 2.0f, 1.92f, 1.84f, 1.76f, 1.65f
};
static float massF[10] =
{
1.6f, 1.56f, 1.52f, 1.48f, 1.44f, 1.4f, 1.34f, 1.26f, 1.19f, 1.10f
};
static float massG[10] =
{ //sol
1.05f, 1.025f, 1.0f, 0.97f, 0.95f, 0.92f, 0.89f, 0.87f, 0.842f, 0.82f
};
static float massK[10] =
{
0.79f, 0.766f, 0.742f, 0.718f, 0.694f, 0.670f, 0.64f ,0.606f, 0.575f, 0.55f
};
static float massM[10] =
{
0.510f, 0.445f, 0.400f, 0.350f, 0.300f, 0.250f, 0.207f, 0.163f, 0.120f, 0.100f
};
#endif //USE_GRAVITY
//`````````````````````````````````````````````````````````````````````````````````````````````````