atmosphere

Uses a combination of US Standard Atmospheres for 1962 and 1976
Author:
  • Jason Wohlgemuth
Source:
See:
  • Atmospheric and Space Flight Dynamics: Modeling and Simulation with MATLAB and Simulink (pages 226, 228-229) citation

Namespaces

Atmospheric Strata

Members

(inner, constant) NUMBER_OF_LAYERS

Source:

(inner, constant) R

Source:

(inner, constant) SPECIFIC_HEAT_RATIO

Source:

Methods

(inner) getKineticTemperature(altitude)

Source:
Parameters:
Name Type Description
altitude number

(inner) getMolecularTemperature(altitude)

Source:
Parameters:
Name Type Description
altitude number

(inner) getSpeedOfSound(altitudeopt) → {number}

Calculate the speed of sound at a given temparature
Source:
Parameters:
Name Type Attributes Default Description
altitude number <optional>
0
Returns:
Type:
number
speed of sound (in m/s)
Examples

Speed of sound at sea-level

const {getSpeedOfSound} = require('applied').atmosphere;
let speed = getSpeedOfSound();
console.log(speed);// 340.9 m/s

Speed of sound at 86 km

const {getSpeedOfSound} = require('applied').atmosphere;
let speed = getSpeedOfSound(86000);
console.log(speed);// 274.6 m/s

(inner) getStrata(altitude) → {string}

Get atomospheric strata for a given altitude
Source:
Parameters:
Name Type Description
altitude number Altitude (in km)
Returns:
Type:
string
The name of the strata that contains the altitude

(inner) metersPerSecondToMach(speed, altitudeopt) → {number}

Source:
Parameters:
Name Type Attributes Description
speed number Speed in m/s
altitude number <optional>
Returns:
Type:
number
Mach number
Example
const {getSpeedOfSound, metersPerSecondToMach} = require('applied').atmosphere;
let speed = getSpeedOfSound();// speed at sea-level (altitude === 0)
metersPerSecondToMach(speed);// 1
metersPerSecondToMach(speed, 20000);// 1.15

(inner) molecularWeight(i) → {number}

Get molecular weight based on layer
Source:
Parameters:
Name Type Description
i number Refers to the quantities at the base of the layer
Returns:
Type:
number
molecular weight (in g/mole)