Difference between revisions of "Template:VT"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Close the expr.)
m (Minor fix.)
Line 3: Line 3:
 
-->        2 * {{G}} * {{{M}}} / <!--
 
-->        2 * {{G}} * {{{M}}} / <!--
 
-->        ( <!--
 
-->        ( <!--
-->            {{{r}}}^2 * {{{density}}} * 0.2 * 1 <!--
+
-->            {{{r}}}^2 * {{{pressure}}} * 0.01225 * 0.2 * 1 <!--
 
-->        ) <!--
 
-->        ) <!--
 
-->    ) ^ 0.5}}<noinclude>
 
-->    ) ^ 0.5}}<noinclude>
Line 10: Line 10:
 
! Usage || Produces
 
! Usage || Produces
 
|-
 
|-
| <pre><nowiki>{{VT | M=5.2915793E+22 | r=600000 | density=0.01225}}</nowiki></pre> || {{VT | M=64980 | r=600000 | density=0.01225}}
+
| <pre><nowiki>{{VT | M=5.2915793E+22 | r=600000 | pressure=1}}</nowiki></pre> || {{VT | M=5.2915793E+22 | r=600000 | pressure=1}}
 
|}
 
|}
  
This template calculates terminal velocity given a planet's mass (''M''), the distance of a body from the planet's center (''r''), and the density of the atmosphere (''density''). 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 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>.
  
 
[[Category:Templates|VT]]
 
[[Category:Templates|VT]]
 
</noinclude>
 
</noinclude>

Revision as of 20:41, 2 November 2012

Expression error: Unrecognized punctuation character "{".

Usage Produces
{{VT | M=5.2915793E+22 | r=600000 | pressure=1}}
Expression error: Unexpected < operator.

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 m2.