E3S Web of Conferences

Enabling Real-Time Building Digital Twins: Batched and Parallelized Simulation in Twin4Build

Andres Sebastian Cespedes Cubides, Jakob Bjørnskov, Muhyiddine Jradi

Computational

Key points

From the paper's conclusion
  • These results position Twin4Build as a scalable computational core, enabling efficient iterative workflows such as automated calibration, predictive control, and large-scale deployment across building portfolios.

Abstract

The deployment of building digital twins and advanced control strategies require high-fidelity, fast simulations. Computational latency, driven primarily by Python interpreter overhead on small per-component tensors, remains a significant bottleneck for component-based multi-zone models. This paper presents a graph-fusion compiler integrated into the Twin4Build Python library that batches simulation along two complementary axes: the component axis and the time axis. Along the component axis, structurally identical components are clustered into execution groups and vectorised via PyTorch broadcasting, with an automatic index-gather mechanism routing data across non-aligned topological connections. Along the time axis, several consecutive time steps are evaluated concurrently within each group. The compiler is fully automatic and requires no changes to user models. Benchmarks on CPU hardware across homogeneous multi-zone sweeps and realistic, heterogeneous building topologies show that dispatch amortisation converts ( N ) per-component execution into effectively (1) batched execution, yielding up to 188 single-thread and 33 multi-thread speedup at 256 rooms while preserving simulation accuracy and keeping the original memory envelope within 0.1%. Component batching is lossless to machine precision; temporal batching introduces a small, bounded residual at batch boundaries well below sensor-noise thresholds. These results position Twin4Build as a scalable computational core, enabling efficient iterative workflows such as automated calibration, predictive control, and large-scale deployment across building portfolios.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers