|
EGXPhys
|
Functions | |
| template<typename T > | |
| T | AbsoluteMagnitude (const T apparentMagnitude, const T distanceInparsecs) |
| Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the distance, \(d_{pc}\), in parsecs it is away. \[M= m - 5 \left ( log_{10}(d_{pc}) - 1 \right )\] . More... | |
| template<typename T > | |
| T | AbsoluteMagnitudeFromParsecs (const T apparentMagnitude, const T distanceInparsecs) |
| Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the distance, \(d_{pc}\), in parsecs it is away. \[M= m - 5 \left ( log_{10}(d_{pc}) - 1 \right )\] . More... | |
| template<typename T > | |
| T | AbsoluteMagnitudeFromParallax (const T apparentMagnitude, const T parallaxInArcSec) |
| Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the parallax, \(p\), in arc seconds. \[M= m - 5 \left ( log_{10} \left ( \dfrac{1}{p} \right ) - 1 \right )\] . More... | |
| template<typename T > | |
| T | AbsoluteMagnitudeFromAU (const T apparentMagnitude, const T distanceInAstronomicalUnits) |
| Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the distance, \(d_{AU}\), in astronomical units it is away. \[M= m - 5 \left ( log_{10} \left ( \dfrac{\pi}{648000}d_{AU} \right ) - 1 \right )\] . More... | |
| template<typename T > | |
| T | Apoapsis (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis of an orbiting body. More... | |
| template<typename T > | |
| T | Apocenter (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis of an orbiting body. More... | |
| template<typename T > | |
| T | Apofocus (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis of an orbiting body. More... | |
| template<typename T > | |
| T | Apogalacticon (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around a galaxy. More... | |
| template<typename T > | |
| T | Apobothron (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around a black hole. More... | |
| template<typename T > | |
| T | Aponigricon (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around a black hole. More... | |
| template<typename T > | |
| T | Apastron (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around a star. More... | |
| template<typename T > | |
| T | Aphelion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around the Sun. More... | |
| template<typename T > | |
| T | Apohermion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Mercury. More... | |
| template<typename T > | |
| T | Apocytherion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Venus. More... | |
| template<typename T > | |
| T | Apogee (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Earth. More... | |
| template<typename T > | |
| T | Apolune (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Moon. More... | |
| template<typename T > | |
| T | Apocynthion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Moon. More... | |
| template<typename T > | |
| T | Aposelene (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Moon. More... | |
| template<typename T > | |
| T | Apoareion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Mars. More... | |
| template<typename T > | |
| T | Apozene (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Jupiter. More... | |
| template<typename T > | |
| T | Apojove (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Jupiter. More... | |
| template<typename T > | |
| T | Apochron (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Saturn. More... | |
| template<typename T > | |
| T | Apokrone (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Saturn. More... | |
| template<typename T > | |
| T | Aposaturnium (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Saturn. More... | |
| template<typename T > | |
| T | Apouranion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Uranus. More... | |
| template<typename T > | |
| T | Apoposeidon (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Neptune. More... | |
| template<typename T > | |
| T | Apohadion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates apoapsis around Pluto. More... | |
| template<typename T > | |
| T | BVColorToTempreture (const T BV) |
| Calculates the tempreture, \(T_{star}\), of a star in Kelvin from the B-V color index using Ballesteros' formula. This approximation assumes that stars are black bodies. \[T_{star}=4600 \left ( \frac{1}{0.92 (B-V)+ 1.7} + \frac{1}{0.92 (B-V) + 0.62} \right )\] . More... | |
| template<typename T > | |
| T | BVColorToTempretureBallesteros (const T BV) |
| Calculates the tempreture, \(T_{star}\), of a star in Kelvin from the B-V color index using Ballesteros' formula. This approximation assumes that stars are black bodies. \[T_{star}=4600 \left ( \frac{1}{0.92 (B-V)+ 1.7} + \frac{1}{0.92 (B-V) + 0.62} \right )\] . More... | |
| template<typename T > | |
| T | BolometricCorrectionVisual (const T starEffectiveSurfaceTemperatureInK) |
| Calculates the visual band bolometric correction, \(BC_{V}\), of a star using emperical data. The bolometric conversion is used to convert the absolute visual magnitude to the absolute bolometric magnitude. \[ BC_{V}=a + b ( \log T_{eff}) + c ( \log T_{eff})^2 + ...\] . More... | |
| template<typename T > | |
| T | CircumstellarHabitableZoneLimit (const T starLuminosityInW, const T stellarFluxEffective) |
| Calculates the Circumstellar Habitable Zone Limits, \(d_{CHZL}\) of a star. Also known as Habitable Zone Limits. More... | |
| template<typename T > | |
| T | StellarFluxEffectiveSelsis (const T starEffectiveSurfaceTemperatureInK, const T sunEffectiveStellarFlux, const T aModelParameter, const T bModelParameter) |
| Calculates the effective stellar flux, \((S_{eff})\) of a star using Selsis estimation. More... | |
| template<typename T > | |
| T | StellarFluxEffectiveUnderwood (const T starEffectiveSurfaceTemperatureInK, const T sunEffectiveStellarFlux, const T aModelParameter, const T bModelParameter) |
| Calculates the effective stellar flux \((S_{eff})\) using Underwood estimation. More... | |
| template<typename T > | |
| T | CircumstellarHabitableZoneInnerBoundary (const T starEffectiveSurfaceTemperatureInK, const T starLuminosityInW) |
| Calculates the inner boundary of the Habitable Zone of a solar system. More... | |
| template<typename T > | |
| T | CircumstellarHabitableZoneOuterBoundary (const T starEffectiveSurfaceTemperatureInK, const T starLuminosityInW) |
| Calculates Circumstellar Habitable Zone Outer Boundary \((r_o)\) of a star. More... | |
| template<typename T > | |
| T | CircumstellarHabitableZoneDistance (const T distanceFromStar, const T CHZInnerBoundary, const T CHZOuterBoundary) |
| Calculates Circumstellar Habitable Zone Distance \((CHZD)\) of a planet. Also known as Habitable Zone Distance. More... | |
| template<typename T1 , typename T2 > | |
| void | ColorTemperatureToRGB (const T1 temperatureInK, T2 &R, T2 &G, T2 &B) |
| Calculates the color RGB values from the color tempreture, \(T_{black}\), assuming the color was emitted via black body radiation. More... | |
| template<typename T > | |
| glm::vec3 | ColorTemperatureToRGB (const T temperatureInK) |
| Calculates the color RGB values from the color tempreture, \(T_{black}\), assuming the color was emitted via black body radiation. More... | |
| template<typename T > | |
| T | DeclinationToDegree (const T integerDegree, const T arcminute, const T arcsecond) |
| Converts declination \((\alpha_{DE})\) from degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) to (decimal) degrees. \[\alpha_{deg}=DE_{deg} + \frac{DE_{arcmin}}{60} + \frac{DE_{arcsec}}{3600} \] See https://en.wikipedia.org/wiki/Declination, https://en.wikipedia.org/wiki/Geographic_coordinate_conversion and https://en.wikipedia.org/wiki/Minute_and_second_of_arc. More... | |
| template<typename T > | |
| void | DegreeToDeclination (const T decimalDegree, T &integerDegree, T &arcminute, T &arcsecond) |
| Converts an angle in (decimal) degree to declination in degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format. \[DE_{deg}=trun(\alpha_{deg})\] \[DE_{arcmin}=trun(60 * |\alpha_{deg} - degree|)\] \[DE_{arcsec}=60 * ((60 * |\alpha_{deg} - degree|)-arcminute)\] . More... | |
| template<typename T > | |
| T | DeclinationToRadian (const T integerDegree, const T arcminute, const T arcsecond) |
| Converts declination \((\alpha_{DE})\) from degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) to radians. \[\alpha_{rad}=\frac{\pi}{180}(DE_{deg} + \frac{DE_{arcmin}}{60} + \frac{DE_{arcsec}}{3600})\] See https://en.wikipedia.org/wiki/Declination, https://en.wikipedia.org/wiki/Geographic_coordinate_conversion and https://en.wikipedia.org/wiki/Minute_and_second_of_arc. More... | |
| template<typename T > | |
| void | RadianToDeclination (const T radian, T &integerDegree, T &arcminute, T &arcsecond) |
| Converts an angle in radian to declination in degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format. \[DE_{deg}=trun(\frac{180}{\pi}\alpha_{rad})\] \[DE_{arcmin}=trun(60 * |\frac{180}{\pi}\alpha_{rad} - degree|)\] \[DE_{arcsec}=60 * ((60 * |\frac{180}{\pi}\alpha_{rad} - degree|)-arcminute)\] . More... | |
| template<typename T > | |
| T | EscapeVelocity (const T distanceFromCenterOfMassInm, const T massOfBodyInkg) |
| Calculates the escape velocity, \(v_{e}\), the minimum speed needed for an object to escape from the gravitational influence of a massive body. \[v_{e}=\sqrt{\frac{2 G M}{r}}\] . More... | |
| template<typename T > | |
| T | HabitableZoneAtmosphere (const T planetMassInkg, const T planetMeanRadiusInm, const T planetEquilibriumTemperatureInK) |
| Calculates the Habitable Zone Atmosphere metric, \(HZA\), of a planet. The Habitable Zone Atmosphere is a measure of the potential of an exoplanet to hold a habitable atmosphere. \[ HZA= \dfrac{ 2\sqrt{ \dfrac{m_p}{m_{\oplus}} / \dfrac{r_p}{r_{\oplus}} } -v_{eH} - v_{eN} }{v_{eH} - v_{eN}} \] \[ v_{eH}=\sqrt{ \dfrac{z T_{eq}}{ M_wN } } \] \[ T_{eq}=\sqrt{ \dfrac{z T_{eq}}{ M_wH } } \] . More... | |
| template<typename T > | |
| T | HabitableZoneComposition (const T planetMassInkg, const T planetMeanRadiusInm) |
| Calculates the Habitable Zone Composition metric, \(HZC\), of a planet. The Habitable Zone Composition(HZC) measures how compatible for life is the bulk composition of an exoplanet within the habitable zone. It estimates both the iron and water content of the planet. \[ HZC= \dfrac{ 2\dfrac{m_p}{m_{\oplus}} - r_w - r_i } { r_w - r_i } \] \[ r_w= 4.43\ 10^{ -0.209396 + \dfrac{1}{3}\log \left ( \dfrac{m_p}{5.52 m_\oplus} \right ) - 0.0807 \left ( \dfrac{m_p}{5.52 m_\oplus} \right )^{0.375}} \] \[ r_i= 2.52\ 10^{ -0.209490 + \dfrac{1}{3}\log \left ( \dfrac{m_p}{5.80 m_\oplus} \right ) - 0.0804 \left ( \dfrac{m_p}{5.80 m_\oplus} \right )^{0.394}} \] . More... | |
| template<typename T > | |
| T | blackbodyLuminosity (const T &area, const T &tempreture) |
| Calculates the luminosity in watts of a black body. More... | |
| template<typename T > | |
| T | radioLuminosity (const T &fluxDensity, const T &luminosityDistance, const T &redshift, const T &spectralIndex) |
| Calculates the radio luminosity in W/Hz of a radio source. More... | |
| template<typename T > | |
| T | OrbitalPeriod (const T siderealDayIns, const T synodicDayIns) |
| Calculates the orbital period, \(T_{Orbit}\), of a celestial object in seconds from the length of the celestial object's sidereal day, \(T_{Sidereal}\), and synodic day, \(T_{Synodic}\). The orbital period is the time needed for a celestial object to complete one orbit around another object. \[ T_{Orbit}=\dfrac{T_{Synodic} * T_{Sidereal}}{T_{Synodic} + T_{Sidereal}}\] . More... | |
| template<typename T > | |
| T | OrbitalPeriodSmallBody (const T semiMajorAxisInm, const T centralBodyMassInKg) |
| Calculates the orbital period, \(T_{Orbit}\), of a celestial object in seconds from the semi-major axis of its orbit, \(a\), and the central object's mass that the celestial object is orbiting around, \(M\). It is assumed that the central object's mass is much larger then the celestial objects mass. The orbital period is the time needed for a celestial object to complete one orbit around the central object. \[ T_{Orbit}=2\pi\sqrt{\dfrac{a^3}{GM}}\] . More... | |
| template<typename T > | |
| T | OrbitalPeriodSmallBodyFromMass (const T semiMajorAxisInm, const T centralBodyMassInKg) |
| Calculates the orbital period, \(T_{Orbit}\), of a celestial object in seconds from the semi-major axis of its orbit, \(a\), and the central object's mass that the celestial object is orbiting around, \(M\). It is assumed that the central object's mass is much larger then the celestial objects mass. The orbital period is the time needed for a celestial object to complete one orbit around the central object. \[ T_{Orbit}=2\pi\sqrt{\dfrac{a^3}{GM}}\] . More... | |
| template<typename T > | |
| T | OrbitalPeriodSmallBodyFromSGP (const T semiMajorAxisInm, const T centralBodyStandardGravitationalParameter) |
| Calculates the orbital period, \(T_{Orbit}\), of a celestial object in seconds from the semi-major axis of its orbit, \(a\), and the central object's standard gravitational parameter, \(\mu\). It is assumed that the central object's mass is much larger then the celestial objects mass. The orbital period is the time needed for a celestial object to complete one orbit around the central object. \[ T_{Orbit}=2\pi\sqrt{\dfrac{a^3}{\mu}}\] . More... | |
| template<typename T > | |
| T | OrbitalPeriodTwoBody (const T semiMajorAxisInm, const T firstBodyMassInKg, const T secondBodyMassInKg) |
| Calculates the orbital period, \(T_{Orbit}\), of a celestial object in seconds from the semi-major axis of its orbit, \(a\), its mass, \(M_1\), and the mass of the second celestial object, \(M_2\). The orbital period is the time needed for a celestial object to complete one orbit around the second celestial object. \[ T_{Orbit}=2\pi\sqrt{\dfrac{a^3}{G(M_1 + M_2)}}\] . More... | |
| template<typename T > | |
| T | OrbitalPeriodTwoBodyFromMass (const T semiMajorAxisInm, const T firstBodyMassInKg, const T secondBodyMassInKg) |
| Calculates the orbital period, \(T_{Orbit}\), of a celestial object in seconds from the semi-major axis of its orbit, \(a\), its mass, \(M_1\), and the mass of the second celestial object, \(M_2\). The orbital period is the time needed for a celestial object to complete one orbit around the second celestial object. \[ T_{Orbit}=2\pi\sqrt{\dfrac{a^3}{G(M_1 + M_2)}}\] . More... | |
| template<typename T > | |
| T | OrbitalPeriodTwoBodyFromSGP (const T semiMajorAxisInm, const T firstBodyStandardGravitationalParameter, const T secondBodyStandardGravitationalParameter) |
| Calculates the orbital period, \(T_{Orbit}\), of a celestial object in seconds from the semi-major axis of its orbit, \(a\), its standard gravitational parameter, \(\mu_1\), and the standard gravitational parameter of the second celestial object, \(\mu_2\). The orbital period is the time needed for a celestial object to complete one orbit around the second celestial object. \[ T_{Orbit}=2\pi\sqrt{\dfrac{a^3}{\mu_1 + \mu_2}}\] . More... | |
| template<typename T > | |
| T | ParallaxToParsec (const T parallaxInArcseconds) |
| Calculates the distance, \(D\), of an object in parsecs from its observed parallax, \(p\), in arcseconds. \[ D=\dfrac{1}{p}\] . More... | |
| template<typename T > | |
| T | ParallaxToAstronomicalUnit (const T parallaxInArcseconds) |
| Calculates the distance, \(D\), of an object in astronomical units from its observed parallax, \(p\), in arcseconds. \[ D=\dfrac{648000}{\pi}\dfrac{1}{p}\] . More... | |
| template<typename T > | |
| T | ParallaxToLightYear (const T parallaxInArcseconds) |
| Calculates the distance, \(D\), of an object in light years from its observed parallax, \(p\), in arcseconds. \[ D=\dfrac{149597870700 * 648000}{9460730472580800 \pi} \dfrac{1}{p}\] . More... | |
| template<typename T > | |
| T | ParallaxToMeter (const T parallaxInArcseconds) |
| Calculates the distance, \(D\), of an object in meters from its observed parallax, \(p\), in arcseconds. \[ D=\dfrac{149597870700 * 648000}{\pi}\dfrac{1}{p}\] . More... | |
| template<typename T > | |
| T | ParallaxToAU (const T parallaxInArcseconds) |
| template<typename T > | |
| T | Periapsis (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis of an orbiting body. More... | |
| template<typename T > | |
| T | Pericenter (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis of an orbiting body. More... | |
| template<typename T > | |
| T | Perifocus (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis of an orbiting body. More... | |
| template<typename T > | |
| T | Perigalacticon (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around a galaxy. More... | |
| template<typename T > | |
| T | Peribothron (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around a black hole. More... | |
| template<typename T > | |
| T | Perinigricon (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around a black hole. More... | |
| template<typename T > | |
| T | Periastron (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around a star. More... | |
| template<typename T > | |
| T | Perihelion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around the Sun. More... | |
| template<typename T > | |
| T | Perihermion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Mercury. More... | |
| template<typename T > | |
| T | Pericytherion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Venus. More... | |
| template<typename T > | |
| T | Perigee (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Earth. More... | |
| template<typename T > | |
| T | Perilune (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Moon. More... | |
| template<typename T > | |
| T | Pericynthion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Moon. More... | |
| template<typename T > | |
| T | Periselene (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Moon. More... | |
| template<typename T > | |
| T | Periareion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Mars. More... | |
| template<typename T > | |
| T | Perizene (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Jupiter. More... | |
| template<typename T > | |
| T | Perijove (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Jupiter. More... | |
| template<typename T > | |
| T | Perichron (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Saturn. More... | |
| template<typename T > | |
| T | Perikrone (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Saturn. More... | |
| template<typename T > | |
| T | Perisaturnium (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Saturn. More... | |
| template<typename T > | |
| T | Periuranion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Uranus. More... | |
| template<typename T > | |
| T | Periposeidon (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Neptune. More... | |
| template<typename T > | |
| T | Perihadion (const T &orbitalEccentricity, const T &semiMajorAxisInm) |
| Calculates periapsis around Pluto. More... | |
| template<typename T > | |
| T | PlanetaryEquilibriumTempreture (const T planetBondAlbedo, const T planetDistanceFromStarInm, const T starLuminosityInW, const T planetEmissivity=(T) 1.0) |
| Calculates the planetary equilibrium tempreture, \(T_{eq}\) of a planet in kelvin. The planetary equilibrium tempreture is the theoretical temperature of a planet assuming it is a black body being heated only by its parent star. \[ T_{eq}=\left ( \dfrac{L (1-A)}{16 \epsilon \sigma \pi D^2} \right )^{\dfrac{1}{4}} \] . More... | |
| template<typename T > | |
| T | PlanetaryEquilibriumTempreture (const T planetBondAlbedo, const T planetDistanceFromStarInm, const T starEffectiveSurfaceTemperatureInK, const T starRadiusInm, const T planetEmissivity=(T) 1.0) |
| Calculates the planetary equilibrium tempreture, \(T_{eq}\) of a planet in kelvin. The planetary equilibrium tempreture is the theoretical temperature of a planet assuming it is a black body being heated only by its parent star. \[ T_{eq}=T_{eff} \left ( \dfrac{(1-A)}{\epsilon} \right )^{\dfrac{1}{4}} \sqrt{\dfrac{R}{2 D}} \] . More... | |
| template<typename T > | |
| T | PlanetaryMass (const T &planetMass, const T &referenceMass) |
| Calculates the planetary mass \((M)\) of a planet when comparing it to the mass of a reference planet \((m_{ref})\). \[M=\frac{m_{planet}}{m_{ref}}\] | |
| template<typename T > | |
| T | PlanetaryEarthMass (const T &planetMass) |
| Calculates the planetary mass \((M)\) of a planet when comparing it to the mass of Earth \((M_\oplus)\). Also known as Earth Mass. \[M=\frac{m_{planet}}{M_\oplus}\] | |
| template<typename T > | |
| T | PlanetaryLunarMass (const T &planetMass) |
| Calculates the planetary mass \((M)\) of a planet when comparing it to the mass of the Moon \((M_L)\). Also known as Lunar Mass. \[M=\frac{m_{planet}}{M_L}\] | |
| template<typename T > | |
| T | PlanetaryJupiterMass (const T &planetMass) |
| Calculates the planetary mass \((M)\) of a planet when comparing it to the mass of Jupiter \((M_J)\). Also known as Jupiter Mass. \[M=\frac{m_{planet}}{M_J}\] | |
| template<typename T > | |
| T | PlanetaryJovianMass (const T &planetMass) |
| Calculates the planetary mass \((M)\) of a planet when comparing it to the mass of Jupiter \((M_J)\). Also known as Jovian Mass. \[M=\frac{m_{planet}}{M_J}\] | |
| template<typename T > | |
| T | PlanetSimilarityIndex (const T &planetMeanRadius, const T &referenceMeanRadius, const T &planetBulkDensity, const T &referenceBulkDensity, const T &planetEscapeVelocity, const T &referenceEscapeVelocity, const T &planetSurfaceTemperature, const T &referenceSurfaceTemperature) |
| Calculates Planet Similarity Index \((PSI)\) of a planet when comparing it to a reference planet. More... | |
| template<typename T > | |
| T | EarthSimilarityIndex (const T &planetMeanRadius, const T &planetBulkDensity, const T &planetEscapeVelocity, const T &planetSurfaceTemperature) |
| Calculates Earth Similarity Index \((ESI)\) of a planet. More... | |
| template<typename T > | |
| T | PlanetSimilarityIndexInterior (const T &planetMeanRadius, const T &referenceMeanRadius, const T &planetBulkDensity, const T &referenceBulkDensity) |
| Calculates Interior Planet Similarity Index \((PSI_I)\) of a planet when comparing it to a reference planet. More... | |
| template<typename T > | |
| T | EarthSimilarityIndexInterior (const T &planetMeanRadius, const T &planetBulkDensity) |
| Calculates Interior Earth Similarity Index \((ESI_I)\) of a planet. More... | |
| template<typename T > | |
| T | PlanetSimilarityIndexSurface (const T &planetEscapeVelocity, const T &referenceEscapeVelocity, const T &planetSurfaceTemperature, const T &referenceSurfaceTemperature) |
| Calculates Surface Planet Similarity Index \((PSI_S)\) of a planet when comparing it to a reference planet. More... | |
| template<typename T > | |
| T | EarthSimilarityIndexSurface (const T &planetEscapeVelocity, const T &planetSurfaceTemperature) |
| Calculates Surface Earth Similarity Index \((ESI_S)\) of a planet. More... | |
| template<typename T > | |
| T | RightAscensionToDegree (const T hour, const T minute, const T second) |
| Converts right ascensions \((\alpha_{RA})\) from hours \((RA_h)\), minutes \((RA_m)\) and seconds \((RA_s)\) to degrees. \[\alpha_{deg}=(15 RA_h + \frac{RA_m}{4} + \frac{RA_s}{240})\] . More... | |
| template<typename T > | |
| T | RightAscensionToRadian (const T hour, const T minute, const T second) |
| Converts right ascensions \((\alpha_{RA})\) from hours \((RA_h)\), minutes \((RA_m)\) and seconds \((RA_s)\) to radians. \[\alpha_{rad}=\frac{\pi}{180.0}(15 RA_h + \frac{RA_m}{4} + \frac{RA_s}{240})\] See http://en.wikipedia.org/wiki/Right_ascension, http://en.wikipedia.org/wiki/Sidereal_hour_angle. More... | |
| template<typename T > | |
| void | DegreeToRightAscension (const T decimalDegree, T &hour, T &minute, T &second) |
| Converts an angle in (decimal) degree to hours minutes seconds (HMS). \({HH}^{h}{MM}^{m}{SS.SS}^{s}\) format. \[hour=trun(\frac{\alpha_{deg}}{15})\] \[minute=trun(60 * |\frac{\alpha_{deg}}{15} - hour|)\] \[second=60 * ((60 * |\frac{\alpha_{deg}}{15} - hour|)-minute)\] . More... | |
| template<typename T > | |
| void | RadianToRightAscension (const T radian, T &hour, T &minute, T &second) |
| Converts an angle in radian to hours minutes seconds (HMS). \({HH}^h{MM}^m{SS.SS}^s\) format. More... | |
| template<typename T > | |
| T | RotationalAngularVelocity (const T siderealDayIns) |
| Finds the rotational angular velocity, \(\omega\), in radians per second of a celestial object from its sidereal rotation period \(T_{Sidereal}\): \[ \omega = \dfrac{2\pi}{T} \] . More... | |
| template<typename T > | |
| T | RotationalFlattening (const T eccentricity) |
| Finds the flattening (oblateness), \(f\), of a planet with eccentricity \(e\): \[ f = 1 - \sqrt{1-e^2} \] . More... | |
| template<typename T > | |
| T | RotationalFlattening (const T equatorialRadius, const T polarRadius) |
| Finds the flattening (oblateness), \(f\), of a planet with equatorial radius \(a\) and polar radius, \(c\): \[ f =\begin{cases} \frac{a-c}{a}{} & oblate \\ \frac{c-a}{a} & prolate \end{cases} \] . More... | |
| template<typename T > | |
| T | RotationalFlattening (const T massInkg, const T meanRadiusInm, const T angularVelocityInmPersSquared) |
| Finds the flattening (oblateness), \(f\), of a planet with mass, \(M\), mean radius, \(a\), and angular velocity of rotation, \(\Omega\). Note that this is a 1st order approximation for a planet that is rotating relatively slowly (small flattening). \[ f = \frac{5}{4} \frac{\Omega^2 a^3}{GM} \] . More... | |
| template<typename T > | |
| T | RotationalOblateness (const T eccentricity) |
| Finds the oblateness (flattening), \(f\), of a planet with eccentricity \(e\): \[ f = 1 - \sqrt{1-e^2} \] . More... | |
| template<typename T > | |
| T | RotationalOblateness (const T equatorialRadius, const T polarRadius) |
| Finds the oblateness (flattening), \(f\), of a planet with equatorial radius \(a\) and polar radius, \(c\): \[ f =\begin{cases} \frac{a-c}{a}{} & oblate \\ \frac{c-a}{a} & prolate \end{cases} \] . More... | |
| template<typename T > | |
| T | RotationalOblateness (const T massInkg, const T meanRadiusInm, const T angularVelocityInmPersSquared) |
| Finds the oblateness (flattening), \(f\), of a planet with mass, \(M\), mean radius, \(a\), and angular velocity of rotation, \(\Omega\). Note that this is a 1st order approximation for a planet that is rotating relatively slowly (small flattening). \[ f = \frac{5}{4} \frac{\Omega^2 a^3}{GM} \] . More... | |
| template<typename T > | |
| T | SiderealDay (const T orbitalPeriodIns, const T synodicDayIns) |
| Calculates the sidereal day, \(T_{Sidereal}\), of a celestial object in seconds from the length of the celestial object's orbital period, \(T_{Orbit}\), and synodic day (solar day), \(T_{Solar}\). A sidereal day is the time it takes for a full 360 degree rotation resulting in a distant star appears in the same position in the sky overhead. \[ T_{Sidereal}=\dfrac{T_{Orbit} * T_{Synodic}}{T_{Orbit} + T_{Synodic}}\] . More... | |
| template<typename T > | |
| T | SolarDay (const T orbitalPeriodIns, const T siderealDayIns) |
| Calculates the solar day, \(T_{Solar}\), of a celestial object in seconds from the length of the celestial object's orbital period, \(T_{Orbit}\), and sidereal day, \(T_{Sidereal}\). A solar day is the time it takes for the celestial object to rotate so the body (sun) it is orbiting appears in the same position in the sky overhead. \[ T_{Solar}=\dfrac{T_{Orbit} * T_{Sidereal}}{T_{Orbit} - T_{Sidereal}}\] . More... | |
| template<typename T > | |
| T | SolarLuminosityRatio (const T starLuminosityInW) |
| Calculates the solar luminosity (all wavelengths) ratio \(\dfrac{L}{L_{\odot}}\) of a star from the stars luminosity, \(L\), in watts. It is the ratio of a star's luminosity to that of the sun. \[\dfrac{L}{L_{\odot}=\dfrac{L}{L_{\odot}}\] See https://en.wikipedia.org/wiki/Solar_luminosity and https://en.wikipedia.org/wiki/Mass–luminosity_relation. More... | |
| template<typename T > | |
| T | StandardGravitationalParameter (const T massInkg) |
| Calculates the standard gravitational parameter, \(\mu\), of a celestial body in meter cubed per second squared. The standard gravitational parameter is a product of the gravitational constant, \(G\), and the mass, \(M\), of the celestial body: \[\mu = GM\] . More... | |
| template<typename T > | |
| T | StellarLuminosity (const T starAbsoluteBolometricMagnitude) |
| Calculates the stellar luminosity, \(L\), in watts of a star from a stars absolute bolometric magnitude, \(M_{bol}\). \[ L=L_{0}10^{-0.4 M_{bol}}\] See https://en.wikipedia.org/wiki/Solar_luminosity and https://en.wikipedia.org/wiki/Mass–luminosity_relation. More... | |
| template<typename T > | |
| T | StellarMass (const T starMass, const T referenceMass) |
| Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\). \[M=\frac{m_{star}}{m_{ref}}\] | |
| template<typename T > | |
| T | SolarMass (const T starMass) |
| Calculates the solar mass \((M)\) of a star when comparing it to the mass of the sun \((m_\odot)\). \[M=\frac{m_{star}}{m_\odot}\] | |
| template<typename T > | |
| T | StellarMassApproximation (const T starLuminosityInW) |
| Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\). \[M=??\] | |
| template<typename T > | |
| T | StellarMassApproximationInkg (const T starLuminosityInW) |
| Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\). \[M=??\] | |
| template<typename T > | |
| T | StellarMassApproximationInSolarMass (const T starLuminosityInSolarLuminosity) |
| Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\). \[M=??\] | |
| template<typename T > | |
| T | StellarRadius (const T starEffectiveSurfaceTemperatureInK, const T starLuminosityInW) |
| Calculates the radius, \(R\), of a star in meters using its luminosity, \(L\), and its surface tempreture \(T\). \[R=\sqrt{\dfrac{L}{4\pi \sigma T_{eff}^4}}\] . More... | |
| template<typename T > | |
| T | StellarRadiusFromLuminosityInWatts (const T starEffectiveSurfaceTemperatureInK, const T starLuminosityInW) |
| Calculates the radius, \(R\), of a star in meters using its luminosity, \(L\), and its surface tempreture \(T\). \[R=\sqrt{\dfrac{L}{4\pi \sigma T_{eff}^4}}\] . More... | |
| template<typename T > | |
| T | StellarRadiusFromLuminosityInSolarLuminosity (const T starEffectiveSurfaceTemperatureInK, const T starLuminosityInSolarLuminosity) |
| Calculates the radius, \(R\), of a star in meters using its luminosity, \(L\), and its surface tempreture \(T\). \[R=\sqrt{\dfrac{L}{4\pi \sigma T_{eff}^4}}\] . More... | |
| template<typename T > | |
| T | SurfaceGravityInmPersSquared (const T massInkg, const T meanRadiusInm) |
| Calculates the surface gravity, \(g\), of a celestial body in meters per second squared. The surface gravity is a product of the gravitational constant, \(G\), as well as the mass, \(M\), and mean radius, \(r\), of the celestial body: \[g = \frac{GM}{r^2}\] . More... | |
| template<typename T > | |
| T | SurfaceGravityIng (const T massInkg, const T meanRadiusInm) |
| Calculates the surface gravity, \(g\), of a celestial body in gs (Earth's gravity). The surface gravity is a product of the gravitational constant, \(G\), as well as the mass, \(M\), and mean radius, \(r\), of the celestial body: \[g = \frac{GM}{g_{Earth}r^2}\] . More... | |
| template<typename T > | |
| T | SynodicDay (const T orbitalPeriodIns, const T siderealDayIns) |
| Calculates the synodic day, \(T_{Synodic}\), of a celestial object in seconds from the length of the celestial object's orbital period, \(T_{Orbit}\), and sidereal day, \(T_{Sidereal}\). A synodic day is the time it takes for the celestial object to rotate so the body it is orbiting appears in the same position in the sky overhead. \[ T_{Synodic}=\dfrac{T_{Orbit} * T_{Sidereal}}{T_{Orbit} - T_{Sidereal}}\] . More... | |
| template<typename T > | |
| T | DecayConstant (const T &countInitial, const T &countFinal, const T &time) |
| Calculates the decay constant, \(\lambda\), of a radioactive substance via the uncertainty in energy, \(\Delta E\). More... | |
| template<typename T > | |
| T | DecayConstantViaHalfLife (const T &halfLife) |
| Calculates the decay constant, \(\lambda\), of a radioactive substance via the half life, \(t_{\frac{1}{2}}\). More... | |
| template<typename T > | |
| T | DecayConstantViaMeanLifetime (const T &meanLifetime) |
| Calculates the decay constant, \(\lambda\), of a radioactive substance via the mean lifetime, \(\tau\). More... | |
| template<typename T > | |
| T | DecayConstantViaDecayWidth (const T &decayWidth) |
| Calculates the decay constant, \(\lambda\), of a radioactive substance via the decay width, \(\Gamma\). More... | |
| template<typename T > | |
| T | DecayWidth (const T &energyUncertainty) |
| Calculates the decay width, \(\Gamma\), of a radioactive substance via the uncertainty in energy, \(\Delta E\). The decay width is also known as line width, natural line width and decay FWHM. More... | |
| template<typename T > | |
| T | DecayWidthViaDecayConstant (const T &decayConstant) |
| Calculates the decay width, \(\Gamma\), of a radioactive substance via the decay constant, \(\lambda\). The decay width is also known as line width, natural line width and decay FWHM. More... | |
| template<typename T > | |
| T | DecayWidthViaHalfLife (const T &halfLife) |
| Calculates the Decay Width, \(\Gamma\), of a radioactive substance via the half life, \(t_{\frac{1}{2}}\). The decay width is also known as line width, natural line width and decay FWHM. More... | |
| template<typename T > | |
| T | DecayWidthViaMeanLifetime (const T &meanLifetime) |
| Calculates the Decay Width, \(\Gamma\), of a radioactive substance via the mean lifetime, \(\tau\). The decay width is also known as line width, natural line width and decay FWHM. More... | |
| template<typename T > | |
| T | HalfLife (const T &decayConstant) |
| Calculates the Half Life, \(t_{\frac{1}{2}}\), of a radioactive substance via the decay constant, \(\lambda\) . More... | |
| template<typename T > | |
| T | HalfLifeViaMeanLifetime (const T &meanLifetime) |
| Calculates the Half Life, \(t_{\frac{1}{2}}\), of a radioactive substance via the mean lifetime, \(\tau\). More... | |
| template<typename T > | |
| T | HalfLifeViaDecayWidth (const T &decayWidth) |
| Calculates the Half Life, \(t_{\frac{1}{2}}\), of a radioactive substance via the decay width, \(\Gamma\) . More... | |
| template<typename T , typename T2 > | |
| T2 | MassDefect (const T &atomicNumber, const T &massNumber, const T2 &massAtomInu) |
| Calculates the mass defect, \(\Delta m\), of an atom in unified atomic mass units. More... | |
| template<typename T , typename T2 > | |
| T2 | MassDefectInu (const T &atomicNumber, const T &massNumber, const T2 &massAtomInu) |
| Calculates the mass defect, \(\Delta m\), of an atom in unified atomic mass units. More... | |
| template<typename T , typename T2 > | |
| T2 | MassDefectInMeVPercSquared (const T &atomicNumber, const T &massNumber, const T2 &massAtomInMeVPercSquared) |
| Calculates the mass defect, \(\Delta m\), of an atom in megaelectron volts per c squared. More... | |
| template<typename T , typename T2 > | |
| T2 | MassDefectInkg (const T &atomicNumber, const T &massNumber, const T2 &massAtomInkg) |
| Calculates the mass defect, \(\Delta m\), of an atom in megaelectron volts per c squared. More... | |
| template<typename T , typename T2 > | |
| T2 | MassDefectInJPercSquared (const T &atomicNumber, const T &massNumber, const T2 &massAtomInJPercSquared) |
| Calculates the mass defect, \(\Delta m\), of an atom in megaelectron volts per c squared. More... | |
| template<typename T , typename T2 > | |
| T2 | MassExcessInu (const T &massNumber, const T2 &massAtomInu) |
| Calculates the mass excess, \(\text{Mass excess}\), of an atom in unified atomic mass units. More... | |
| template<typename T , typename T2 > | |
| T2 | MassExcessInMeVPercSquared (const T &massNumber, const T2 &massAtomInu) |
| Calculates the mass excess, \(\text{Mass excess}\), of an atom in megaelectron volts per speed of light squared. More... | |
| template<typename T , typename T2 > | |
| T2 | MassExcessInkg (const T &massNumber, const T2 &massAtomInu) |
| Calculates the mass excess, \(\text{Mass excess}\), of an atom in kilograms. More... | |
| template<typename T , typename T2 > | |
| T2 | MassExcessInJPercSquared (const T &massNumber, const T2 &massAtomInu) |
| Calculates the mass excess, \(\text{Mass excess}\), of an atom in joules per speed of light squared. More... | |
| template<typename T > | |
| T | MeanLifetime (const T &decayConstant) |
| Calculates the Half Life, \(t_{\frac{1}{2}}\), of a radioactive substance via the decay constant, \(\lambda\) . More... | |
| template<typename T > | |
| T | MeanLifetimeViaHalfLife (const T &halfLife) |
| Calculates the Half Life, \(t_{\frac{1}{2}}\), of a radioactive substance via the mean lifetime, \(\tau\). More... | |
| template<typename T > | |
| T | MeanLifetimeViaDecayWidth (const T &decayWidth) |
| Calculates the Half Life, \(t_{\frac{1}{2}}\), of a radioactive substance via the decay width, \(\Gamma\) . More... | |
| template<typename T , typename T2 > | |
| T2 | NuclearBindingEnergy (const T &atomicNumber, const T &massNumber, const T2 &massAtomInu) |
| Calculates the nuclear binding energy, \(BE\), of an atom in megaelectron volts. More... | |
| template<typename T , typename T2 > | |
| T2 | NuclearBindingEnergyInucSquared (const T &atomicNumber, const T &massNumber, const T2 &massAtomInu) |
| Calculates the nuclear binding energy, \(BE\), of an atom in unified atomic mass units times c squared. More... | |
| template<typename T , typename T2 > | |
| T2 | NuclearBindingEnergyInMeV (const T &atomicNumber, const T &massNumber, const T2 &massAtomInMeVPercSquared) |
| Calculates the nuclear binding energy, \(BE\), of an atom in megaelectron volts. More... | |
| template<typename T , typename T2 > | |
| T2 | NuclearBindingEnergyInkgcSquared (const T &atomicNumber, const T &massNumber, const T2 &massAtomInkg) |
| Calculates the nuclear binding energy, \(BE\), of an atom in kilograms times c squared. More... | |
| template<typename T , typename T2 > | |
| T2 | NuclearBindingEnergyInJ (const T &atomicNumber, const T &massNumber, const T2 &massAtomInJPercSquared) |
| Calculates the nuclear binding energy, \(BE\), of an atom in joules. More... | |
| template<typename T > | |
| T | NeutronSeparationEnergyInMeV (const T &massAtomInu, const T &massProducedAtomInu) |
| Calculates the neutron separation energy, \(S_{1n}\). The energy in megaelectron volts needed to remove a neutron from the nucleus of an atom. More... | |
| template<typename T > | |
| T | NeutronSeparationEnergyInJ (const T &massAtomInu, const T &massProducedAtomInu) |
| Calculates the neutron separation energy, \(S_{1n}\). The energy in joules needed to remove a neutron from the nucleus of an atom. More... | |
| template<typename T > | |
| T | NeutronTwoSeparationEnergyInMeV (const T &massAtomInu, const T &massProducedAtomInu) |
| Calculates the two neutrons separation energy, \(S_{2n}\). The energy in megaelectron volts needed to remove two neutron from the nucleus of an atom. More... | |
| template<typename T > | |
| T | NeutronTwoSeparationEnergyInJ (const T &massAtomInu, const T &massProducedAtomInu) |
| Calculates the two neutrons separation energy, \(S_{2n}\). The energy in joules needed to remove two neutron from the nucleus of an atom. More... | |
| template<typename T > | |
| T | ProtonSeparationEnergyInMeV (const T &massAtomInu, const T &massProducedAtomInu) |
| Calculates the proton separation energy, \(S_{1p}\). The energy in megaelectron volts needed to remove a proton from the nucleus of an atom. More... | |
| template<typename T > | |
| T | ProtonSeparationEnergyInJ (const T &massAtomInu, const T &massProducedAtomInu) |
| Calculates the proton separation energy, \(S_{1p}\). The energy in joules needed to remove a proton from the nucleus of an atom. More... | |
| template<typename T > | |
| T | ProtonTwoSeparationEnergyInMeV (const T &massAtomInu, const T &massProducedAtomInu) |
| Calculates the two protons separation energy, \(S_{2p}\). The energy in megaelectron volts needed to remove two protons from the nucleus of an atom. More... | |
| template<typename T > | |
| T | ProtonTwoSeparationEnergyInJ (const T &massAtomInu, const T &massProducedAtomInu) |
| Calculates the two protons separation energy, \(S_{2p}\). The energy in joules needed to remove two protons from the nucleus of an atom. More... | |
| template<typename T > | |
| T | QValueInMeV (const T massProjectileInu, const T massTargetInu, const T massProduct1Inu, const T massProduct2Inu) |
| Calculates the Q-value, \(Q\), of a nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueInJ (const T massProjectileInu, const T massTargetInu, const T massProduct1Inu, const T massProduct2Inu) |
| Calculates the Q-value, \(Q\), of a nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueAlphaDecayInMeV (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\) of an alpha decay nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueAlphaDecayInJ (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\) of an alpha decay nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleAlphaDecayInMeV (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a double alpha decay nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleAlphaDecayInJ (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a double alpha decay nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueBetaMinusDecayInMeV (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a beta minus, \(\beta^-\), decay nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueBetaMinusDecayInJ (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a beta minus, \(\beta^-\), decay nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleBetaMinusDecayInMeV (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a double beta minus, \(\beta^-\), decay nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleBetaMinusDecayInJ (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a double beta minus, \(\beta^-\), decay nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueBetaPlusDecayInMeV (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a beta plus, \(\beta^+\), decay nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueBetaPlusDecayInJ (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a beta plus, \(\beta^+\), decay nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleBetaPlusDecayInMeV (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a double beta plus, \(\beta^+\), decay nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleBetaPlusDecayInJ (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a double beta plus, \(\beta^+\), decay nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueElectronCaptureInMeV (const T massParentInu, const T massDaughterInu, const T neutronBindingEnergyInMeV=(T)(0.0)) |
| Calculates the Q-value, \(Q\) of an electron capture(k-capture) nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueElectronCaptureInJ (const T massParentInu, const T massDaughterInu, const T neutronBindingEnergyInJ=(T)(0.0)) |
| Calculates the Q-value, \(Q\) of an electron capture(k-capture) nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleElectronCaptureInMeV (const T massParentInu, const T massDaughterInu, const T neutronBindingEnergyInMeV=(T)(0.0)) |
| Calculates the Q-value, \(Q\), of a double electron capture(k-capture) nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleElectronCaptureInJ (const T massParentInu, const T massDaughterInu, const T neutronBindingEnergyInJ=(T)(0.0)) |
| Calculates the Q-value, \(Q\), of a double electron capture(k-capture) nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueNeutronEmissionInMeV (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a neutron emission nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueNeutronEmissionInJ (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a neutron emission nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleNeutronEmissionInMeV (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a double neutron emission nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleNeutronEmissionInJ (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a double neutron emission nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueProtonEmissionInMeV (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a proton emission nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueProtonEmissionInJ (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a proton emission nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleProtonEmissionInMeV (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a double proton emission nuclear reaction in megaelectron volts. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| T | QValueDoubleProtonEmissionInJ (const T massParentInu, const T massDaughterInu) |
| Calculates the Q-value, \(Q\), of a double proton emission nuclear reaction in joules. The Q-value allows you to determine if a nuclear reaction is endothermic or exothermic. More... | |
| template<typename T > | |
| double | SemiEmpericalBindingEnergyKrane (const T &atomicNumber, const T &massNumber) |
| Calculates the binding energy, \(BE_{SEMF}\), used in the semi-emperical mass formula for determining the mass of a nucleus using Krane's method. More... | |
| template<typename T > | |
| double | SemiEmpericalMassFormula (const T &atomicNumber, const T &massNumber) |
| template<typename T > | |
| T | PlancksLaw (const T wavelengthInm, const T surfaceTempretureInK) |
| Calculates the spectral radiance, \(B_{\lambda}\), in watts per steradian meter cubed of a black body from the surface tempreture, \(T\) of the black body using Plank's Law. The spectral radience is the amount of power emmited per steradian at a specific wavelength, \(\lambda\), for a unit surface area of the black body. \[ B_{\lambda} = \dfrac{2 h c^2}{\lambda^5} \dfrac{1}{e^{\frac{hc}{\lambda k_B T}} - 1} \] . More... | |
| template<typename T > | |
| T | PlancksLawFromFrequency (const T frequencyInHz, const T surfaceTempretureInK) |
| Calculates the spectral radiance, \(B_{\nu}\), in watts per steradian meter squared hertz of a black body from the surface tempreture, \(T\) of the black body using Plank's Law. The spectral radience is the amount of power emmited per steradian at a specific frequency, \(\nu\), for a unit surface area of the black body. \[ B_{\nu} = \dfrac{2 h \nu^3}{c^2} \dfrac{1}{e^{\frac{h\nu}{k_B T}} - 1} \] . More... | |
| template<typename T > | |
| T | PlancksLawFromWavelength (const T wavelengthInm, const T surfaceTempretureInK) |
| Calculates the spectral radiance, \(B_{\lambda}\), in watts per steradian meter cubed of a black body from the surface tempreture, \(T\) of the black body using Plank's Law. The spectral radience is the amount of power emmited per steradian at a specific wavelength, \(\lambda\), for a unit surface area of the black body. \[ B_{\lambda} = \dfrac{2 h c^2}{\lambda^5} \dfrac{1}{e^{\frac{hc}{\lambda k_B T}} - 1} \] . More... | |
| template<typename T > | |
| T | PlancksLawFromWavenumber (const T wavenumberInInversem, const T surfaceTempretureInK) |
| Calculates the spectral radiance, \(B_{\tilde {\nu }}\), in watts per steradian meter cubed of a black body from the surface tempreture, \(T\) of the black body using Plank's Law. The spectral radience is the amount of power emmited per steradian at a specific wavenumber, \(\tilde {\nu }\), for a unit surface area of the black body. \[ B_{\tilde {\nu }} = 2 h c^2 \tilde {\nu }^3 \dfrac{1}{e^{\frac{hc \tilde {\nu }}{k_B T}} - 1} \] . More... | |
| template<typename T > | |
| T | PlancksLawFromAngularFrequency (const T angularFrequencyInRadiansPers, const T surfaceTempretureInK) |
| Calculates the spectral radiance, \(B_{\omega}\), in watt radians per steradian meter squared hertz of a black body from the surface tempreture, \(T\) of the black body using Plank's Law. The spectral radience is the amount of power emmited per steradian at a specific angular frequency, \(\omega\), for a unit surface area of the black body. \[ B_{\omega} = \dfrac{\hbar \omega^3}{4\pi^3c^2} \dfrac{1}{e^{\frac{\hbar\omega}{k_B T}} - 1} \] . More... | |
| template<typename T > | |
| T | PlancksLawFromAngularWavelength (const T angularWavelengthInm, const T surfaceTempretureInK) |
| Calculates the spectral radiance, \(B_{y}\), in watts per steradian meter cubed of a black body from the surface tempreture, \(T\) of the black body using Plank's Law. The spectral radience is the amount of power emmited per steradian at a specific angular wavelength, /f$y/f$, for a unit surface area of the black body. \[ B_{y} = \dfrac{\hbar c^2}{4\pi^3y^5} \dfrac{1}{e^{\frac{\hbar c}{y k_B T}} - 1} \] . More... | |
| template<typename T > | |
| T | PlancksLawFromAngularWavenumber (const T angularWavenumberInRadianPerm, const T surfaceTempretureInK) |
| Calculates the spectral radiance, \(B_{k}\), in watts per steradian meter of a black body from the surface tempreture, \(T\) of the black body using Plank's Law. The spectral radience is the amount of power emmited per steradian at a specific angular wavenumber, \(k\), for a unit surface area of the black body. \[ B_{k} = \dfrac{\hbar c^2 k^3}{4\pi^3} \dfrac{1}{e^{\frac{\hbar c k}{k_B T}} - 1} \] . More... | |
| template<typename T > | |
| T | StefanBoltzmannLaw (const T surfaceTempretureInK) |
| Calculates the radiant emittance, \(j^*\), of a black body in watts per meter squared using Stefan-Boltzmann Law from the surface tempreture, \(T\) of the black body. \[j^*=\sigma T^4\] . More... | |
| template<typename T > | |
| T | WiensDisplacementLaw (const T surfaceTempInK) |
| Calculates the peak wavelength, \(\lambda_{max}\), in meters emmited by a black body using Wien's displacement law from the surface tempreture, \(T\) of the black body. \(b\) is a measured constant called Wien's displacement constant. \[\lambda_{max} = \dfrac{b_\lambda}{T} \] . More... | |
| template<typename T > | |
| T | WiensDisplacementLawInm (const T surfaceTempInK) |
| Calculates the peak wavelength, \(\lambda_{max}\), in meters emmited by a black body using Wien's displacement law from the surface tempreture, \(T\) of the black body. \(b\) is a measured constant called Wien's displacement constant. \[\lambda_{max} = \dfrac{b_\lambda}{T} \] . More... | |
| template<typename T > | |
| T | WiensDisplacementLawInHz (const T surfaceTempInK) |
| Calculates the peak frequency, \(\nu_{max}\), in Hz emmited by a black body using Wien's displacement law from the surface tempreture, \(T\) of the black body. \(b\) is a measured constant called Wien's displacement constant. \[\nu_{max} = b_\nu\ T \] . More... | |
| void | AngularAcceleration (const glm::vec3 &torqueInNm, const glm::mat3 &inertiaTensorInkgmsquared, glm::vec3 &angularAccelerationInradPersSquared) |
| Calculates the angular acceleration, \(\alpha\), in radians per second squared. Angular acceleration of an object is calculated from the torque, \(\tau\), applied to an object and the object's inertia tensor, \(I\): \[\alpha=I^{-1} \tau \] . More... | |
| void | Torque (const glm::vec3 &positionFromFulcrumInm, const glm::vec3 &forceInN, glm::vec3 &torqueInNm) |
| Calculates the torque, \(\tau\), in Newton meters. Torque on an object is calculated from the force, \(F\), applied to an object at a position, \(r\), away from the fulcrum (pivot point): \[\tau=r \times F \] . More... | |
| template<typename T > | |
| T | redshiftByWavelength (const T &wavelengthObserved, const T &wavelengthEmitted) |
| Calculates the redshift, \(z\), of light based on wavelenght. Redshifts occur when \(z > 0\), blueshifts when \(z < 0\). See https://en.wikipedia.org/wiki/Redshift. \[z=\frac{\lambda_{observed}-\lambda_{emitted}}{\lambda_{emitted}}\] . More... | |
| template<typename T > | |
| T | redshiftByFrequency (const T &frequencyObserved, const T &frequencyEmitted) |
| Calculates the redshift, \(z\), of light based on frequency. Redshifts occur when \(z > 0\), blueshifts when \(z < 0\). See https://en.wikipedia.org/wiki/Redshift. \[z=\frac{f_{emitted}-f_{observed}}{f_{observed}}\] . More... | |
| template<typename T > | |
| T | LorentzFactor (const T &velocity) |
| Calculates the Lorentz factor, \(\gamma\). The factor by which time, length, and relativistic mass changes due to movement of an object. More... | |
| template<typename T > | |
| T | LorentzFactorViaMomentum (const T &momentum, const T &restMass) |
| Calculates the Lorentz factor, \(\gamma\). The factor by which time, length, and relativistic mass changes due to movement of an object. More... | |
| template<typename T > | |
| T | LorentzFactorViaEnergy (const T &energyTotal, const T &energyRest) |
| Calculates the Lorentz factor, \(\gamma\). The factor by which time, length, and relativistic mass changes due to movement of an object. More... | |
| template<typename T > | |
| T | LorentzFactorViaRapidity (const T &rapidity) |
| Calculates the Lorentz factor, \(\gamma\). The factor by which time, length, and relativistic mass changes due to movement of an object. More... | |
| EGXPHYS_CONSTANT EGXPhys::AU = 149597870700.0 |
\(au\ (au)\) Astronomical units in meters.
| EGXPHYS_CONSTANT EGXPhys::secondsInDay = 24.0 * hour |
\(min\ (s)\) Amount of seconds inside a day.
| EGXPHYS_CONSTANT EGXPhys::secondsInHour = 60.0 * minute |
\(hr\ (s)\) Amount of seconds inside an hour.
| EGXPHYS_CONSTANT EGXPhys::secondsInMinute = 60.0 |
\(min\ (s)\) Amount of seconds inside a minute.
| EGXPHYS_CONSTANT EGXPhys::secondsInYear = 365.25*day |
\(min\ (s)\) Amount of seconds inside a year (365.25 days). See https://www.iau.org/static/publications/stylemanual1989.pdf
| EGXPHYS_CONSTANT EGXPhys::sunGravConstInAuCubedperSolarMassDay = NISTConst::gravitationalConstant * sunMass * secondsInDay * secondsInDay / (AU*AU*AU) |
\(G_{Sun}\ (\frac{AU^3}{SolarMass\ day)\) Gravitational constant around sun per day.
| EGXPHYS_CONSTANT EGXPhys::zeroPointLuminosity = 3.0128e28 |
\(L_{0} \ (W)\) Zero point luminosity. It is a defined number used in bolometric magnitude stellar calculations. See the International Astronomical Union, https://www.iau.org/news/announcements/detail/ann15023/ resolution B2.