Difference between revisions of "Template:Body data/SOI"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Use new mass template)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{Body data|{{{1}}}|parent}}|{{#expr: {{Body data|{{{1}}}|semi-major axis}}*({{Body data|{{{1}}}|mass}}/{{Body data|{{Body data|{{{1}}}|parent}}|mass}})^(2/5)}}|{{{2|}}}}}</includeonly><noinclude>Returns the radius of the sphere of influence of a [[celestial body]] in meters. It uses the <tt>mass</tt> (m, m<sub>parent</sub>), <tt>semi-major axis</tt> (a) and <tt>parent</tt> (m<sub>parent</sub>) parameters with {{Tl|Body data}} for the given body. Returns the second parameter, an empty string when not set, if the body has no parent object (like [[Kerbol]]).
+
<includeonly>{{#if: {{Body data|{{{1}}}|parent}}|{{#expr: {{Body data|{{{1}}}|semi-major axis}}*({{Body data/Mass|{{{1}}}}}/{{Body data/Mass|{{Body data|{{{1}}}|parent}}}})^(2/5)}}|{{{2|}}}}}</includeonly><noinclude>Returns the radius of the sphere of influence of a [[celestial body]] in meters. It uses the <tt>mass</tt> (m, m<sub>parent</sub>), <tt>semi-major axis</tt> and <tt>parent</tt> (m<sub>parent</sub>) parameters with {{Tl|Body data}} for the given body. Returns the second parameter, an empty string when not set, if the body has no parent object (like [[Kerbol]]).
:<math>r_\text{SOI} = a \cdot \left(\frac{m}{m_\text{parent}}\right)^\frac{2}{5}</math>
+
 
 +
Due to latex being unable to update, this graphic uses <tt>apoapsis</tt> (a) and <tt>periapsis</tt> (p).
 +
:<math>r_\text{SOI} = \frac{a + p}{2} \cdot \left(\frac{m}{m_\text{parent}}\right)^\frac{2}{5}</math>
  
 
[[Category:BodyData Math Templates|SOI]]</noinclude>
 
[[Category:BodyData Math Templates|SOI]]</noinclude>

Latest revision as of 22:30, 8 May 2018

Returns the radius of the sphere of influence of a celestial body in meters. It uses the mass (m, mparent), semi-major axis and parent (mparent) parameters with {{Body data}} for the given body. Returns the second parameter, an empty string when not set, if the body has no parent object (like Kerbol).

Due to latex being unable to update, this graphic uses apoapsis (a) and periapsis (p).