Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.HABSim.Internal
- m :: Double
- r :: Double
- er :: Double
- g :: Acceleration
- newVolume :: Pressure -> Volume -> Pressure -> Volume
- spRadFromVol :: Volume -> SphericalRadius
- cAreaSp :: Double -> CrossSecArea
- gas_dens :: Double -> Double -> Double -> Double
- boyancy :: Double -> Double -> Double -> Double
- drag :: Density -> Velocity -> WindMs -> CoeffDrag -> CrossSecArea -> Force
- accel :: Force -> Mass -> Acceleration
- force :: Mass -> Acceleration -> Force
- velo :: Velocity -> Acceleration -> SimulationTime -> Velocity
- displacement :: Altitude -> Velocity -> Acceleration -> SimulationTime -> Altitude
- biLinIntp :: Fractional a => a -> a -> a -> a -> a -> a -> a -> a -> a -> a -> a
- altToValues :: Altitude -> AltitudeRegionValues
- altToPressure :: Altitude -> PressureDensity
- roundToClosest :: (Ord a, Num a, Integral b) => a -> Vector b -> b
- latLonBox :: Latitude -> Longitude -> Double -> (Latitude, Longitude, Latitude, Longitude)
- windFromLatLon :: Latitude -> Longitude -> Int -> HashMap Key GribLine -> Maybe (WindX, WindY)
Documentation
g :: Acceleration #
newVolume :: Pressure -> Volume -> Pressure -> Volume #
Calculate new volume given an initial pressure and volume, and a new pressure
spRadFromVol :: Volume -> SphericalRadius #
Calculate sphereical radius from volume
cAreaSp :: Double -> CrossSecArea #
accel :: Force -> Mass -> Acceleration #
force :: Mass -> Acceleration -> Force #
velo :: Velocity -> Acceleration -> SimulationTime -> Velocity #
displacement :: Altitude -> Velocity -> Acceleration -> SimulationTime -> Altitude #
biLinIntp :: Fractional a => a -> a -> a -> a -> a -> a -> a -> a -> a -> a -> a #
roundToClosest :: (Ord a, Num a, Integral b) => a -> Vector b -> b #
Given some number-like thing and a Vector
of other number-like things,
round the number-like thing to the closest thing in the Vector
.
- NOTE*: The vector must NOT be empty.
We should some day generalize this (Lens?), it seems useful.