kth.sePublications KTH
Change search
Link to record
Permanent link

Direct link
Publications (8 of 8) Show all publications
Calzolari, G. & Liu, W. (2025). Accelerating Large Eddy Simulations of Urban Airflow with Generative Adversarial Networks. Building and Environment, 286, Article ID 113622.
Open this publication in new window or tab >>Accelerating Large Eddy Simulations of Urban Airflow with Generative Adversarial Networks
2025 (English)In: Building and Environment, ISSN 0360-1323, E-ISSN 1873-684X, Vol. 286, article id 113622Article in journal (Refereed) Published
Abstract [en]

This study presents a deep learning framework designed to accelerate Large Eddy Simulation (LES) of airflow in urban environments. The framework leverages physics constrained conditional Generative Adversarial Networks (GANs) trained on instantaneous velocity snapshots from a synthetically generated dataset comprising 130 high-fidelity CFD simulations of simple building configurations. By learning the mapping from early-stage flow fields to their statistically steady-state counterparts, the framework allows the simulation to bypass the lengthy transient averaging phase and predict the final time-averaged fields directly. Two GAN-based architectures are explored: a conventional convolutional model operating on structured uniform grids (Grid-GAN), and a graph-based model (Graph-GAN) that utilizes Graph Neural Networks (GNNs), specifically Graph Attention Networks (GATs), to process unstructured CFD mesh data while preserving native spatial connectivity. Both approaches are integrated into a fully automated pipeline built exclusively on open-source tools, including OpenFOAM for CFD simulations, FreeCAD and ParaView for preprocessing, and PyTorch for deep learning model development and training. Results demonstrate that the proposed models can significantly reduce LES computational costs while retaining accuracy in predicting turbulent flow characteristics. The Graph-GAN, in particular, shows enhanced adaptability and physical consistency due to its ability to exploit mesh refinements in critical regions. This work lays the foundation for the development of robust, physics-informed surrogate models and supports the growing integration of deep learning with scientific simulations in fluid mechanics.

Place, publisher, year, edition, pages
Elsevier BV, 2025
Keywords
Computational Fluid Dynamics (CFD), Deep learning, Generative Adversarial Networks (GANs), Graph Attention Networks (GATs), Large Eddy Simulation (LES), Urban airflow
National Category
Fluid Mechanics Computer Sciences
Identifiers
urn:nbn:se:kth:diva-371057 (URN)10.1016/j.buildenv.2025.113622 (DOI)001576535200001 ()2-s2.0-105016315900 (Scopus ID)
Note

QC 20251003

Available from: 2025-10-03 Created: 2025-10-03 Last updated: 2025-10-03Bibliographically approved
Calzolari, G. (2025). Improving built environment aerodynamics with deep learning. (Doctoral dissertation). Stockholm: KTH Royal Institute of Technology
Open this publication in new window or tab >>Improving built environment aerodynamics with deep learning
2025 (English)Doctoral thesis, comprehensive summary (Other academic)
Abstract [en]

This thesis explores the intersection of deep learning (DL) and computational fluid dynamics (CFD) to improve the modeling and analysis of built environmentaerodynamics. As urbanization accelerates and sustainability challenges intensify, accurate and efficient tools for airflow prediction in cities and buildings are increasingly vital. Traditional CFD methods, while powerful, are computationally demanding and limited by model assumptions, especially in turbulence modeling. This work investigates whether deep learning techniques can enhance both the speed and generalizability of aerodynamic simulations, and whether they can support experimental measurements such as those obtained from wind tunnels. The thesis presents a comprehensive framework that integrates convolutional neural networks (CNNs), graph neural networks (GNNs), and generative adversarial networks (GANs) to accelerate large eddy simulations (LES), reconstruct flow fields, and improve experimental data processing. Notably, GNN-based models are used to operate directly on unstructured CFD meshes, preserving geometric and topological information critical for urban flow predictions. Hybrid approaches that combine physics-based knowledge with data-driven models are also introduced. Applications span both simulated and experimental domains, including a case study on wind tunnel shape optimization using reinforcement learning. While deep learning models showed strong potential for improving both simulation accuracy and speed, the work also highlights important challenges, including the need for better generalization, model interpretability, and the lack of publicly available CFD datasets.The findings suggest that combining deep learning with traditional fluid dynamics offers a promising path forward, especially when supported by open data, physical constraints, and collaborative research efforts. The thesis concludes by outlining directions for future research in physics-informed learning, dataset curation, and real-time integration of predictive models into sustainable urban design.

