The transition toward energy-efficient and smart buildings requires Digital Twins (DTs) that can couple real-time data with physics-based Building Energy Models (BEMs) for predictive and adaptive operation. Yet, despite rapid digitalisation, there remains a lack of practical guidance and real-world implementations demonstrating how calibrated BEMs can be effectively integrated into Building Management Systems (BMSs). This study addresses that gap by presenting a complete and reproducible end-to-end framework for embedding physics-based BEMs into operational DTs using two setups: (i) encapsulation as Functional Mock-up Units (FMUs) and (ii) containerisation via Docker. Both approaches were deployed and tested in a real educational building in Cáceres (Spain), equipped with a LoRaWAN-based sensing and actuation infrastructure. A systematic comparison highlights their respective trade-offs: FMUs offer faster execution but limited weather inputs and higher implementation effort, whereas Docker-based workflows provide full portability, scalability, and native interoperability with Internet of Things (IoT) and BMS architectures. To enable real-time operation, a surrogate modelling framework was embedded within the Docker architecture to replicate the optimisation logic of the calibrated BEM and generate predictive blind control schedules in milliseconds—bypassing simulation overhead and enabling continuous actuation. The combined Docker + surrogate setup achieved 10–15% heating energy savings during winter operation without any HVAC retrofit. Beyond the case study, this work provides a step-by-step, in-depth guideline for practitioners to integrate calibrated BEMs into real-time control loops using existing toolchains. The proposed approach demonstrates how hybrid physics- and data-driven DTs can transform building management into a scalable, energy-efficient, and operationally deployable reality.
The current climate and energy crises demand innovative approaches to operating buildings more sustainably. HVAC systems, which significantly contribute to a building’s energy consumption, have been a major focus of research aimed at improving operational efficiency. However, a critical factor often overlooked is the seasonal and hourly variation in solar radiation and the resulting solar heat gain, which heats specific rooms differently depending on their orientation, type, and location within the building. This study proposes a simulation-based strategy to reduce HVAC energy use in hotels by allocating guests to rooms with more favorable thermal characteristics depending on the season. A high-resolution building energy model (BEM) was developed to represent a real 17-floor hotel tower in Madrid, incorporating detailed geometry and surrounding shading context. The model includes 439 internal thermal zones and simulates solar radiation using EnergyPlus’ Radiance module. The simulation results revealed large room-by-room differences in thermal energy demand. When applying an energetically optimized guest allocation strategy based on these simulations and using real occupancy data, potential reductions in HVAC energy demand were estimated to reach around 6% during summer and up to 20% in winter. These findings demonstrate that data-driven guest allocation, informed by physics-based building simulations, can provide substantial energy savings without requiring physical renovations or equipment upgrades, offering a promising approach for more sustainable hotel operation.
This study presents an integrated modeling framework that combines CO2 emissions and economic valuation to advance sustainable water management, focusing on the Segura River Basin in southeastern Spain. Characterized by arid conditions and severe water stress, the basin serves as an exemplary case for evaluating the trade-offs between environmental sustainability and economic productivity. The framework integrates CO2 emissions models with economic analyses to quantify the carbon footprint and economic returns across five key water demand sectors: agriculture, industry, urban, recreational and environmental. Results demonstrate substantial variations in both CO2 emissions and economic returns across and within these sectors, underscoring source-specific differences. Agriculture stands out as a key sector that balances carbon sequestration with productivity, whereas urban and industrial sectors exhibit energy-intensive water demands that significantly increase emissions. Additionally, there is notable heterogeneity in economic performance and CO2 emissions within each sector. By linking CO2 emissions with economic outcomes, the framework enables users to assess the relationship between economic value and CO2 emissions across water demand units, supporting informed decision-making on the most sustainable allocation strategies. A critical finding is the negative economic impact of using desalinated water in agriculture, where high costs substantially reduce profit margins. These insights inform policies aimed at enhancing resource efficiency, promoting low-carbon water sources and aligning water management strategies with both environmental and economic goals. This approach guides sustainable water allocation in water-scarce regions.