Expand description
§Thermal Comfort Library
A comprehensive Rust port of the pythermalcomfort Python package for thermal comfort calculations.
This library is no_std compatible and can run in WASM environments.
This library provides tools for calculating thermal comfort indices, heat/cold stress metrics, and thermophysiological responses using multiple models including:
- PMV/PPD (Predicted Mean Vote and Predicted Percentage Dissatisfied) - ISO 7730 & ASHRAE 55
- Adaptive comfort models (ASHRAE 55 and EN 16798)
- UTCI (Universal Thermal Climate Index)
- SET (Standard Effective Temperature)
- Heat stress indices (WBGT, Heat Index, etc.)
- And many more…
§Example
use thermalcomfort::{pmv_ppd_iso, v_relative, Temperature, Speed, Humidity, MetabolicRate, ClothingInsulation};
let tdb = Temperature::from_celsius(25.0);
let tr = Temperature::from_celsius(25.0);
let rh = Humidity::from_percent(50.0);
let v = Speed::from_meters_per_second(0.1);
let met = MetabolicRate::from_met(1.4);
let clo = ClothingInsulation::from_clo(0.5);
// Calculate relative air speed
let vr = v_relative(v, met);
// Calculate PMV and PPD
let result = pmv_ppd_iso(
tdb,
tr,
vr,
rh,
met,
clo,
Default::default()
);Re-exports§
pub use models::pmv::PmvPpdResult;pub use models::pmv::pmv_ppd_iso;pub use utilities::CLO_INDIVIDUAL_GARMENTS;pub use utilities::CLO_TYPICAL_ENSEMBLES;pub use utilities::clo_individual_garment;pub use utilities::clo_typical_ensemble;pub use utilities::v_relative;
Modules§
- constants
- Physical and thermal comfort constants
- models
- Thermal comfort models
- numerical
- Numerical methods for thermal comfort calculations
- psychrometrics
- Psychrometric functions for calculating properties of moist air
- utilities
- Utility functions for thermal comfort calculations
Structs§
- Area
- The
Areastruct can be used to deal with areas in a common way. Common metric and imperial units are supported. - Clothing
Insulation - Clothing insulation measurement.
- Humidity
- The
Humiditystruct can be used to deal with relative humidity in air in a common way. Relative humidity is an important metric used in weather forecasts. - Length
- The Length struct can be used to deal with lengths in a common way. Common metric and imperial units are supported.
- Mass
- The Mass struct can be used to deal with mass in a common way. Metric, avoirdupois imperial and troy imperial units are supported.
- Metabolic
Rate - Metabolic rate measurement.
- Power
- The
Powerstruct can be used to deal with energies in a common way. Common metric and imperial units are supported. - Pressure
- The
Pressurestruct can be used to deal with pressures in a common way. Common metric and imperial units are supported. - Speed
- The
Speedstruct can be used to deal with speeds in a common way. Common metric and imperial units are supported. - Temperature
- The
Temperaturestruct can be used to deal with absolute temperatures in a common way.
Enums§
- Sex
- Biological sex for physiological calculations