Work / Engineering and simulation
Conservation-exact thermal digital twin with Bayesian fault diagnostics
Can a physics-constrained surrogate replace hours of conjugate heat-transfer CFD with near-zero energy leakage, diagnose hidden TIM and fouling faults from sparse sensors, and flag when not to trust itself?
- energy-balance error vs. 3.27% black-box MLP
- 0.057%
- OOD Trust Gate escalation recall (94.7% ID certified)
- 100%
- empirical 95% Bayesian coverage on peak Tj,max
- 91.7%
Hover over the cold plate to inspect local junction temperature Tj and heat flux q″.
- Peak junction Tj,max ± σens
- —
- Thermal resistance Rth
- —
- Pressure drop Δp
- —
- Bulk outlet Tout
- —
- Global energy-balance leak
- —
- Inference latency
- —
Live browser surrogate. Runs the trained 5-member PyTorch POD-conserved residual ensemble directly in your browser on top of exact bulk-enthalpy conservation. Push power > 2400 W or flow < 1.5 L/min to watch the OOD Trust Gate escalate to the FVM solver.
Inject an invisible hardware fault into the cold plate, corrupt the 6 sparse sensors (4 cold-plate thermistors + 2 offset on-die diodes) and manifold Δp with realistic measurement noise (σT = 0.45 °C, σp = 0.15 kPa), and run a live Metropolis–Hastings Bayesian inversion directly in your browser.
- Noisy sensor telemetry
- —
- Sampler speed
- —
- Recovered TIM voiding δTIM (95% CI)
- —
- Recovered channel fouling βfoul (95% CI)
- —
- Posterior predictive peak Tj,max
- —
Overview
A coupled 2.5D Finite-Volume Conjugate Heat Transfer solver (plus a 3D OpenFOAM unit-cell reference case) for a split-flow manifold microchannel cold plate cooling a 1–2.8 kW multi-die AI accelerator and HBM package. A 5-member POD-compressed residual neural ensemble enforces exact global enthalpy conservation by construction, predicts full 2D junction temperature fields in ~0.05 ms, pairs with a Mahalanobis + epistemic OOD Trust Gate, and runs Bayesian MCMC inversion on sparse sensor telemetry to detect invisible TIM delamination and channel fouling.
Approach
- Built a compiled C++17 coupled FVM CHT solver with temperature-dependent water properties, Shah–London developing friction and Nusselt correlations, copper fin efficiency, and pressure-balanced parallel-channel flow redistribution (verified to < 10⁻⁸ global energy residual and 0.49% fine-grid GCI).
- Generated 1,010 Latin Hypercube and out-of-distribution (OOD) CHT cases at 96×96 resolution and compressed the 2D conjugate spreading residual onto 28 POD modes capturing 100.0% of variance.
- Trained a 5-member PyTorch residual ensemble on top of an exact bulk-enthalpy conservation baseline, cutting IN-distribution Tj,max RMSE by 2.3× (1.34 °C vs. 3.08 °C) and global energy leakage by 57× (0.057% vs. 3.27%) compared to a black-box MLP.
- Calibrated an OOD Trust Gate achieving 100.0% OOD escalation recall, and validated emcee Bayesian fault diagnostics across 60 synthetic injections (91.7% empirical 95% credible coverage on unobserved peak junction temperature).
Surrogate vs. Black-Box MLP Benchmark
Evaluated across 150 unseen in-distribution cases and 140 out-of-distribution (OOD) extrapolation regimes (extreme power up to 2.95 kW, starved flow < 1.4 L/min, severe asymmetric skew and faults). All models use identical training budgets; the conserved ensemble takes 0.052 ms (495× faster than the 96×96 C++ FVM solver and > 10⁵× faster than 3D OpenFOAM).
| Metric | Conserved Ensemble (ID) | Black-Box MLP (ID) | Conserved Ensemble (OOD) | Black-Box MLP (OOD) |
|---|---|---|---|---|
| Peak Tj,max RMSE | 1.33 °C | 3.08 °C | 7.23 °C | 10.37 °C |
| Full 24×24 Field RMSE | 0.306 °C | 0.787 °C | 1.862 °C | 3.611 °C |
| Pressure Drop Δp RMSE | 0.119 kPa | 0.450 kPa | 0.237 kPa | 0.551 kPa |
| Global Energy-Balance Leak | 0.057% | 3.27% | 0.062% | 7.58% |
Certified OOD Trust Gate: 94.7% of in-distribution designs pass certification, while 100.0% of OOD extrapolation cases are flagged for automatic solver escalation.
Solver Grid Convergence & Conservation Verification
Nominal 1.8 kW / 3.2 L min⁻¹ case checked across four successively doubled FVM meshes (fine-grid GCI = 0.49%, 72×72 vs. 288×288 discretization delta = 0.428 °C). Discrete enthalpy balance closes to machine/solver tolerance (< 10⁻⁸).
| Grid | Tj,max | Ts,max | Δp | Energy Residual | Wall Time |
|---|---|---|---|---|---|
| 36 × 36 | 83.261 °C | 68.772 °C | 6.0814 kPa | 4.43e-09 | 13.6 ms |
| 72 × 72 | 82.725 °C | 68.106 °C | 6.0893 kPa | 7.96e-09 | 22.4 ms |
| 144 × 144 | 82.466 °C | 67.841 °C | 6.0931 kPa | 4.58e-09 | 44.8 ms |
| 288 × 288 | 82.297 °C | 67.699 °C | 6.0968 kPa | 7.03e-09 | 121.4 ms |
Bayesian Injection–Recovery Calibration
Validated across 60 synthetic fault injections solved by the C++ CHT ground-truth solver with σT = 0.45 °C and σp = 0.15 kPa sensor noise using emcee MCMC:
| Target Quantity | Empirical 68% Coverage | Empirical 95% Coverage |
|---|---|---|
| Unobserved Peak Tj,max | 61.7% | 91.7% |
| Hidden TIM Voiding δTIM | 73.3% | 88.3% |
| Microchannel Fouling βfoul | 55.0% | 78.3% |
Reproducible codebase: Full C++17 solver, 3D OpenFOAM chtMultiRegionSimpleFoam unit-cell case, PyTorch training pipeline, and emcee validation scripts are published at github.com/swapnilsingh018/thecosmologicalphysicist/tree/main/thermal-twin.
Need a similar model or analysis?
Fixed-scope simulation sprints, physics-constrained surrogates and Bayesian inference pipelines.