Home / Archives / December 2025 / Articles

DIFFERENTIABLE GPU CFD FOR INVERSE DESIGN OF BUILDING VENTILATION: GRADIENT-BASED OPTIMIZATION OF DIFFUSER PLACEMENT AND FLOW RATES DIRECTLY FROM RECONSTRUCTED ROOM GEOMETRY

Authors: James Afful

Country: USA

Abstract

Building ventilation plays a critical role in maintaining indoor environmental quality, occupant thermal comfort, airborne contaminant removal, and energy efficiency. Conventional ventilation design relies heavily on empirical guidelines, iterative computational simulations, and designer experience, limiting the exploration of complex spatial configurations and operating conditions. This study proposes a differentiable graphics processing unit (GPU) accelerated computational fluid dynamics (CFD) framework for inverse ventilation design directly from reconstructed three-dimensional room geometry. Spatial reconstruction techniques generate computational domains incorporating architectural features, internal obstructions, and ventilation boundaries. Differentiable flow solvers enable gradient propagation through governing fluid dynamics equations, facilitating simultaneous optimisation of diffuser placement, orientation, and airflow rates. A multi-objective optimisation formulation integrates airflow uniformity, contaminant removal, thermal comfort, ventilation effectiveness, and energy consumption under physical and architectural constraints. Automatic differentiation and parallel GPU computation support efficient sensitivity evaluation and iterative design refinement. Comparative benchmarking against conventional CFD and derivative-free optimisation methods assesses computational efficiency, gradient accuracy, convergence stability, and ventilation performance. The proposed framework establishes a computational pathway towards automated, geometry-aware, performance-driven ventilation design for energy-efficient and healthier indoor environments.

Keywords

Differentiable Computational Fluid Dynamics; GPU-Accelerated Simulation; Inverse Ventilation Design; GradientBased Optimisation; Three-Dimensional Geometry Reconstruction; Diffuser Placement.

References

