diff options
| author | sam-anthony <samanthony6@protonmail.com> | 2022-02-09 17:54:34 -0330 |
|---|---|---|
| committer | sam-anthony <samanthony6@protonmail.com> | 2022-02-09 17:54:34 -0330 |
| commit | d0c7b0a39ed6703940da4896d2caa79ad36590e0 (patch) | |
| tree | 60b4c711ffd3f62f29972b00958f22f1ba7b3c94 /src/lib.rs | |
| parent | ffffee2ac77c88ea0219b1b0e39e3988ed918319 (diff) | |
| download | volute-d0c7b0a39ed6703940da4896d2caa79ad36590e0.zip | |
small tweaks
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1,12 +1,4 @@ pub mod app; pub mod input; +pub mod ui; pub mod unit_of_measurement; - -use crate::unit_of_measurement::{Pressure, Temperature, Volume}; - -const GAS_CONSTANT: f64 = 8.314472; -const MOLAR_MASS_OF_AIR: f64 = 0.0289647; // Kg/mol - -fn moles_from_gas_law(pres: Pressure, vol: Volume, temp: Temperature) -> f64 { - (pres.as_pascals() * vol.as_cubic_metres()) / (GAS_CONSTANT * temp.as_kelvin()) -} |