Difference between revisions of "Template:VT"

From Kerbal Space Program Wiki
Jump to: navigation, search
m
Line 1: Line 1:
<includeonly>{{#</includeonly>expr: <!--
+
<includeonly>{{#expr: <!--
 
-->    ( <!--
 
-->    ( <!--
-->        2 * {{G}} * {{#ifeq: {{{planet}}} | Eve    | 1.2244127E+23 | <!-- mass
+
-->        2 * {{G}} * {{BodyData/Mass|{{{planet}}}}} <!--
-->                    {{#ifeq: {{{planet}}} | Kerbin | 5.2915793E+22 | <!--
 
-->                    {{#ifeq: {{{planet}}} | Duna  | 4.5154812E+21 | <!--
 
-->                    {{#ifeq: {{{planet}}} | Jool  | 4.2332635E+24 | <!--
 
-->                    {{#ifeq: {{{planet}}} | Laythe | 2.9397663E+22 | <!--
 
-->                    }} }} }} }} }} <!--
 
 
-->        / ( <!--
 
-->        / ( <!--
-->            ({{{alt}}} + {{#ifeq: {{{planet}}} | Eve    |  700000 | <!--planet radius
+
-->            ({{{alt}}} + {{BodyData/Radius|{{{planet}}}}} <!--
-->                          {{#ifeq: {{{planet}}} | Kerbin |  600000 | <!--
 
-->                          {{#ifeq: {{{planet}}} | Duna  |  320000 | <!--
 
-->                          {{#ifeq: {{{planet}}} | Jool  | 6000000 | <!--
 
-->                          {{#ifeq: {{{planet}}} | Laythe |  500000 | <!--
 
-->                          }} }} }} }} }} <!--
 
 
-->            )^2 * <!--
 
-->            )^2 * <!--
-->            ( {{#ifeq: {{{planet}}} | Eve    |  5    * e^(-{{{alt}}} / 7000) | <!-- atmospheric pressure
+
-->            ( {{BodyData/Pressure|{{{planet}}}}} <!--
-->              {{#ifeq: {{{planet}}} | Kerbin |  1    * e^(-{{{alt}}} /  5000) | <!--
 
-->              {{#ifeq: {{{planet}}} | Duna  |  0.2  * e^(-{{{alt}}} /  3000) | <!--
 
-->              {{#ifeq: {{{planet}}} | Jool  | 15    * e^(-{{{alt}}} / 10000) | <!--
 
-->              {{#ifeq: {{{planet}}} | Laythe |  0.8  * e^(-{{{alt}}} /  4000) | <!--
 
-->              }} }} }} }} }} <!--
 
 
-->            ) * (1.2230948554874 * 0.008) * 0.2 * 1 <!--
 
-->            ) * (1.2230948554874 * 0.008) * 0.2 * 1 <!--
 
-->        ) <!--
 
-->        ) <!--
-->    ) ^ 0.5<includeonly>}}</includeonly><noinclude>
+
-->    ) ^ 0.5}}</includeonly><noinclude>
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 32: Line 17:
  
 
This template calculates terminal velocity of an object given the planet and the altitude from the planet's surface. It assumes that the coefficient of drag is 0.2 and that the cross-sectional area is 1 m<sup>2</sup>. It also assumes that atmospheric density is equal to the atmospheric pressure multiplied by 1.2230948554874 * 0.008.<ref>See the [[Atmosphere]] article.</ref>
 
This template calculates terminal velocity of an object given the planet and the altitude from the planet's surface. It assumes that the coefficient of drag is 0.2 and that the cross-sectional area is 1 m<sup>2</sup>. It also assumes that atmospheric density is equal to the atmospheric pressure multiplied by 1.2230948554874 * 0.008.<ref>See the [[Atmosphere]] article.</ref>
 +
 +
    Result = ((2·G·M)/((alt+r)<sup>2</sup>·p<sub>0</sub>·1.2230948554874·0.008·0.2·1&nbsp;m<sup>2</sup>))<sup>½</sup>
 +
 +
<small>(M is Mass, r is Raius and p<sub>0</sub> is pressure at “sea level”)</small>
  
 
== Notes ==
 
== Notes ==

Revision as of 19:54, 12 March 2013


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 assumes that the coefficient of drag is 0.2 and that the cross-sectional area is 1 m2. It also assumes that atmospheric density is equal to the atmospheric pressure multiplied by 1.2230948554874 * 0.008.[1]

   Result = ((2·G·M)/((alt+r)2·p0·1.2230948554874·0.008·0.2·1 m2))½

(M is Mass, r is Raius and p0 is pressure at “sea level”)

Notes

  1. See the Atmosphere article.