1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//! # 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](https://crates.io/crates/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 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
/// Cross-crate bridges — primitive-value conversions from other AGNOS science crates.
/// Integration APIs for downstream consumers (soorat rendering).
pub use UshmaError;