aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorsam-anthony <samanthony6@protonmail.com>2022-02-09 17:54:34 -0330
committersam-anthony <samanthony6@protonmail.com>2022-02-09 17:54:34 -0330
commitd0c7b0a39ed6703940da4896d2caa79ad36590e0 (patch)
tree60b4c711ffd3f62f29972b00958f22f1ba7b3c94 /src/lib.rs
parentffffee2ac77c88ea0219b1b0e39e3988ed918319 (diff)
downloadvolute-d0c7b0a39ed6703940da4896d2caa79ad36590e0.zip
small tweaks
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1646e17..b33113b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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())
-}