Does anyone have a formula to estimate mass for the non-main sequence luminosity classes?
This is for the DefaultSSD mechanism of the Zelestra SSR. Basically it generates a Star System Definition for any hipparcos catalog number within the Zelestra SSR that isn't allocated for a Simulation. for example: http://www.zelestra.com/servlets/ssdgen?id=32349
Here is the code (java):
Code: Select all
lum = (Math.exp((4.83 - absmag) / 1.085736) * 4E+26);
area = lum / (5.67E-8 * Math.pow(temp,4));
radius = (Math.sqrt(area / (4 * 3.14159)) / 1000);
mass = (Math.pow((lum / 4E+26), (1 / 3.5f)) * 1.99E+30);
Please let me know if you see anything wrong with it.
Thanks,