Added volume.

This commit is contained in:
Simon Brooke 2026-08-12 11:52:38 +01:00
parent 115e3d65b5
commit ce32cd285e
6 changed files with 90 additions and 20 deletions

View file

@ -13,10 +13,8 @@ I'm using this code to explore human survivability given global warming. The fol
3. [Extreme Heat](https://www.journeyman.cc/blog/posts-output/2026-07-31-Extreme-Heat/)
4. [Analysis of 2026 heatwaves UK](https://www.journeyman.cc/blog/posts-output/2026-08-04-Analysis-of-2026-heatwaves-UK/)
## Status
Alpha-quality code. It more or less works but it isn't at all polished.
## General architecture
@ -26,16 +24,18 @@ Alpha-quality code. It more or less works but it isn't at all polished.
The 'packet', in the terminology of this library, is a map which has bindings
for some of the following keywords:
1. `:absolute-humidity`
1. `:absolute-humidity` *grammes per metre<sup>3</sup>.*
2. `:actual-vapour-pressure` *not yet implemented*
1. `:dew-point` *not yet implemented*
2. `:pressure-pascals`
3. `:pressure-millibars`
4. `:saturation-vapour-pressure`
5. `:relative-humidity`
6. `:temperature` *assumed to be celsius*
4. `:saturation-vapour-pressure` *Pascals*
5. `:relative-humidity` *percentage, 0...100.*
6. `:temperature` *assumed to be &deg; Celsius*
7. `:temperature-celsius`
8. `:temperature-kelvin`
9. `:volume` *in metres<sup>3</sup>, relative to 1 at standard temperature and pressure.*
10. `:wet-bulb-temperature` *in &deg; Celsius.*
These keywords represent variables in the pressure equations, and they are all
to a degree inter-related; so if you have (or can assume) some of them, you can