Abstract [sv]

Denna avhandling utforskar skärningspunkten mellan djupinlärning (DL) och beräkningsströmningsdynamik (CFD) med avsikten att förbättra modellering och analys av aerodynamiken i byggda miljöer. I takt med att urbaniseringen accelererar och hållbarhetsutmaningarna blir större, blir ökar behovet av noggranna och effektiva verktyg för luftflödesprognoser i städer och byggnader. Traditionella CFD-metoder, även om de är kraftfulla, är beräkningskrävande och begränsade av modellantaganden, särskilt inom turbulensmodellering. Detta arbete undersöker om djupinlärningstekniker kan användas för att förbättra både hastigheten och generaliserbarheten hos aerodynamiska simuleringar, och om de kan stödja experimentella mätningar som erhålls från vindtunnlar. Avhandlingen presenterar ett omfattande ramverk som integrerar faltningsneurala nätverk (CNN), grafneurala nätverk (GNN) och generativa adversariella nätverk (GAN) för att accelerera simuleringar av stora virvelsimuleringar (LES), rekonstruera flödesfält och förbättra experimentell databehandling. GNN-baserade modeller används särskilt för att arbeta direkt på ostrukturerade CFD-nät, vilket bevarar geometrisk och topologisk information som är avgörande för förutsägelser av luftflöden i stadsmiljöer. Hybridmetoder som kombinerar fysikbaserad kunskap med datadrivna modeller introduceras också. Tillämpningarna spänner över både simulerade och experimentella områden, inklusive en fallstudie om optimering av en vindtunnels form med hjälp av förstärkningsinlärning (reinforcemnt learning). Djupinlärningsmodeller visade stark potential för att förbättra både simuleringsnoggrannhet och hastighet. Samtidigt belyser arbetet också viktiga utmaningar, såsom behovet av bättre generalisering, modelltolkningsbarhet och även bristen på tillgängliga CFD-data. Resultaten tyder på att kombinationen av maskininlärning med traditionell fluiddynamik erbjuder en lovande väg framåt, särskilt när det finns tillgång till av öppna data, behov med fysiska begränsningar och även gemensamma forskningsinsatser. Avhandlingen avslutas med att skissera riktningar för framtida forskning inom fysikinformerat lärande (PINNs), datasetkurering (dataset curation) och realtidsintegration av prediktiva modeller för en hållbar stadsplanering.

Place, publisher, year, edition, pages
Stockholm: KTH Royal Institute of Technology, 2025. p. 48
Series
TRITA-ABE-DLT ; 2523
Keywords
Aerodynamics, Computational Fluid dynamics, Built Environment, Urban Airflow, Deep Learning, Wind Tunnel, Artificial Intelligence, Neural Networks, Generative Adversarial Networks., Aerodynamiken, Beräkningsströmningsdynamik, Byggda Miljöer, Stadsmiljöer, Djupinlärning, Vindtunnel, Artificiell Intelligens, Neurala Nätverk, Generativa Adversariella Nätverk.
National Category
Other Civil Engineering
Research subject
Civil and Architectural Engineering, Fluid and Climate Theory
Identifiers
urn:nbn:se:kth:diva-369447 (URN)978-91-8106-346-2 (ISBN)
Public defence
2025-09-26, B3, Brinellvägen 23, KTH Campus, public video conference link [MISSING], Stockholm, 13:00 (English)
Opponent
Supervisors
Note

QC 20250905

Available from: 2025-09-05 Created: 2025-09-05 Last updated: 2025-12-16Bibliographically approved
Calzolari, G. & Liu, W. (2024). Deep learning to develop zero-equation based turbulence model for CFD simulations of the built environment. Building Simulation, 17(3), 399-414
Open this publication in new window or tab >>Deep learning to develop zero-equation based turbulence model for CFD simulations of the built environment
2024 (English)In: Building Simulation, ISSN 1996-3599, E-ISSN 1996-8744, Vol. 17, no 3, p. 399-414Article in journal (Refereed) Published
Abstract [en]

