Difference between revisions of "Template:VT"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Minor fix.)
m (Cleanup.)
Line 1: Line 1:
{{#expr: <!--
+
<includeonly>{{#expr: </includeonly><!--
 
-->    ( <!--
 
-->    ( <!--
 
-->        2 * {{G}} * {{{M}}} / <!--
 
-->        2 * {{G}} * {{{M}}} / <!--
Line 5: Line 5:
 
-->            {{{r}}}^2 * {{{pressure}}} * 0.01225 * 0.2 * 1 <!--
 
-->            {{{r}}}^2 * {{{pressure}}} * 0.01225 * 0.2 * 1 <!--
 
-->        ) <!--
 
-->        ) <!--
-->    ) ^ 0.5}}<noinclude>
+
-->    ) ^ 0.5<includeonly>}}</includeonly><noinclude>
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 13: Line 13:
 
|}
 
|}
  
This template calculates terminal velocity given a planet's mass (''M''), the distance of a body from the planet's center (''r''), and the atmospheric pressure (''pressure''), specified in units of 1 atm (the pressure at sea level on Kerbin). It assumes that the coefficient of drag is 0.2 and that the cross-sectional area is 1 m<sup>2</sup>.
+
This template calculates terminal velocity of an object given a planet's mass (''M''), the distance from the object to the planet's center (''r''), and the atmospheric pressure (''pressure'') at the object's location, specified in units of 1 atm (the pressure at sea level on Kerbin). It assumes that the coefficient of drag is 0.2 and that the cross-sectional area is 1 m<sup>2</sup>.
  
 
[[Category:Templates|VT]]
 
[[Category:Templates|VT]]
 
</noinclude>
 
</noinclude>

Revision as of 20:43, 2 November 2012

    (          2 * 6.67408e-11 * {{{M}}} /          (              {{{r}}}^2 * {{{pressure}}} * 0.01225 * 0.2 * 1          )      ) ^ 0.5
Usage Produces
{{VT | M=5.2915793E+22 | r=600000 | pressure=1}}
Expression error: Unexpected < operator.

This template calculates terminal velocity of an object given a planet's mass (M), the distance from the object to the planet's center (r), and the atmospheric pressure (pressure) at the object's location, specified in units of 1 atm (the pressure at sea level on Kerbin). It assumes that the coefficient of drag is 0.2 and that the cross-sectional area is 1 m2.