DotNet.Astronomy.Class.StarPhysics - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Astronomy / StarPhysics

Class: StarPhysics

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:93

What a scanned star burns, weighs and turns at.

Remarks

Every calculation reads the figures the scan states, and answers null where the star states none it can use.

The maths is ported from the Canonn Research Group's canonn-signals. See ATTRIBUTIONS.md for credit and licence terms.

Fields

ChandrasekharLimitSolarMasses

const ChandrasekharLimitSolarMasses: double = 1.44

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:102

The mass above which a white dwarf cannot hold itself up, in solar masses.

NeutronStarMassDropOffSolarMasses

const NeutronStarMassDropOffSolarMasses: double = 2.51

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:108

The mass above which the game states no neutron star, in solar masses.

SolarRadius

const SolarRadius: double = 695_700_000

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:99

The Sun's radius, in metres.

SpeedOfLight

const SpeedOfLight: double = 299_792_458

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:96

The speed of light, in metres a second.

TovLimitSolarMasses

const TovLimitSolarMasses: double = 2.17

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:105

The mass above which a neutron star is expected to collapse, in solar masses.

Methods

AbsoluteBolometricMagnitude()

static AbsoluteBolometricMagnitude(body): double?

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:146

How bright a star is across every wavelength.

Parameters

body

BodyProperties

The star, as a scan states it.

Returns

double?

The magnitude, or null where the star states no radius or no temperature.

Remarks

This is the whole output rather than the visible part, so it differs from the absolute magnitude the scan itself states.

Exceptions

ArgumentNullException

The star is absent.

AssessMassStability()

static AssessMassStability(body): MassStabilityAssessment?

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:179

Whether a star weighs more than its class should allow.

Parameters

body

BodyProperties

The star, as a scan states it.

Returns

MassStabilityAssessment?

The limit it has passed, or null where it has passed none, or the star states no mass or no class.

Exceptions

ArgumentNullException

The star is absent.

ClassifyNeutronStar()

static ClassifyNeutronStar(body): NeutronStarClass?

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:226

What kind of neutron star a scan describes.

Parameters

body

BodyProperties

The star, as a scan states it.

Returns

NeutronStarClass?

The class, or null where the star states no mass, no rotation period or no absolute magnitude.

Remarks

The rotation period is read without its sign, because a star that turns the other way turns just as fast.

Exceptions

ArgumentNullException

The star is absent.

MainSequenceLifetime()

static MainSequenceLifetime(body): double?

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:127

How long a star burns on the main sequence, in millions of years.

Parameters

body

BodyProperties

The star, as a scan states it.

Returns

double?

The lifetime, or null where the star states no mass.

Exceptions

ArgumentNullException

The star is absent.

SchwarzschildRadius()

static SchwarzschildRadius(body): double?

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/StarPhysics.cs:164

How small a body must be squeezed to become a black hole, in metres.

Parameters

body

BodyProperties

The body, as a scan states it.

Returns

double?

The radius, or null where the body states no mass.

Exceptions

ArgumentNullException

The body is absent.

⚠️ **GitHub.com Fallback** ⚠️