This study aims to improve the accuracy and speed of predictions for thermal comfort and air quality in built environments by creating a coupled framework between computational fluid dynamics (CFD) simulations and deep learning models. The coupling approach is showcased by the development of a data-driven turbulence model. The new turbulence model is built using a deep learning neural network, whose mapping structure is based on a zero-equation turbulence model for built environment simulations, and is coupled with the CFD software OpenFOAM to create a hybrid framework. The neural network is a standard shallow multi-layer perceptron. The number of hidden layers and nodes per layer was optimized using Bayesan optimization algorithm. The framework is trained on an indoor environment case study, as well as tested on an indoor office simulation and an outdoor building array simulation. Results show that the deep learning based turbulence model is more robust and faster than traditional two-equation Reynolds average Navier-Stokes (RANS) turbulence models, while maintaining a similar level of accuracy. The model also outperforms the standard algebraic zero-equation model due to its superior ability to generalize to various flow scenarios. Despite some challenges, namely the mapping constraint, the limited training dataset size and the source of generation of training data, the hybrid framework demonstrates the viability of the coupling technique and serves as a starting point for future development of more reliable and advanced models.

Place, publisher, year, edition, pages
Springer Nature, 2024
Keywords
computational fluid dynamics (CFD), neural networks, OpenFOAM, turbulence model
National Category
Fluid Mechanics Building Technologies
Identifiers
urn:nbn:se:kth:diva-367103 (URN)10.1007/s12273-023-1083-4 (DOI)001131873400001 ()2-s2.0-85180665199 (Scopus ID)
Note

QC 20250715

Available from: 2025-07-15 Created: 2025-07-15 Last updated: 2025-09-05Bibliographically approved
Calzolari, G. & Liu, W. (2023). A deep learning accelerator framework for large eddy simulation in the built environment Building Simulation 2023 Conference. In: BS 2023 - Proceedings of Building Simulation 2023: 18th Conference of IBPSA: . Paper presented at 18th IBPSA Conference on Building Simulation, BS 2023, Shanghai, China, Sep 4 2023 - Sep 6 2023 (pp. 3672-3679). International Building Performance Simulation Association
Open this publication in new window or tab >>A deep learning accelerator framework for large eddy simulation in the built environment Building Simulation 2023 Conference
2023 (English)In: BS 2023 - Proceedings of Building Simulation 2023: 18th Conference of IBPSA, International Building Performance Simulation Association , 2023, p. 3672-3679Conference paper, Published paper (Refereed)
Abstract [en]

This study develops a deep learning framework to speed up Large Eddy Simulation (LES) of airflow in built environments. The framework employs a convolutional neural network trained on instantaneous velocity snapshots of computational domains for one indoor environment case study. It accelerates LES simulations by reaching statistically steady state faster, resulting in significant speedups in computational cost and simulation run-time while maintaining similar accuracy levels to standard LES simulations. This approach can greatly reduce the computational effort required for LES simulations in large scale environments. Together with promising results, limitations in the current framework exist. The main one is the failure to extrapolate properly to different flow fields than the training set and understand the 3D turbulence structures. The current framework poses a base for the development of more trusty and robust accelerator models in the future.

Place, publisher, year, edition, pages
International Building Performance Simulation Association, 2023
National Category
Fluid Mechanics
Identifiers
urn:nbn:se:kth:diva-341617 (URN)10.26868/25222708.2023.1699 (DOI)2-s2.0-85179505727 (Scopus ID)
Conference
18th IBPSA Conference on Building Simulation, BS 2023, Shanghai, China, Sep 4 2023 - Sep 6 2023
Note

QC 20231228

Available from: 2023-12-28 Created: 2023-12-28 Last updated: 2025-09-05Bibliographically approved
Calzolari, G. & Liu, W. (2023). A Deep Learning Based Zero-equation Turbulence Model for Indoor Airflow Simulation. In: Proceedings of the 5th International Conference on Building Energy and Environment: . Paper presented at 5th International Conference on Building Energy and Environment, COBEE 2022, Montreal, Canada, Jul 29 2022 - Jul 25 2022 (pp. 1835-1843). Springer Nature
Open this publication in new window or tab >>A Deep Learning Based Zero-equation Turbulence Model for Indoor Airflow Simulation
2023 (English)In: Proceedings of the 5th International Conference on Building Energy and Environment, Springer Nature , 2023, p. 1835-1843Conference paper, Published paper (Refereed)
Abstract [en]

