Enabling Real-Time Building Digital Twins: Batched and Parallelized Simulation in Twin4Build
Andres Sebastian Cespedes Cubides, Jakob Bjørnskov, Muhyiddine Jradi
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
- Digital Twin architecture for heterogeneous fabrication and construction in AECAdvanced Engineering Informatics · 2026
- stable-envs-v1: Fast and Reproducible Environments with Controllable VariationsarXiv · 2026
- NeuralBES: A Differentiable, Control-Aware Emulator for Scalable Building Energy ModelingarXiv · 2026
- Real-Time Digital Twins for Building Energy Optimization Through Blind Control: Functional Mock-Up Units, Docker Container-Based Simulation, and Surrogate ModelsApplied Sciences · 2025
- BESTOpt: A modular, physics-informed runtime environment for building energy modeling, simulation, and control optimizationBuilding Simulation · 2026
- DLCB: Ahead-of-Time Compilation for Dynamic Deep LearningarXiv · 2026