Difference between revisions of "Template:VT"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*replaced all;)
m (Use new mass template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
<includeonly>{{#expr: <!--
 
<includeonly>{{#expr: <!--
 
-->    ( <!--
 
-->    ( <!--
-->        2 * {{G}} * {{Body data|{{{planet|{{{1}}}}}}|mass}} <!--
+
-->        2 * {{G}} * {{Body data/Mass|{{{planet|{{{1}}}}}}}} <!--
 
-->        / ( <!--
 
-->        / ( <!--
 
-->            ({{{alt|{{{2}}}}}} + {{Body data|{{{planet|{{{1}}}}}}|radius}} <!--
 
-->            ({{{alt|{{{2}}}}}} + {{Body data|{{{planet|{{{1}}}}}}|radius}} <!--
Line 10: Line 10:
 
-->    ) ^ 0.5 {{#if: {{{3|{{{round|}}}}}}|round {{{3|{{{round}}}}}}}}}}</includeonly><noinclude>
 
-->    ) ^ 0.5 {{#if: {{{3|{{{round|}}}}}}|round {{{3|{{{round}}}}}}}}}}</includeonly><noinclude>
  
 +
{{Outdated|
 +
* This is almost certainly outdated due to the atmospheric physics changes in [[1.0]].
 +
}}
 
{| class="wikitable"
 
{| class="wikitable"
 
! Usage || Produces
 
! Usage || Produces

Latest revision as of 11:41, 12 May 2018



Usage Produces
{{VT | planet = Kerbin | alt = 0}}
100.1288989294

This template calculates terminal velocity of an object given the planet and the altitude from the planet's surface. It uses {{Body data}} with the properties mass, radius, pressure and scale height.

#/Name Optional Description Default
1 or planet No The celestial body
2 or alt No The altitude at which the terminal velocity should be calculated.
3 or round Yes Round to the given number of decimal places. Not set/Doesn't round

(M is the mass of the body, r is the body's radius, p0 is pressure at 0 m altitude (“sea level”), a is the altitude above sea level and H is the scale height)

The formula assumes that the coefficient of drag (d) is 0.2 and is used from the atmosphere article.