Difference between revisions of "Orbit darkness time"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "== Orbit Darkness Time == This page will give an expression for the worst-case scenario of how long a craft will be in darkness during an orbit. This information can be used t...")
 
m (Change link to new tool - old tool 404)
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Orbit Darkness Time ==
+
[[File:Orbit darkness.svg|thumb|Orbital darkness schematic]]
This page will give an expression for the worst-case scenario of how long a craft will be in darkness during an orbit. This information can be used to determine how many batteries are needed for a craft to remain powered during the dark portion of orbit.
+
The '''orbit darkness time''' determines the time a [[craft]] is staying in the shadow of an orbited [[Celestial body|object]]. The exact time depends on the current configuration of the orbit and the moons.
  
[[File:Orbit_Darkness.jpeg|center|thumb|600px|Orbital Darkness Schematic]]
+
This page will give an expression for the worst-case scenario of how long a craft will be in darkness during an orbit. This information can be used to determine how many [[Battery|batteries]] are needed for a craft to remain powered during the dark portion of orbit.
  
=== Result ===
+
== General Result ==
 
Here is the result for calculating the longest amount of time spent in darkness (in units of seconds):
 
Here is the result for calculating the longest amount of time spent in darkness (in units of seconds):
  
<math>\Delta t = \frac{2l^2}{h}\left(\frac{e\,\text{sin}(\theta)}{(e^2-1)(e\,\text{cos}(\theta)+1)}
+
<math>T_d = \frac{2ab}{h}\left(\text{sin}^{-1}\left(\frac{R}{b}\right) + \frac{eR}{b}\right)</math>
- \frac{2\,\text{tan}^{-1}\left(\frac{(e-1)\text{tan}\left(\frac{\theta}{2}\right)}{\sqrt{1-e^2}}\right)}{\sqrt{(1-e^2)^3}}\right)</math>
 
  
where you calculate the following intermediate quantities first:
+
where <math>a</math> is the semi-major axis, <math>b</math> the semi-minor axis, <math>h</math> the specific angular momentum, <math>e</math> the eccentricity, and <math>R</math> the radius of the planet or moon. For reference these terms can be calculated by knowing the apoapsis (Ap), periapsis (Pe) and body to orbit:
  
<math>r_a = Ap + d</math>
+
* <math>r_a = Ap + R</math>, the apoapsis measured from the center of the body
 +
* <math>r_p = Pe + R</math>, the periapsis measured from the center of the body
 +
* <math>a = \frac{r_a+r_p}{2}</math>, the semi-major axis
 +
* <math>b = \sqrt{r_ar_p}</math>, the semi-minor axis
 +
* <math>e = \frac{r_a-r_p}{r_a+r_p}</math>, the eccentricity
 +
* <math>l = \frac{2r_ar_p}{r_a+r_p}</math>, the semi-latus rectum of the orbital ellipse
 +
* <math>\mu = GM</math>, the [[w:Standard gravitational parameter|gravitational parameter]]
 +
* <math>h = \sqrt{l\mu}</math>, the specific angular momentum
  
<math>r_p = Pe + d</math>
+
The following parameters are the minimum requirements to calculate the values from above:
 +
* <math>Ap</math>, planned apoapsis of the craft's orbit from the surface of the body
 +
* <math>Pe</math>: planned periapsis of the craft's orbit from the surface of the body
 +
* <math>R</math>: radius of body to orbit (a.k.a. equatorial radius)
 +
* <math>M</math>: mass of body to orbit
  
<math>a = \frac{r_a+r_p}{2}</math>
+
The radius and mass of a body can be obtained by visiting the page of the body (e.g. [[Kerbin]]) or by visiting [[Kerbol System/Table]] which contain the mass and radius of all celestial bodies. The actual page of a body also shows the gravitational parameter directly so it doesn't need to be multiplied by ''G''.
  