The study and control of the airflow in the indoor environment is crucial. Computational fluid dynamics (CFD) allows detailed flow analysis, but faces challenges mainly in terms of computational efficiency. Modern data driven tools have lately received much attention for inexpensive airflow simulations. In this work we develop a coupled CFD–deep learning framework by employing a neural network to replace a classical zero-equation eddy viscosity turbulence model. A standard multi-layer perceptron is trained on TensorFlow and subsequently transferred and applied to a CFD solver in OpenFOAM. Training and testing were performed by collecting data from validated Reynolds-averaged Navier–Stokes (RANS) simulations of indoor airflow from literature. The new coupled framework enables accurate results with significantly faster prediction speed. A primary challenge remains in being able to train the neural network over a larger dataset and provide higher generalizability to the model with sufficient accuracy.

Place, publisher, year, edition, pages
Springer Nature, 2023
Series
Environmental science and engineering, ISSN 18635520
Keywords
Built environment, CFD, Deep learning, Multi-layer perceptron, Zero-equation turbulence model
National Category
Fluid Mechanics Computer Sciences
Identifiers
urn:nbn:se:kth:diva-338038 (URN)10.1007/978-981-19-9822-5_192 (DOI)2-s2.0-85172720953 (Scopus ID)
Conference
5th International Conference on Building Energy and Environment, COBEE 2022, Montreal, Canada, Jul 29 2022 - Jul 25 2022
Note

Part of ISBN 9789811998218

QC 20231013

Available from: 2023-10-13 Created: 2023-10-13 Last updated: 2025-02-09Bibliographically approved
Calzolari, G. & Liu, W. (2021). Deep learning to replace, improve, or aid CFD analysis in built environment applications: A review. Building and Environment, 206, Article ID 108315.
Open this publication in new window or tab >>Deep learning to replace, improve, or aid CFD analysis in built environment applications: A review
2021 (English)In: Building and Environment, ISSN 0360-1323, E-ISSN 1873-684X, Vol. 206, article id 108315Article, review/survey (Refereed) Published
Abstract [en]

Fast and accurate airflow simulations in the built environment are critical to provide acceptable thermal comfort and air quality to the occupants. Computational Fluid Dynamics (CFD) offers detailed analysis on airflow motion, heat transfer, and contaminant transport in indoor environment, as well as wind flow and pollution dispersion around buildings in urban environments. However, CFD still faces many challenges mainly in terms of computational expensiveness and accuracy. With the increasing availability of large amount of data, data driven models are starting to be investigated to either replace, improve, or aid CFD simulations. More specifically, the abilities of deep learning and Artificial Neural Networks (ANN) as universal non-linear approximator, handling of high dimensionality fields, and computational inexpensiveness are very appealing. In built environment research, deep learning applications to airflow simulations shows the ANN as surrogate, replacement for expensive CFD analysis. Surrogate modeling enables fast or even real-time predictions, but usually at a cost of a degraded accuracy. The objective of this work is to critically review deep learning interactions with fluid mechanics simulations in general, to propose and inform about different techniques other than surrogate modeling for built environment applications. The literature review shows that ANNs can enhance the turbulence model in various way for coupled CFD simulations of higher accuracy, improve the efficiency of Proper Orthogonal Decomposition (POD) methods, leverage crucial physical properties and information with physics informed deep learning modeling, and even unlock new advanced methods for flow analysis such as super-resolution techniques. These promising methods are largely yet to be explored in the built environment scene. Unavoidably, deep learning models also presents challenges such as the availability of consistent large flow databases, the extrapolation task problem, and over-fitting, etc.

Place, publisher, year, edition, pages
Elsevier BV, 2021
Keywords
Artificial intelligence, Neural networks, Fluid mechanics, Turbulence
National Category
Fluid Mechanics
Identifiers
urn:nbn:se:kth:diva-303183 (URN)10.1016/j.buildenv.2021.108315 (DOI)000701169800003 ()2-s2.0-85115322852 (Scopus ID)
Note

