Skip to main content

Crate ushma

Crate ushma 

Source
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

FeatureDefaultDescription
transferyesConduction, convection, radiation, fins, heat exchangers, view factors
stateyesIdeal gas, van der Waals, Redlich-Kwong, Peng-Robinson, virial EOS
entropyyesEntropy, Carnot, Helmholtz/Gibbs free energy, entropy of mixing
materialyes10 built-in materials with thermal properties at ~300 K
phaseyesPhase transitions, Clausius-Clapeyron, 8 substance data sets
cycleyesOtto, Diesel, Brayton, Rankine, refrigeration cycles
numericalyes1D/2D finite difference, Crank-Nicolson, thermal networks
chemyesHess’s law, equilibrium constants, Van’t Hoff, flame temperature
statyesBoltzmann, partition functions, Maxwell-Boltzmann, Debye/Einstein
steamnoSaturated + superheated steam tables (IAPWS-IF97)
ainoDaimon/hoosh agent integration
loggingnoStructured logging via tracing
fullEnables all features

§Modules

  • transfer — Conduction, convection, radiation, fins, heat exchangers, dimensionless numbers
  • state — Equations of state, real gas models, compressibility, mixture rules
  • entropy — Entropy, free energy, thermodynamic potentials
  • material — Thermal properties, specific heat, conductivity tables
  • phase — Phase transitions, Clausius-Clapeyron, substance data
  • [steam] — Saturated and superheated steam tables
  • cycle — Thermodynamic cycles, diagram generation, efficiency comparison
  • numerical — Finite difference solvers, thermal networks
  • chem — Chemical thermodynamics, Hess’s law, equilibrium
  • stat — Statistical thermodynamics, Boltzmann, partition functions
  • error — 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.