Welcome to Journal of Graphics

Journal of Graphics ›› 2026, Vol. 47 ›› Issue (2): 440-448.DOI: 10.11996/JG.j.2095-302X.2026020440

• BIM/CIM • Previous Articles     Next Articles

Development of a graph theory-based automated calculation method and tool for airflow resistance in building ventilation systems

JIANG Kai1, XU Jinglin1,2(), YU Fangqiang3   

  1. 1 Shanghai Construction No.4(Group) Co. Ltd, Shanghai 201103, China
    2 Polytechnic Institute, Zhejiang University, Hangzhou Zhejiang 310015, China
    3 Shanghai Construction Group Co. Ltd, Shanghai 200080, China
  • Received:2025-09-21 Accepted:2025-11-25 Online:2026-04-30 Published:2026-05-20
  • Contact: XU Jinglin
  • Supported by:
    Shanghai Oriental Talent Program Youth Project(QNKJ2024047)

Abstract:

In building mechanical and electrical systems, airflow resistance calculation of ventilation systems is a critical task in HVAC design and optimization. Traditional methods, which rely on manual identification of the most unfavorable loop and segment-by-segment resistance calculation, suffer from low efficiency and high error rates, making them inadequate for complex engineering demands. With the advancement of Building Information Modeling (BIM), automated analysis based on Revit models has become an important approach to improving design quality. A graph theory-based automated calculation method for airflow resistance in building ventilation systems was proposed. Based on Revit MEP models, the topological relationships of ventilation system components were extracted via the API and abstracted into an undirected graph, where fittings were represented as nodes and duct segments as edges. The Breadth-First Search (BFS) algorithm was employed to traverse the entire system from the fan, identifying all connected air terminals and constructing a tree structure with the fan as the root node and the terminals as leaf nodes. A bottom-up, depth-first backtracking strategy was then applied to calculate the downstream airflow at each node layer by layer. By integrating local resistance coefficients and frictional resistance formulas, the total resistance for each path was computed. The most unfavorable loop was automatically identified by comparing the resistance values of all paths, enabling an intelligent and automated analysis of the system’s airflow resistance. An automated calculation plugin integrated into the Revit platform was developed based on this method and validated in a large-scale laboratory project in Shanghai. The case study involved a comprehensive review of 144 fans, revealing that the original selection for 28 fans could not meet the system’s resistance requirements, while the calculation efficiency was improved by approximately 37 times compared to traditional manual methods. This research provided reliable data support for fan selection, energy-saving optimization, and subsequent operation and maintenance management, demonstrating strong potential for practical engineering applications.

Key words: airflow resistance calculation in ventilation systems, graph theory, most unfavorable loop, breadth-first search, building information modeling (BIM), MEP detailing design

CLC Number: