Expand description
Thermodynamics & Statistical Ensembles Implements pure Rust Markov Chain Monte Carlo (MCMC) sampling for macroscopic properties.
Structs§
- Ensemble
State - State of a thermodynamic ensemble
- Lithium
Pack - An off-grid lithium pack as an
S×Parray of prismatic cells, modelled as a first-order equivalent circuit (OCV − I·R sag). Captures the “down to the internal 4-prismatic-cell architecture” requirement: terminal voltage and deliverable power depend on the series/parallel topology, per-cell internal resistance, and SoC under a fluctuating load. - Solar
Panel - A solar panel on a simplified single-knee I-V curve (
I_scscales with irradiance;fill_factorsets the knee sharpness ∝ panel/impedance quality). - Thermodynamic
Sampler - Computes thermodynamic macroscopic properties from discrete structures via MCMC.
Functions§
- array_
mppt_ power - Total MPP power (W) harvested from a mixed-topology array — the sum of each panel’s independently-tracked maximum power point. Zero-heap (slice in, scalar out).
- heat_
loss_ rate - Conductive/convective heat-loss rate (W) through an envelope:
Q = U·A·ΔT. - phase_
change_ energy - Latent heat (J) of a phase change for
mass_kgat specific latent heatlatent_heat_j_kg— the multi-phase (boiling/condensing/melting) energy term that sits alongside the sensibleQ = U·A·ΔTloss. - thermal_
efficiency - Thermal efficiency of a heating/cooling system delivering
useful_power_wagainst an envelope lossU·A·ΔT:η = useful / (useful + loss), in0..1. Models the efficiency drop-off in constrained / mobile / pop-up infrastructure (thin envelope ⇒ high U ⇒ low η).