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
—
Loading POD-conserved neural ensemble…

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.

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

  1. 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).
  2. 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.
  3. 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.
  4. 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).

MetricConserved Ensemble (ID)Black-Box MLP (ID)Conserved Ensemble (OOD)Black-Box MLP (OOD)
Peak Tj,max RMSE1.33 °C3.08 °C7.23 °C10.37 °C
Full 24×24 Field RMSE0.306 °C0.787 °C1.862 °C3.611 °C
Pressure Drop Δp RMSE0.119 kPa0.450 kPa0.237 kPa0.551 kPa
Global Energy-Balance Leak0.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⁻⁸).

GridTj,maxTs,maxΔpEnergy ResidualWall Time
36 × 3683.261 °C68.772 °C6.0814 kPa4.43e-0913.6 ms
72 × 7282.725 °C68.106 °C6.0893 kPa7.96e-0922.4 ms
144 × 14482.466 °C67.841 °C6.0931 kPa4.58e-0944.8 ms
288 × 28882.297 °C67.699 °C6.0968 kPa7.03e-09121.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 QuantityEmpirical 68% CoverageEmpirical 95% Coverage
Unobserved Peak Tj,max61.7%91.7%
Hidden TIM Voiding δTIM73.3%88.3%
Microchannel Fouling βfoul55.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.