applied sciences
Article Building Geometry Simplification for Improving Mesh Quality of Numerical Analysis Model
Gwanyong Park 1 , Changmin Kim 1 , Minhyung Lee 1 and Changho Choi 2,* 1 Institution of Green Building and New Technology, Mirae Environment Plan, Seoul 01905, Korea; [email protected] (G.P.); [email protected] (C.K.); [email protected] (M.L.) 2 Department of Architectural Engineering, Kwangwoon University, Seoul 01897, Korea * Correspondence: [email protected]; Tel.: +82-2-972-5645
Received: 30 June 2020; Accepted: 1 August 2020; Published: 5 August 2020
Abstract: Numerical analysis, especially the finite volume method (FVM), is one of the primary approaches employed when evaluating a building environment. A complicated geometry can degrade the mesh quality, leading to numerical diffusions and errors. Thus, this study develops and evaluates an automatic building geometry simplification method based on integrating similar surfaces for the geometry of an indoor space. A regression model showed that the complexity of the simplified geometry and its similarity to the original geometry decreased linearly with the threshold of the method. The mesh quality was significantly improved by the simplification. In particular, the maximum skewness decreased exponentially with the threshold of the method. It is expected that the simplification method and regression model presented in this study can be used to quantitatively control the mesh quality.
Keywords: automation; building model; geometry simplification; finite volume method; mesh quality; model design
1. Introduction The finite volume method (FVM) is commonly used to perform numerical analysis in many fields, including fluid dynamics, owing to its advantages in flux calculations in terms of precision [1]. In the construction field, FVM is used for environmental analyses using computational fluid dynamics (CFD), fire safety analysis [2], and some cases of heat, air, and moisture (HAM) analysis [3,4]. In particular, CFD is widely used in the analysis of aerodynamic environments, e.g., indoor ventilation and micro-environments around occupants [5]. FVM is a method that discretizes and analyzes partial differential equations in the form of algebraic equations. For the computation of algebraic equations, there is a need to divide the target model into finite volumes (“cells”), i.e., to design the mesh. During the mesh design process, a discretization error can occur, and the size of the error is affected by the geometry of the finite volume. Discretization errors not only reduce the accuracy of the simulation, but also cause numerical diffusion, which interferes with the convergence of the simulation. The accuracy and stability of the numerical analysis are quantitatively evaluated using a mesh quality that is calculated based on the geometry of cells [6,7]. The mesh quality of an FVM model is typically evaluated according to the non-orthogonality and skewness. Non-orthogonal cells and skewed cells that are generated near complex surfaces are the main sources of numerical errors. In particular, analyses of buoyancy-driven environments, such as those with natural ventilation, are significantly affected by the mesh quality [8,9]. As the fine features and complexity of the geometry adversely affect the mesh design, a geometry simplification is commonly used as a preprocessing step to improve the mesh quality of the model [10]. Among the numerical analysis processes, the simplification of a complex geometry requires a great
Appl. Sci. 2020, 10, 5425; doi:10.3390/app10165425 www.mdpi.com/journal/applsci Appl. Sci. 2020, 10, 5425 2 of 18 deal of manual work and is time-consuming [11]. In addition, the geometry simplification needs to be repeated manually until the target accuracy is achieved. Moreover, the determination of unnecessary geometrical features, simplification methods, and the level of simplification may depend on an analyst’s arbitrary judgment and experience. Therefore, there is a need for an objective automatic geometry simplification method for the FVM analysis and the evaluation of the mesh quality improvement achieved by the simplification. However, most studies that focus on the simplification of building geometries aim to reduce the computational cost in the visualization process, and there have been relatively few studies focusing on numerical analysis. This study proposes a building geometry simplification method for improving the mesh quality of FVM models. The rest of the paper is organized as follows. Section2 discusses previous studies on geometry simplification in the construction industry, and Section3 discusses the mesh quality metrics. Section4 presents the proposed automatic geometry simplification method for FVM analysis, while Sections5 and6 respectively discuss the evaluation method and results obtained showing the effects of the proposed method. Section7 presents the conclusions and recommendations for future research.
2. Literature Review To achieve the automatic simplification of three-dimensional (3D) geometry, the simplification of a surface mesh is commonly used, such as a mesh decimation algorithm. Surface mesh simplification involves partially deleting the vertices constituting the mesh [12], and was developed for models that include several millions of faces and vertices, such as human body geometry. In research studies on the application of numerical analysis in construction, surface mesh simplification has been used primarily to simplify the computer-simulated person (CSP) geometry in indoor environment analysis models [13,14]. However, building geometries consist mainly of planes that are perpendicular or parallel to each other [15]. Therefore, they are expressed as simple surface meshes with hundreds of vertices. If vertices are deleted using the surface mesh simplification algorithm, the geometry may be excessively deformed. Most studies on the simplification of the 3D geometries of buildings have been conducted for the computational optimization of buildings and map visualization. Kada [16] proposed a method for generating a new polyhedron from the major surfaces of the sidewall of a building geometry, and excluded negligible surfaces with small areas. Thereafter, the detailed geometry of the roof was reproduced as post-processing. Rau et al. [17] varied the complexity of a horizontal cross-section of a building, and formed a prism geometry by sweeping the cross-section in the vertical direction to simplify the building model. Similarly, He et al. [18] integrated buildings with similar heights, and simplified them into a prism geometry with a flat roof in order to simplify a set of adjacent buildings. In most cases, the building geometry is composed of walls that are perpendicular or parallel to each other, with little change in the vertical direction. The abovementioned studies presented simplification methods that consider these geometric features of buildings. However, for visualization of the 3D map, only the exterior geometry of the buildings was targeted, and its applicability to indoor models was not evaluated. Owing to the increased usage of file formats such as building information modeling (BIM) and geography markup language (GML) formats, such as CityGML, simplification studies that use the information of individual components of buildings have been conducted for visualization. Zhao et al. [19] integrated building components using morphological operations to perform a simplification. The hierarchical connection information between components was analyzed to determine the components to be integrated. Geiger et al. [20] classified the level of detail of a building according to the steps (section and height, roof and slab, door and window) required for extracting building components from the BIM model. As these methods use the semantic information of buildings, they are dependent on the data format of the building model. Most of these building simplification methods for visualization purposes apply different simplification criteria to the sidewall and roof surfaces, and they determine mainly the exterior properties of the building. As a consistency Appl. Sci. 2020, 10, 5425 3 of 18 and objective criterion of geometric design is required for the analysis of physical phenomena, these methods are not suitable as preprocessing approaches for numerical analyses. Generally, simplification in FVM analysis is performed at the discretion of the researcher, and there have been a limited number of studies regarding the application of an automatic geometry simplification based on consistent criteria. Ayala et al. [21] approximated the sloping roof of an atrium model for a fire safety analysis, and it was in the form of a staircase-shaped polyhedron. The roof was simplified in four levels depending on the scale of the stairs. From a comparison of the simulation results, the temperature error of the simplified model was analyzed, and was found to be less than 10%. The staircase-like polyhedron model has the advantage of having a simple design for a high-quality hexahedron mesh. The aim of the study was to analyze the behavior of smoke. However, if the planar roof is transformed into a staircase geometry, a vortex may be formed near the roof surface, and the resistance to fluid and smoke may increase, unlike the actual geometry. Piepereit et al. [22] proposed a method for integrating the surface of a building with adjacent surfaces by sweeping the surface in the normal direction to analyze an exterior wind environment. The degree of simplification was controlled using a distance threshold in the integration. As a result of the mesh design for the original and simplified models, the maximum skewness was decreased from 0.96 to 0.80, and the number of mesh cells was reduced by 4.4%. However, the proposed method is not deterministic as the faces are removed in an arbitrary order, and it is possible to generate small angles that are difficult for meshing. These studies confirmed the applicability of geometry simplification methods through objective criteria for building FVM models. However, considering that each method was applied to a specific case, there is a need to evaluate the general effects of simplification on the degree of change in the geometry and mesh quality according to an established simplification threshold.
3. Mesh Quality In FVM analysis, the differential equation of the physical phenomena needs to be discretized for the control volume (i.e., a cell in the mesh). For example, the conservation equation of the variable φ in the steady-state condition is as follows [23]: Z Z Z (→v φ)dV = (Γφ φ)dV + QφdV (1) VC ∇· VC ∇· ∇ VC | {z } | {z } | {z } Convection term Diffusion term Source term where VC is the control volume, →v is the velocity vector, Γ is the di ff usivity coefficient, and Q is the source. Figure1 illustrates an approximation of the equation for the analysis of the conservation equation for the two given cells, as shown in Equations (2)–(4). X X (a →n ) (→v φ ) = (a →n ) (Γ φ ) + V Q (2) f f · f f f · φ∇ f C φ f f
φ = fxφP + (1 fx)φ (3) fi − Q Q fi f = | − | (4) x Q P | − | where a f is the area of face f , and fx is the interpolation factor. Appl. Sci. 2020, 10, x FOR PEER REVIEW 3 of 18 objective criterion of geometric design is required for the analysis of physical phenomena, these methods are not suitable as preprocessing approaches for numerical analyses. Generally, simplification in FVM analysis is performed at the discretion of the researcher, and there have been a limited number of studies regarding the application of an automatic geometry simplification based on consistent criteria. Ayala et al. [21] approximated the sloping roof of an atrium model for a fire safety analysis, and it was in the form of a staircase-shaped polyhedron. The roof was simplified in four levels depending on the scale of the stairs. From a comparison of the simulation results, the temperature error of the simplified model was analyzed, and was found to be less than 10%. The staircase-like polyhedron model has the advantage of having a simple design for a high-quality hexahedron mesh. The aim of the study was to analyze the behavior of smoke. However, if the planar roof is transformed into a staircase geometry, a vortex may be formed near the roof surface, and the resistance to fluid and smoke may increase, unlike the actual geometry. Piepereit et al. [22] proposed a method for integrating the surface of a building with adjacent surfaces by sweeping the surface in the normal direction to analyze an exterior wind environment. The degree of simplification was controlled using a distance threshold in the integration. As a result of the mesh design for the original and simplified models, the maximum skewness was decreased from 0.96 to 0.80, and the number of mesh cells was reduced by 4.4%. However, the proposed method is not deterministic as the faces are removed in an arbitrary order, and it is possible to generate small angles that are difficult for meshing. These studies confirmed the applicability of geometry simplification methods through objective criteria for building FVM models. However, considering that each method was applied to a specific case, there is a need to evaluate the general effects of simplification on the degree of change in the geometry and mesh quality according to an established simplification threshold.
3. Mesh Quality In FVM analysis, the differential equation of the physical phenomena needs to be discretized for the control volume (i.e., a cell in the mesh). For example, the conservation equation of the variable 𝜙 in the steady-state condition is as follows [23]: