pub struct Barometer<'a> { /* private fields */ }Expand description
A barometric altimeter on a pad, in the air of a day: it reads the standard atmosphere’s
altitude of the day’s pressure where it is, less that at the pad, H(p(z)) − H(p(z₀))
(Ussa76::pressure_altitude_m).
In the standard atmosphere itself it reads the geopotential height climbed. On a warmer day the air is thinner, pressure falls more slowly with height, and it reads less than that: in the troposphere, with the sea-level pressure unchanged, by the ratio of the standard’s sea-level temperature to the day’s.
Implementations§
Source§impl<'a> Barometer<'a>
impl<'a> Barometer<'a>
Sourcepub fn on_pad(
day: &'a dyn Atmosphere,
site_msl_m: f64,
pad_m: f64,
) -> Result<Self, AtmosError>
pub fn on_pad( day: &'a dyn Atmosphere, site_msl_m: f64, pad_m: f64, ) -> Result<Self, AtmosError>
A barometer on a pad pad_m above a site site_msl_m above sea level, in day’s air.
§Errors
hpr_atmos::AtmosError if the day has no air at the pad.
Sourcepub fn reading_m(&self, height_m: f64) -> Result<f64, AtmosError>
pub fn reading_m(&self, height_m: f64) -> Result<f64, AtmosError>
What it reads at height_m above the site, m.
§Errors
hpr_atmos::AtmosError if the day has no air there.
Sourcepub fn height_m(&self, reading_m: f64) -> Result<f64, AtmosError>
pub fn height_m(&self, reading_m: f64) -> Result<f64, AtmosError>
The height above the site at which it reads reading_m, m: the inverse of
Self::reading_m, which turns a logged barometric altitude into the height the rocket
climbed in the day’s air (the private collection’s logged apogees, ADR-184).
The reading rises with height wherever the day’s pressure falls with height, so the
height is bisected between the site and the first doubling of the reading’s size that
reads past it, to the resolution of f64.
§Errors
hpr_atmos::AtmosError::Domain for a reading that is not finite, below what the site
itself reads, or above what the day reads 100 km up; and what Self::reading_m raises.