Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Atmosphere
- data Atmos a = Atmos {
- atmosTemperature :: a
- atmosPressure :: a
- atmosDensity :: a
- atmosSpeedOfSound :: a
- atmosViscosity :: a
- atmosKinematicViscosity :: a
- siAtmosphere :: (Floating a, Ord a) => a -> Atmos a
- usAtmosphere :: (Floating a, Ord a) => a -> Atmos a
- atmosphere :: (Floating a, Ord a) => a -> (a, a, a)
- siAltitudeFromPressure :: (Floating a, Ord a) => a -> a
Documentation
Constructors
Atmos | |
Fields
|
siAtmosphere :: (Floating a, Ord a) => a -> Atmos a Source #
atmosphere in SI units
Input: altitude in meters
Output: (pressure, density, speed of sound, viscosity, kinematic viscosity)
pressure - N/m^2 density - kg/m^3 speed of sound - m/s viscosity - N-s/m^2 kinematic viscosity - m^2/s
usAtmosphere :: (Floating a, Ord a) => a -> Atmos a Source #
atmosphere in imperial units
Input: altitude in ft
Output: (pressure, density, speed of sound, viscosity, kinematic viscosity)
pressure - lb/ft^2 density - slugs/ft^3 speed of sound - ft/s viscosity - slugs/(ft-s) kinematic viscosity - ft^2/s
atmosphere :: (Floating a, Ord a) => a -> (a, a, a) Source #
Compute temperature, density, and pressure in standard atmosphere.
Correct to 86 km. Only approximate thereafter.
Input: alt geometric altitude, km.
Output: (sigma, delta, theta)
sigma - density/sea-level standard density delta - pressure/sea-level standard pressure theta - temperature/sea-level std. temperature
siAltitudeFromPressure :: (Floating a, Ord a) => a -> a Source #
Compute altitude at which the standard atmosphere has a certain pressure.
Input: Pressure, N/m^2
Output: Altitude in meters