1) Nielsen, P. V. (2015). Fifty years of CFD for room air distribution. Building and Environment, 91, 78–90.
https://doi.org/10.1016/j.buildenv.2015.02.035
2) Chen, Q. (2009). Ventilation performance prediction for buildings: A method overview and recent
applications. Building and Environment, 44(4), 848–858. https://doi.org/10.1016/j.buildenv.2008.05.025
3) Awbi, H. B. (2003). Ventilation of Buildings (2nd ed.). London: Spon Press / Taylor & Francis.
4) Srebric, J., & Chen, Q. (2002). Simplified numerical models for complex air supply diffusers. HVAC&R
Research, 8(3), 277–294. https://doi.org/10.1080/10789669.2002.10391442
5) Zhai, Z. J., Xue, Y., & Chen, Q. (2014). Inverse design methods for indoor ventilation systems using CFDbased multi-objective genetic algorithm. Building Simulation, 7(6), 661–669.
https://doi.org/10.1007/s12273-014-0179-2
6) Liu, W., Jin, M., Chen, C., & Chen, Q. (2016). Optimization of air supply location, size, and parameters in
enclosed environments using a computational fluid dynamics-based adjoint method. Journal of Building
Performance Simulation, 9(2), 149–161. https://doi.org/10.1080/19401493.2015.1006525
7) Zhao, X., Liu, W., Lai, D., & Chen, Q. (2018). Optimal design of an indoor environment by the CFD-based
adjoint method with area-constrained topology and cluster analysis. Building and Environment, 138, 171–
180. https://doi.org/10.1016/j.buildenv.2018.04.033
8) Zhao, X., & Chen, Q. (2019). Inverse design of indoor environment using an adjoint RNG k–ε turbulence
model. Indoor Air, 29(2), 320–330. https://doi.org/10.1111/ina.12530
9) Zhao, X., Shi, Z., & Chen, Q. (2020). Inverse design of an indoor environment using a filter-based topology
method with experimental verification. Indoor Air, 30(5), 1039–1051. https://doi.org/10.1111/ina.12661
10) Kazhdan, M., & Hoppe, H. (2013). Screened Poisson surface reconstruction. ACM Transactions on
Graphics, 32(3), Article 29, 1–13. https://doi.org/10.1145/2487228.2487237
11) Peskin, C. S. (2002). The immersed boundary method. Acta Numerica, 11, 479–517.
https://doi.org/10.1017/S0962492902000077
12) Kochkov, D., Smith, J. A., Alieva, A., Wang, Q., Brenner, M. P., & Hoyer, S. (2021). Machine learning–
accelerated computational fluid dynamics. Proceedings of the National Academy of Sciences, 118(21),
e2101784118. https://doi.org/10.1073/pnas.2101784118
13) Bezgin, D. A., Buhendwa, A. B., & Adams, N. A. (2025). JAX-Fluids 2.0: Towards HPC for differentiable
CFD of compressible two-phase flows. Computer Physics Communications, 308, 109433.
https://doi.org/10.1016/j.cpc.2024.109433
14) Giles, M. B., & Pierce, N. A. (2000). An introduction to the adjoint approach to design. Flow, Turbulence
and Combustion, 65(3–4), 393–415. https://doi.org/10.1023/A:1011430410075
15) Othmer, C. (2008). A continuous adjoint formulation for the computation of topological and surface
sensitivities of ducted flows. International Journal for Numerical Methods in Fluids, 58(8), 861–877.
https://doi.org/10.1002/fld.1770
16) Griewank, A., & Walther, A. (2000). Algorithm 799: Revolve: An implementation of checkpointing for the
reverse or adjoint mode of computational differentiation. ACM Transactions on Mathematical Software,
26(1), 19–45. https://doi.org/10.1145/347837.347846
17) Martins, J. R. R. A., & Ning, A. (2022). Engineering Design Optimization. Cambridge: Cambridge
University Press. https://doi.org/10.1017/9781108980647
18) Patankar, S. V. (1980). Numerical Heat Transfer and Fluid Flow. New York: Hemisphere Publishing
Corporation.
19) Pope, S. B. (2000). Turbulent Flows. Cambridge: Cambridge University Press.
https://doi.org/10.1017/CBO9780511840531
20) Sandberg, M. (1981). What is ventilation efficiency? Building and Environment, 16(2), 123–135.
https://doi.org/10.1016/0360-1323(81)90028-7
21) ASHRAE (2023). ANSI/ASHRAE Standard 55-2023: Thermal Environmental Conditions for Human
Occupancy. Atlanta, GA: American Society of Heating, Refrigerating and Air-Conditioning Engineers.
22) ASHRAE (2025). ANSI/ASHRAE Standard 62.1-2025: Ventilation and Acceptable Indoor Air Quality.
https://www.ashrae.org/technical-resources/bookstore/standards-62-1-62-2
23) ISO (2025). ISO 7730:2025. Ergonomics of the thermal environment — Analytical determination and
interpretation of thermal comfort using calculation of the PMV and PPD indices and local thermal comfort
criteria. https://www.iso.org/standard/85803.html
24) Celik, I. B., Ghia, U., Roache, P. J., Freitas, C. J., Coleman, H., & Raad, P. E. (2008). Procedure for
estimation and reporting of uncertainty due to discretization in CFD applications. Journal of Fluids
Engineering, 130(7), 078001. https://doi.org/10.1115/1.2960953
25) ASME (2009, reaffirmed 2021). ASME V&V 20-2009: Standard for Verification and Validation in
Computational Fluid Dynamics and Heat Transfer. New York: American Society of Mechanical Engineers.
26) Dai, A., Chang, A. X., Savva, M., Halber, M., Funkhouser, T., & Nießner, M. (2017). ScanNet: Richlyannotated 3D reconstructions of indoor scenes. Proceedings of CVPR.
https://doi.org/10.1109/CVPR.2017.261
27) Chang, A., Dai, A., Funkhouser, T., Halber, M., Nießner, M., Savva, M., Song, S., Zeng, A., & Zhang, Y.
(2017). Matterport3D: Learning from RGB-D data in indoor environments. Proceedings of 3DV.
https://gfx.cs.princeton.edu/pubs/Chang_2017_MLF/
28) Li, Z., Kovachki, N., Azizzadenesheli, K., Liu, B., Bhattacharya, K., Stuart, A., & Anandkumar, A. (2021).
Fourier neural operator for parametric partial differential equations. ICLR.
https://doi.org/10.48550/arXiv.2010.08895
29) Lu, L., Jin, P., Pang, G., Zhang, Z., & Karniadakis, G. E. (2021). Learning nonlinear operators via
DeepONet based on the universal approximation theorem of operators. Nature Machine Intelligence, 3,
218–229. https://doi.org/10.1038/s42256-021-00302-5
30) Raissi, M., Perdikaris, P., & Karniadakis, G. E. (2019). Physics-informed neural networks: A deep learning
framework for solving forward and inverse problems involving nonlinear partial differential equations.
Journal of Computational Physics, 378, 686–707. https://doi.org/10.1016/j.jcp.2018.10.045
31) ASHRAE (2025). ANSI/ASHRAE Standard 62.2-2025: Ventilation and Acceptable Indoor Air Quality in
Residential Buildings. https://www.ashrae.org/technical-resources/bookstore/standards-62-1-62-2
32) ASHRAE (2025). ANSI/ASHRAE/IES Standard 90.1-2025: Energy Standard for Sites and Buildings
Except Low-Rise Residential Buildings. https://www.ashrae.org/technical-resources/bookstore/standard-90-
1
33) ISO (2021). ISO 52120-1:2021. Energy performance of buildings — Contribution of building automation,
controls and building management — Part 1: General framework and procedures.
https://www.iso.org/standard/65883.html