开发了一种脚本工具,用于快速批量生成用于CFD分析的正交六面体网格

IF 7.1 1区 工程技术 Q1 CONSTRUCTION & BUILDING TECHNOLOGY
Zhenyu Sun , Tengfei Zhang , Wei Liu
{"title":"开发了一种脚本工具,用于快速批量生成用于CFD分析的正交六面体网格","authors":"Zhenyu Sun ,&nbsp;Tengfei Zhang ,&nbsp;Wei Liu","doi":"10.1016/j.buildenv.2025.113102","DOIUrl":null,"url":null,"abstract":"<div><div>In the application of computational fluid dynamics (CFD), a mesh is used to discretize the computational domain and describe its boundaries where the governing equations are solved. In built environments, typical flow features such as wall-bounded flow can be well simulated with a hexahedral mesh, which also provides better control over the overall number of mesh cells. However, in the generation of a structured hexahedral mesh, connectivity modifications propagate through the mesh, resulting in a complex spatial partition of blocks, which significantly increases the workload. Whether using ICEM CFD or <span>blockMesh</span>, the workload caused by block partition is nearly unavoidable. Therefore, this study developed a scripting tool for the fast and batch generation of orthogonal hexahedral meshes. The tool can automatically generate blocks for uniform meshes by inputting characteristic coordinates and global mesh size. It also supports the input of the first layer mesh size, growth rate, and maximum mesh size to automatically generate sub-blocks further for non-uniform meshes. The definition of a boundary only requires inputting the diagonal coordinates of the surface. Additionally, this investigation use a staggered addition method that can quickly identify whether the partitioning of boundary condition is correct and output the reasons and locations of errors. The generated hexahedral mesh can serve as a pre-mesh for creating hybrid meshes, offering flexibility for non-orthogonal geometries. The tool is open-source on GitHub and the link is <span><span>https://github.com/mathslw/meshTool2025</span><svg><path></path></svg></span>.</div></div>","PeriodicalId":9273,"journal":{"name":"Building and Environment","volume":"281 ","pages":"Article 113102"},"PeriodicalIF":7.1000,"publicationDate":"2025-05-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Development of a scripting tool for the fast and batch generation of orthogonal hexahedral mesh for CFD analysis in built environments\",\"authors\":\"Zhenyu Sun ,&nbsp;Tengfei Zhang ,&nbsp;Wei Liu\",\"doi\":\"10.1016/j.buildenv.2025.113102\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>In the application of computational fluid dynamics (CFD), a mesh is used to discretize the computational domain and describe its boundaries where the governing equations are solved. In built environments, typical flow features such as wall-bounded flow can be well simulated with a hexahedral mesh, which also provides better control over the overall number of mesh cells. However, in the generation of a structured hexahedral mesh, connectivity modifications propagate through the mesh, resulting in a complex spatial partition of blocks, which significantly increases the workload. Whether using ICEM CFD or <span>blockMesh</span>, the workload caused by block partition is nearly unavoidable. Therefore, this study developed a scripting tool for the fast and batch generation of orthogonal hexahedral meshes. The tool can automatically generate blocks for uniform meshes by inputting characteristic coordinates and global mesh size. It also supports the input of the first layer mesh size, growth rate, and maximum mesh size to automatically generate sub-blocks further for non-uniform meshes. The definition of a boundary only requires inputting the diagonal coordinates of the surface. Additionally, this investigation use a staggered addition method that can quickly identify whether the partitioning of boundary condition is correct and output the reasons and locations of errors. The generated hexahedral mesh can serve as a pre-mesh for creating hybrid meshes, offering flexibility for non-orthogonal geometries. The tool is open-source on GitHub and the link is <span><span>https://github.com/mathslw/meshTool2025</span><svg><path></path></svg></span>.</div></div>\",\"PeriodicalId\":9273,\"journal\":{\"name\":\"Building and Environment\",\"volume\":\"281 \",\"pages\":\"Article 113102\"},\"PeriodicalIF\":7.1000,\"publicationDate\":\"2025-05-17\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Building and Environment\",\"FirstCategoryId\":\"5\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0360132325005839\",\"RegionNum\":1,\"RegionCategory\":\"工程技术\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"CONSTRUCTION & BUILDING TECHNOLOGY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Building and Environment","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0360132325005839","RegionNum":1,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"CONSTRUCTION & BUILDING TECHNOLOGY","Score":null,"Total":0}
引用次数: 0

摘要

在计算流体力学(CFD)的应用中,网格被用于离散计算域,并描述其边界,从而求解控制方程。在建筑环境中,六面体网格可以很好地模拟典型的流动特征,如有壁流动,这也可以更好地控制网格单元的总数。然而,在生成结构化六面体网格时,连通性修改会通过网格传播,导致块的空间划分复杂,这大大增加了工作量。无论是使用ICEM CFD还是blockMesh,块分区带来的工作量几乎是不可避免的。因此,本研究开发了一个脚本工具,用于快速批量生成正交六面体网格。该工具可以通过输入特征坐标和全局网格尺寸自动生成均匀网格块。它还支持输入第一层网格大小,增长率和最大网格大小,以自动生成非均匀网格的子块。边界的定义只需要输入曲面的对角线坐标。此外,本研究采用交错加法法,可以快速识别边界条件的划分是否正确,并输出错误的原因和位置。生成的六面体网格可以作为创建混合网格的预网格,为非正交几何提供灵活性。该工具在GitHub上是开源的,链接是https://github.com/mathslw/meshTool2025。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Development of a scripting tool for the fast and batch generation of orthogonal hexahedral mesh for CFD analysis in built environments
In the application of computational fluid dynamics (CFD), a mesh is used to discretize the computational domain and describe its boundaries where the governing equations are solved. In built environments, typical flow features such as wall-bounded flow can be well simulated with a hexahedral mesh, which also provides better control over the overall number of mesh cells. However, in the generation of a structured hexahedral mesh, connectivity modifications propagate through the mesh, resulting in a complex spatial partition of blocks, which significantly increases the workload. Whether using ICEM CFD or blockMesh, the workload caused by block partition is nearly unavoidable. Therefore, this study developed a scripting tool for the fast and batch generation of orthogonal hexahedral meshes. The tool can automatically generate blocks for uniform meshes by inputting characteristic coordinates and global mesh size. It also supports the input of the first layer mesh size, growth rate, and maximum mesh size to automatically generate sub-blocks further for non-uniform meshes. The definition of a boundary only requires inputting the diagonal coordinates of the surface. Additionally, this investigation use a staggered addition method that can quickly identify whether the partitioning of boundary condition is correct and output the reasons and locations of errors. The generated hexahedral mesh can serve as a pre-mesh for creating hybrid meshes, offering flexibility for non-orthogonal geometries. The tool is open-source on GitHub and the link is https://github.com/mathslw/meshTool2025.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Building and Environment
Building and Environment 工程技术-工程:环境
CiteScore
12.50
自引率
23.00%
发文量
1130
审稿时长
27 days
期刊介绍: Building and Environment, an international journal, is dedicated to publishing original research papers, comprehensive review articles, editorials, and short communications in the fields of building science, urban physics, and human interaction with the indoor and outdoor built environment. The journal emphasizes innovative technologies and knowledge verified through measurement and analysis. It covers environmental performance across various spatial scales, from cities and communities to buildings and systems, fostering collaborative, multi-disciplinary research with broader significance.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信