Expand description
§Ushma
Ushma (Sanskrit: ऊष्मा — heat, thermal energy) — Thermodynamics simulation for AGNOS
Provides heat transfer simulation, entropy calculations, equations of state, and thermal material properties. Built on hisab for math foundations.
§Feature flags
| Feature | Default | Description |
|---|---|---|
transfer | yes | Conduction, convection, radiation, fins, heat exchangers, view factors |
state | yes | Ideal gas, van der Waals, Redlich-Kwong, Peng-Robinson, virial EOS |
entropy | yes | Entropy, Carnot, Helmholtz/Gibbs free energy, entropy of mixing |
material | yes | 10 built-in materials with thermal properties at ~300 K |
phase | yes | Phase transitions, Clausius-Clapeyron, 8 substance data sets |
cycle | yes | Otto, Diesel, Brayton, Rankine, refrigeration cycles |
numerical | yes | 1D/2D finite difference, Crank-Nicolson, thermal networks |
chem | yes | Hess’s law, equilibrium constants, Van’t Hoff, flame temperature |
stat | yes | Boltzmann, partition functions, Maxwell-Boltzmann, Debye/Einstein |
steam | no | Saturated + superheated steam tables (IAPWS-IF97) |
ai | no | Daimon/hoosh agent integration |
logging | no | Structured logging via tracing |
full | — | Enables all features |
§Modules
transfer— Conduction, convection, radiation, fins, heat exchangers, dimensionless numbersstate— Equations of state, real gas models, compressibility, mixture rulesentropy— Entropy, free energy, thermodynamic potentialsmaterial— Thermal properties, specific heat, conductivity tablesphase— Phase transitions, Clausius-Clapeyron, substance data- [
steam] — Saturated and superheated steam tables cycle— Thermodynamic cycles, diagram generation, efficiency comparisonnumerical— Finite difference solvers, thermal networkschem— Chemical thermodynamics, Hess’s law, equilibriumstat— Statistical thermodynamics, Boltzmann, partition functionserror— Error types
Re-exports§
pub use error::UshmaError;
Modules§
- chem
- Chemical thermodynamics — formation data, Hess’s law, equilibrium, flame temperature.
- cycle
- Thermodynamic cycles — Otto, Diesel, Brayton, Rankine, refrigeration.
- entropy
- Entropy, free energy, thermodynamic potentials, equilibrium.
- error
- Error types for ushma.
- material
- Thermal material properties — conductivity, specific heat, density.
- numerical
- Numerical methods — finite difference, thermal networks, grid solvers.
- phase
- Phase transitions — Clausius-Clapeyron, latent heat, phase diagram lookup.
- stat
- Statistical thermodynamics — Boltzmann, partition functions, speed distributions, solid Cv.
- state
- Equations of state — ideal gas, van der Waals, phase diagrams.
- transfer
- Heat transfer — conduction, convection, radiation.