<math>b = \sqrt{r_ar_p}</math>
+
When using kilometer for the orbital parameters the gravitational parameter needs to be divided by 1000<sup>3</sup>. For example [[Kerbin]] has an equatorial radius 600&#8239;000 m or 600&nbsp;km. Its gravitational parameter is 3.5316000×10<sup>12</sup> m<sup>3</sup>/s<sup>2</sup> or 3.5316000×10<sup>3</sup> km<sup>3</sup>/s<sup>2</sup>.
  
<math>c = \sqrt{a^2 - b^2}</math>
+
=== Simplified Result ===
  
<math>e = \frac{r_a-r_p}{r_a+r_p}</math>
+
For (almost) circular orbits where the eccentricity <math>e</math> is very small this equation becomes rather simple:
  
<math>l = \frac{2r_ar_p}{r_a+r_p}</math>
+
<math>T_d = \frac{2r_a^2}{h}\left(\text{sin}^{-1}\left(\frac{R}{r_a}\right)\right)</math>
  
<math>h = \sqrt{l\mu}</math>
+
<math>h = \sqrt{r_a\mu}</math>
  
<math>x = \sqrt{a^2\left(1-\frac{d^2}{b^2}\right)}</math>
+
This simpler result only works when the apoapsis and periapsis are very close to the same altitude.
  
<math>\theta = \text{tan}^{-1}\left(\frac{d}{x+c}\right)</math>
+
== Limitations ==
  
where you need to provide the following parameters:
+
This method assumes the orbit is an ellipse/circle which is not changing or being altered by other bodies. It also assumes the sun's rays are parallel across the orbiting planet, although all bodies are small enough and far enough from the sun for this to be nearly true. The method does not take into account darkness caused by eclipses of a different body than the orbited body, for example, orbiting [[Laythe]] but [[Jool]] blocks the sun.
  
<math>Ap</math>: planned Apoapsis of planet the craft will orbit [km]
+
The method gives the longest amount of time spent in darkness, which for some orbits (e.g. polar orbits), will only be experienced periodically (see [[w:Beta_angle|beta angle]]). However, it is a good idea to plan on the worst-case amount of time in darkness.
  
<math>Pe</math>: planned Periapsis of planet the craft will orbit [km]
+
== Application ==
  
<math>d</math>: radius of planet to orbit [km] (see wiki page on planet for data, ex: [[Kerbin]])
+
By entering the equations into a program such as Microsoft Excel or going to [https://benjamenjohnsondev.github.io/ksp-orbit-darkness-time/ this calculator page], the darkness time can be calculated for various orbits around any planet or moon. Knowing the amount of time spent in darkness and the energy drain, the battery storage can be calculated by
  
<math>\mu</math>: [[w:Standard_gravitational_parameter|gravitational parameter]] of planet to orbit [km^3/s^2] (see wiki page on planet for data, ex: [[Kerbin]])
+
{{Formula|math=B = \dot{E}T_d|where=
 +
* <math>B</math> is the battery storage required in the [[Electricity|electricity unit ({{mark|echu}})]]
 +
* <math>\dot{E}</math> is the rate of energy use in units of ({{mark|echu}}/sec)
 +
* <math>T_d</math> is the darkness time in seconds.}}
  
=== Limitations ===
+
The darkness time along with the total [[w:Orbital period|orbital period]] can also be used to calculate how many solar panels are needed to recharge the batteries before the next cycle of darkness. However, the time spent in sunlight is usually quite long, and even a single small solar panel will recharge most any craft's batteries before the next darkness cycle.
  
This method assumes the orbit is stable and elliptic. This includes the special case of circular orbits. The method gives the longest amount of time spent in darkness, which for polar orbits, will only be experienced periodically. However, it is a good idea to plan on the worst-case amount of time in darkness. Lastly, the method does not take into account darkness caused by a different body than the orbited body (i.e. if you are orbiting Laythe and Jool blocks the sun, this method does not account for that).
+
== Examples ==
  
=== Conclusion ===
+
=== Orbiting Kerbin with 100 km circular orbit ===
  
By entering the equations into a program such as Microsoft Excel, the darkness time can be calculated for various orbits around any planet or moon. Knowing the amount of time spent in darkness and the energy drain, the battery storage can be calculated by
+
<big>''T<sub>d</sub> = 642 s (10 minutes 42 seconds)''</big>
  
<math>B = \dot{E}\Delta t</math>
+
Using 0.05 {{mark|echu}}/s for the [[RC-001S Remote Guidance Unit|RC-001S]] and 0.04&nbsp;{{mark|echu}}/s for the [[Illuminator Mk1]] for a total drain of 0.09&nbsp;{{mark|echu}}/s:
  
where <math>B</math> is the battery storage required in the game units of "e", <math>\dot{E}</math> is the rate of energy use in units of e/sec, and <math>\Delta t</math> is the darkness time in seconds.
+
<big>''B = &#278;<sub>d</sub> 0.09 {{mark|echu}}/s · 642 s = 57.8 {{mark|echu}}''</big>
  
===Examples===
+
So at least 57.8&nbsp;{{mark|echu}} of electricity is needed in storage to make it through the darkness for this orbit around Kerbin, using 0.09&nbsp;{{mark|echu}} per second. The battery with the next largest amount of storage (as of {{Check version|0.90}}) is the [[Z-100 Rechargable Battery Pack|Z-100]] with 100&nbsp;{{mark|echu}} of storage. The RC-001S can also store 15&nbsp;{{mark|echu}} so in theory only 42.8&nbsp;{{mark|echu}} are required.
  
====Orbiting Kerbin with Apoapsis 700 km and Periapsis 100 km====
+
=== Orbiting Jool with apoapsis 700 km and periapsis 200 km ===
  
<math>\Delta t = 925 \text{ seconds (4m 43s)}</math>
+
<big>''T<sub>d</sub> = 2403 s (40 minutes 3 seconds)''</big>
  
Using 0.05 e/s for the [[RC-001S_Remote_Guidance_Unit|RC-001S]] and 0.04 e/s for the [[Illuminator_Mk1|Illuminator Mk1]] for a total drain of 0.09 e/s:
+
Using 0.05&nbsp;{{mark|echu}}/s for the [[RC-001S Remote Guidance Unit|RC-001S]] and 0.16&nbsp;{{mark|echu}}/s for 4x [[Illuminator Mk1]] for a total drain of 0.21&nbsp;{{mark|echu}}/s:
  
<math>B = \dot{E}\Delta t = 0.09 \text{ e/s} * 925 \text{ s} = 83.2 \text{ e}</math>
+
<big>''B = &#278;<sub>d</sub> 0.21 {{mark|echu}}/s · 2403 s ≈ 505 {{mark|echu}}''</big>
  
So at least 83.2 e of electricity are needed in storage to make it through the darkness for this orbit around Kerbin, using 0.09 e per second. The battery with the next largest amount of storage (as of 0.21) is the [[Z-100_Rechargable_Battery_Pack|Z-100]] with 100 e of storage.
+
So at least 505&nbsp;{{mark|echu}} of electricity is needed in storage to make it through the darkness for this orbit around Jool, using 0.21&nbsp;{{mark|echu}} per second.
  
====Orbiting Jool with Apoapsis 500 km and Periapsis 500 km====
+
=== Circular orbits around all planets and moons ===
 +
The following table contains the darkness times for the [[planet]]s and [[moon]]s. The orbits are circular and have an altitude of 20% of the body's radius.
  
<math>\Delta t = 2319\text{ seconds (38m 39s)}</math>
+
{| class="wikitable"
 
+
! Body
Using 0.05 e/s for the [[RC-001S_Remote_Guidance_Unit|RC-001S]] and 0.16 e/s for 4x [[Illuminator_Mk1|Illuminator Mk1]] for a total drain of 0.21 e/s:
+
! colspan="2" | Darkness time
 
+
! Orbital period
<math>B = \dot{E}\Delta t = 0.21 \text{ e/s} * 2319 \text{ s} = 487 \text{ e}</math>
+
! Altitude above sea level
 
+
|-
So at least 487 e of electricity are needed in storage to make it through the darkness for this orbit around Jool, using 0.21 e per second. This capacity can be achieved by coupling a [[Z-400_Rechargable_Battery|Z-400]] with a [[Z-100_Rechargable_Battery_Pack|Z-100]] for a total of 500 e of electricity.
+
{{:Orbit darkness time/Row|Moho}}
 +
{{:Orbit darkness time/Row|Eve}}
 +
{{:Orbit darkness time/Row|Gilly}}
 +
{{:Orbit darkness time/Row|Kerbin}}
 +
{{:Orbit darkness time/Row|Mun}}
 +
{{:Orbit darkness time/Row|Minmus}}
 +
{{:Orbit darkness time/Row|Duna}}
 +
{{:Orbit darkness time/Row|Ike}}
 +
{{:Orbit darkness time/Row|Dres}}
 +
{{:Orbit darkness time/Row|Jool}}
 +
{{:Orbit darkness time/Row|Laythe}}
 +
{{:Orbit darkness time/Row|Vall}}
 +
{{:Orbit darkness time/Row|Tylo}}
 +
{{:Orbit darkness time/Row|Pol}}
 +
{{:Orbit darkness time/Row|Bop}}
 +
{{:Orbit darkness time/Row|Eeloo}}
 +
|}
  
 
[[Category:Tutorials|Orbit Darkness Time]]
 
[[Category:Tutorials|Orbit Darkness Time]]

Latest revision as of 14:58, 15 January 2024

Error creating thumbnail: /bin/bash: rsvg-convert: command not found
Orbital darkness schematic

The orbit darkness time determines the time a craft is staying in the shadow of an orbited object. The exact time depends on the current configuration of the orbit and the moons.

This page will give an expression for the worst-case scenario of how long a craft will be in darkness during an orbit. This information can be used to determine how many batteries are needed for a craft to remain powered during the dark portion of orbit.

General Result

Here is the result for calculating the longest amount of time spent in darkness (in units of seconds):

where is the semi-major axis, the semi-minor axis, the specific angular momentum, the eccentricity, and the radius of the planet or moon. For reference these terms can be calculated by knowing the apoapsis (Ap), periapsis (Pe) and body to orbit:

  • , the apoapsis measured from the center of the body
  • , the periapsis measured from the center of the body
  • , the semi-major axis
  • , the semi-minor axis
  • , the eccentricity
  • , the semi-latus rectum of the orbital ellipse
  • , the gravitational parameter
  • , the specific angular momentum

The following parameters are the minimum requirements to calculate the values from above:

  • , planned apoapsis of the craft's orbit from the surface of the body
  • : planned periapsis of the craft's orbit from the surface of the body
  • : radius of body to orbit (a.k.a. equatorial radius)
  • : mass of body to orbit

The radius and mass of a body can be obtained by visiting the page of the body (e.g. Kerbin) or by visiting Kerbol System/Table which contain the mass and radius of all celestial bodies. The actual page of a body also shows the gravitational parameter directly so it doesn't need to be multiplied by G.

When using kilometer for the orbital parameters the gravitational parameter needs to be divided by 10003. For example Kerbin has an equatorial radius 600 000 m or 600 km. Its gravitational parameter is 3.5316000×1012 m3/s2 or 3.5316000×103 km3/s2.

Simplified Result

For (almost) circular orbits where the eccentricity is very small this equation becomes rather simple:

This simpler result only works when the apoapsis and periapsis are very close to the same altitude.

Limitations

This method assumes the orbit is an ellipse/circle which is not changing or being altered by other bodies. It also assumes the sun's rays are parallel across the orbiting planet, although all bodies are small enough and far enough from the sun for this to be nearly true. The method does not take into account darkness caused by eclipses of a different body than the orbited body, for example, orbiting Laythe but Jool blocks the sun.

The method gives the longest amount of time spent in darkness, which for some orbits (e.g. polar orbits), will only be experienced periodically (see beta angle). However, it is a good idea to plan on the worst-case amount of time in darkness.

Application

By entering the equations into a program such as Microsoft Excel or going to this calculator page, the darkness time can be calculated for various orbits around any planet or moon. Knowing the amount of time spent in darkness and the energy drain, the battery storage can be calculated by

Where:
  • is the battery storage required in the electricity unit (⚡)
  • is the rate of energy use in units of (⚡/sec)
  • is the darkness time in seconds.

The darkness time along with the total orbital period can also be used to calculate how many solar panels are needed to recharge the batteries before the next cycle of darkness. However, the time spent in sunlight is usually quite long, and even a single small solar panel will recharge most any craft's batteries before the next darkness cycle.

Examples

Orbiting Kerbin with 100 km circular orbit

Td = 642 s (10 minutes 42 seconds)

Using 0.05 ⚡/s for the RC-001S and 0.04 ⚡/s for the Illuminator Mk1 for a total drain of 0.09 ⚡/s:

B = Ėd 0.09 ⚡/s · 642 s = 57.8 ⚡

So at least 57.8 ⚡ of electricity is needed in storage to make it through the darkness for this orbit around Kerbin, using 0.09 ⚡ per second. The battery with the next largest amount of storage (as of 0.90[outdated]) is the Z-100 with 100 ⚡ of storage. The RC-001S can also store 15 ⚡ so in theory only 42.8 ⚡ are required.

Orbiting Jool with apoapsis 700 km and periapsis 200 km

Td = 2403 s (40 minutes 3 seconds)

Using 0.05 ⚡/s for the RC-001S and 0.16 ⚡/s for 4x Illuminator Mk1 for a total drain of 0.21 ⚡/s:

B = Ėd 0.21 ⚡/s · 2403 s ≈ 505 ⚡

So at least 505 ⚡ of electricity is needed in storage to make it through the darkness for this orbit around Jool, using 0.21 ⚡ per second.

Circular orbits around all planets and moons

The following table contains the darkness times for the planets and moons. The orbits are circular and have an altitude of 20% of the body's radius.

Body Darkness time Orbital period Altitude above sea level
TinyMoho.png Moho 788 s 13 m 8.4 s 41 m 54.3 s 50 000 m
TinyEve.png Eve 531 s 8 m 50.6 s 28 m 12.2 s 140 000 m
TinyGilly.png Gilly 1 333 s 22 m 13.3 s 1 h 10 m 52.1 s 2 600 m
TinyKerbin.png Kerbin 641 s 10 m 40.5 s 34 m 2.6 s 120 000 m
TinyMun.png Mun 908 s 15 m 7.6 s 48 m 14.5 s 40 000 m
TinyMinmus.png Minmus 906 s 15 m 5.8 s 48 m 8.7 s 12 000 m
TinyDuna.png Duna 854 s 14 m 14 s 45 m 23.5 s 64 000 m
TinyIke.png Ike 891 s 14 m 50.9 s 47 m 21.1 s 26 000 m
TinyDres.png Dres 906 s 15 m 5.8 s 48 m 8.7 s 27 600 m
TinyJool.png Jool 2 265 s 37 m 44.6 s 2 h 0 m 21.8 s 1 200 000 m
TinyLaythe.png Laythe 654 s 10 m 53.7 s 34 m 44.8 s 100 000 m
TinyVall.png Vall 934 s 15 m 34.3 s 49 m 39.5 s 60 000 m
TinyTylo.png Tylo 716 s 11 m 56.1 s 38 m 3.7 s 120 000 m
TinyPol.png Pol 890 s 14 m 49.8 s 47 m 17.6 s 8 800 m
TinyBop.png Bop 861 s 14 m 20.7 s 45 m 44.7 s 13 000 m
TinyEeloo.png Eeloo 914 s 15 m 13.7 s 48 m 33.8 s 42 000 m