QC 20211011

Available from: 2021-10-11 Created: 2021-10-11 Last updated: 2025-09-05Bibliographically approved
Calzolari, G. & Liu, W.Accelerating urban airflow large eddy simulations with generative adversarial networks.
Open this publication in new window or tab >>Accelerating urban airflow large eddy simulations with generative adversarial networks
(English)Manuscript (preprint) (Other academic)
Abstract [en]

This study presents a deep learning framework designed to accelerate LargeEddy Simulation (LES) of airflow in urban environments. The framework leverages physics constrained conditional Generative Adversarial Networks (GANs) trained on instantaneous velocity snapshots from a synthetically generated dataset comprising 130 high-fidelity CFD simulations of simple building configurations. By learning the mapping from early-stage flow fields to their statistically steady-state counterparts, the framework allows the simulation to bypass the lengthy transient averaging phase and predict the final time-averaged fields directly. Two GAN-based architectures are explored: a conventional convolutional model operating on structured uniform grids (Grid-GAN), and a graph-based model (Graph-GAN) that utilizes Graph Neural Networks (GNNs), specifically Graph Attention Networks (GATs), to process unstructured CFD mesh data while preserving native spatial connectivity. Both approaches are integrated into a fully automated pipeline built exclusively on open-source tools, including OpenFOAM for CFD simulations, FreeCAD and ParaView for preprocessing, and PyTorch for deep learning model development and training. Results demonstrate thatthe proposed models can significantly reduce LES computational costs while retaining accuracy in predicting turbulent flow characteristics. The Graph-GAN, in particular, shows enhanced adaptability and physical consistency due to its ability to exploit mesh refinements in critical regions. This worklays the foundation for the development of robust, physics-informed surrogate models and supports the growing integration of deep learning with scientific simulations in fluid mechanics.

Keywords
Deep learning, Computational Fluid Dynamics (CFD), Large Eddy Simulation (LES), urban airflow, Generative Adversarial Networks (GANs), Graph Attention Networks (GATs)
National Category
Fluid Mechanics
Research subject
Civil and Architectural Engineering, Fluid and Climate Theory
Identifiers
urn:nbn:se:kth:diva-369445 (URN)
Note

QC 20250908

Available from: 2025-09-05 Created: 2025-09-05 Last updated: 2025-09-08Bibliographically approved
Calzolari, G. & Liu, W.Perspective on collection of accessible indoor airflow CFD simulations datasets.
Open this publication in new window or tab >>Perspective on collection of accessible indoor airflow CFD simulations datasets
(English)Manuscript (preprint) (Other academic)
Abstract [en]

The growing capabilities of deep learning and artificial intelligence (AI) have revolutionized numerous fields, including indoor airflow simulations. Computational Fluid Dynamics (CFD) plays a crucial role in simulating airflow, heat transfer, and pollutant dispersion, which are essential for healthier indoor climates. However, the progress in this domain is hampered by the lack of publicly available CFD datasets that are consistent and standardized. With the urgent need to solve the recent COVID-19 crisis there has been a new wave of published studies to inspect airflow patterns in confined spaces. By reviewing many recent CFD applications in indoor environment, this study shows a perspective on the critical importance of establishing a robust, open-access repository of CFD data for indoor airflow simulations. Such a resource would not only accelerate research by providing a rich dataset fortraining AI models but also ensure that findings are replicable and comparable across different studies. This paper advocates for larger efforts to create accessibleand standardized CFD datasets, which will be instrumental in leveraging AI for thedevelopment of smarter, healthier, and more sustainable cities.

Keywords
Indoor airflow simulations, CFD (Computational Fluid Dynamics), deep learning, AI, public datasets.
National Category
Fluid Mechanics
Research subject
Civil and Architectural Engineering, Fluid and Climate Theory
Identifiers
urn:nbn:se:kth:diva-369446 (URN)
Note

QC 20250908

Available from: 2025-09-05 Created: 2025-09-05 Last updated: 2025-09-08Bibliographically approved
Organisations
Identifiers
ORCID iD: ORCID iD iconorcid.org/0000-0001-9287-6103

Search in DiVA

Show all publications