摘要
为了评估基于snappyHexMesh方法生成的自动网格体系在二维柱体绕流大涡模拟中的适用性,比较了该自动网格体系与人工网格体系对于Re为3 900圆柱绕流和Re为22 000方柱绕流的数值模拟结果。通过设置合理的计算域以及数值格式,采用snappyHexMesh自动网格以及人工网格的算例都表现出良好的数值稳定性。将不同网格体系的数值模拟结果与物理试验结果进行对比,结果表明,采用snappyHexMesh网格可以提高数值求解效率;圆柱绕流对网格体系的变化比较敏感,不同密度的snappyHexMesh网格会显著影响圆柱气动力特征以及尾流区域的流场结果;snappyHexMesh网格体系可以准确预测方柱绕流,在方柱绕流大涡模拟中具有相较于圆柱绕流更好的适用性。
采用计算流体力学(computational fluid dynamics, CFD)的方法解决实际工程问题时,CFD数值计算结果的准确性会受到诸如网格划分体系、数值计算格式、求解精度等因素的影响而发生改
按照不同的划分方法可以把网格体系分为两类:人工网格体系和自动网格体系。人工网格体系是指在计算开始之前,根据模拟对象和计算目的人为地规划网格分布,由于其质量可控且适用性较强,被广泛用于CFD研究,例如:周强
为了进一步研究在基于LES方法的数值模拟中Hex网格对流场结果的影响,本文从基础的流体绕流现象着手,分别对雷诺数Re为3 900的均匀来流下圆柱绕流和Re为22 000的均匀来流下方柱绕流进行不同网格体系下的LES模拟,通过比较采用人工网格体系和采用Hex网格体系得到的柱体气动力特征、计算域内流场的瞬时结果和平均结果,定量分析Hex网格在平面和曲面绕流数值模拟中的适用性,为Hex网格体系在一般工程问题中的应用提供参考。本文首先介绍了研究目的和研究内容;之后在第一部分介绍了数值模拟的前期准备工作;第二部分展示了圆柱和方柱绕流计算的不同网格体系,包括人工划分的平滑过渡网格和自动划分的Hex网格;第三部分详细比较了各组数值模拟结果的计算效率、柱体气动力特征及流场特征;第四部分对全文进行了总结。
大涡模拟是由Smagorinsk
(1) |
(2) |
式(
(3) |
式中:Smagorinsky常数;为网格滤波尺寸,本文采用立方体滤波方法:;,。为了提高近壁面处的湍流模拟结果,本文采用Van Direst壁面函数对标准Smagorinsky-Lilly模型进行修正。
本文共模拟两类柱体绕流现象,分别为均匀来流下的亚临界雷诺数圆柱绕流以及高雷诺数方柱绕流,每类柱体绕流包含三组不同算例,各组算例除了网格体系存在区别外,其计算域尺寸(除了展向高度)、边界条件(除了入流速度)、求解方法和计算格式完全一致,分别介绍如下。
对于计算域尺寸,本文各组算例采用立方体计算域,顺流向长度30 D(其中D为圆柱断面直径或方柱断面宽度),横流向长度17 D,圆柱或方柱模型的上游来流区域长度为10 D,下游尾流区域长度为20 D,圆柱或方柱的几何中心距离计算域的上下边界各8.5 D。对于圆柱模型其计算域展向高度为D,展向均匀划分48层网格;对于方柱其计算域展向高度为6 D,展向均匀划分60层网格。计算域示意如

图1 计算域示意图及边界条件
Fig. 1 Computational domain and boundary conditions
边界名 | 速度边界条件 | 压力边界条件 |
---|---|---|
入流边界 | 定值 | 零梯度 |
出流边界 | 零梯度 | 定值 |
展向边界 | 周期边界条件 | |
前后边界 | 对称边界条件 | |
柱体表面 | 无滑移边界条件 |
在求解格式方面,本文采用了二阶精度的数值算法,对流体方程的时间项差分采用backward二阶隐式格式,压力梯度项采用基于高斯积分的二阶线性差分格式,对流项采用线性迎风二阶差分格式,扩散项采用基于高斯积分的二阶线性修正差分格式。对压力速度耦合方程采用隐式压力分裂算子(PISO)算法求解,并在每个求解时间步内进行2次非正交修正来保证计算稳定性。
为了比较自动网格划分体系对亚临界雷诺数(Re为3 900)圆柱绕流计算结果的影响,本文设置了三个算例:第一个算例采用人工方法划分网格,得到了过渡平滑的结构化网格,网格数量约为300万;第二个和第三个算例采用程序自动划分的方式得到了Hex网格体系,其中第二个算例的Hex网格整体密度与人工网格体系接近,网格数量约为550万,而第三个算例采用网格相对稀疏但网格数量与人工网格体系接近的Hex网格体系,约为350万。为了保证LES方法在圆柱表面边界层内计算的准确性,三组网格体系下的圆柱表面网格高度均为0.002 D,使得计算过程中的最大值小于1。三组网格体系的整体及局部示意如

图2 圆柱绕流计算的不同网格体系示意图
Fig. 2 Different grid systems for simulation of flow around circular cylinder

图3 圆柱绕流计算不同网格体系的尺寸沿流向过渡特征
Fig. 3 Change of grid size along flow direction for simulation of flow around circular cylinder
对于方柱绕流的计算,本文同样地设置三组算例来比较自动网格划分体系对高雷诺数(Re为22 000)方柱绕流计算结果的影响,其网格数量分别约为330万,800万和410万。三组网格体系下的方柱表面网格高度分别为0.002 D、0.0015 D和0.003 D,使得计算过程中的最大值小于5。用于方柱绕流计算的三组网格体系的整体及局部示意如

图4 方柱绕流计算的不同网格体系示意图
Fig. 4 Different grid systems for simulation of flow around square cylinder

图5 方柱绕流计算不同网格体系的尺寸沿流向过渡特征
Fig. 5 Change of grid size along flow direction for simulation of flow around square cylinder
本文的各组绕流算例都采基于 OpenFOAM V2.3.1求解,采用64核服务器并行计算,并通过调整算例的时间步长使得计算全程的库朗数1,提取计算稳定后40 s的结果进行分析。各算例的计算总时长、总时间步,总网格单元数以及每百万网格每时间步平均求解时长(,用来表征数值求解效率)如
算例 | 计算总时长T/s | 总时间步n | 总网格数k/百万 | 每百万网格平均每步求解时长/s | |
---|---|---|---|---|---|
圆柱 | 人工网格 | 63 925 | 50 000 | 3.0 | 0.43 |
密集Hex网格 | 221 927 | 100 000 | 5.5 | 0.40 | |
稀疏Hex网格 | 126 961 | 100 000 | 3.5 | 0.36 | |
方柱 | 人工网格 | 301 753 | 200 000 | 3.3 | 0.46 |
密集Hex网格 | 399 923 | 133 333 | 8.0 | 0.37 | |
稀疏Hex网格 | 84 751 | 80 000 | 4.1 | 0.26 |
对于亚临界雷诺数的圆柱绕流,

图6 圆柱绕流阻力系数和升力系数时程结果比较
Fig. 6 Comparison of time-varying drag and lift coefficients for simulation of flow around circular cylinder

图7 圆柱表面平均压力系数分布
Fig. 7 Distribution of mean pressure coefficient on circular cylinder
算例 | St | ||||||
---|---|---|---|---|---|---|---|
人工网格 | 87.75 | 0.212 | 0.987 | 0.107 | 0.943 | 1.49 | 0.22 |
密集Hex网格 | 86.80 | 0.213 | 0.970 | 0.081 | 0.877 | 1.71 | 0.31 |
稀疏Hex网格 | 88.21 | 0.210 | 1.062 | 0.240 | 0.987 | 1.31 | 0.30 |
Ong和Wallac | 85±2 | 0.215±0.005 | 0.99±0.05 | — | 0.9±0.05 | 1.33±0.05 | 0.24±0.01 |
Lourenco和Shi | 86˚ | 0.22 | 0.99 | — | — | 1.19 | 0.24 |
Mani等 | 86˚ | 0.21 | 0.99 | — | 0.86 | — | 0.33 |
Wornom | 89˚ | 0.21 | 0.99 | 0.11 | 0.88 | 1.45 | — |
与圆柱类似的,对于方柱绕流,

图8 方柱绕流阻力系数和升力系数时程结果比较
Fig. 8 Comparation of time-varying drag and lift coefficients for simulation of flow around square cylinder

图9 方柱表面平均压力系数分布
Fig. 9 Distribution of mean pressure coefficient on square cylinder

图10 方柱表面脉动压力系数分布
Fig. 10 Distribution of pressure fluctuation coefficient on square cylinder
算例 | Re | St | |||||
---|---|---|---|---|---|---|---|
人工网格 | 22 000 | 0.121 | 2.316 | 0.271 | 1.526 | 1.584 | 1.110 |
密集Hex网格 | 22 000 | 0.118 | 2.175 | 0.186 | 1.479 | 1.481 | 1.125 |
稀疏Hex网格 | 22 000 | 0.121 | 2.329 | 0.228 | 1.608 | 1.618 | 1.050 |
Nishimura和Taniik | 40 000 | — | 2.33 | 0.26 | 1.33 | 1.60 | — |
Norber | 22 000 | 0.130 | 2.10 | — | — | 1.37 | — |
Wang | 21 400 | 0.130 | 2.03 | 0.18 | 1.29 | — | 1.31 |
周强 | 22 000 | 0.122 | 2.27 | 0.29 | 1.40 | 1.61 | 1.37 |

图11 尾流中心线上平均顺流向速度分布
Fig. 11 Distribution of mean streamwise velocity in wake centerline

图12 圆柱绕流尾流区域平均流线分布
Fig. 12 Time-averaged streamlines in the wake of cylinder
为了比较柱体后方区域的横流向流场速度分布情况,

图13 尾流区域不同位置的平均顺流向速度分布
Fig. 13 Mean streamwise velocity at different locations in the wake of cylinder
在绕流过程中,由于柱体两侧存在漩涡交替脱落的现象,会导致在柱体后方的流场中出现明显的顺流向脉动速度。

图14 尾流区域不同位置的顺流向脉动速度均方值分布
Fig. 14 Mean square value of streamwise velocity fluctuations at different locations in the wake of cylinder
对于大涡模拟来说,本文采用具有二阶精度的数值格式开展计算,证明了Hex网格对于较高精度数值离散格式具有较好的适用性。然而,当采用相对低阶的数值格式进行大涡模拟时,需要对Hex网格的适用性重新展开评估。采用一阶数值离散格式时相同网格体系的圆柱绕流计算结果如

图15 不同数值离散精度下圆柱表面平均压力系数分布
Fig. 15 Distribution of mean pressure coefficient adopting different numerical discretization accuracies
本文基于典型二维亚临界雷诺数圆柱绕流和高雷诺数方柱绕流现象,评估一种采用snappyHexMesh(简称Hex)方法生成的自动网格体系在二维绕流大涡模拟中的适用性。通过将三组不同的网格体系下的数值模拟结果与物理试验等结果进行对比,证明了Hex网格用于二维绕流大涡模拟计算的可行性,评估了Hex网格体系的数值求解效率,并比较了网格对于柱体绕流气动力特征和流场特征的影响,主要结论如下:
(1)采用Hex网格会提高数值求解的效率;相比于平直边界,Hex网格在弯曲边界处的正交性较差,因此需要较短的时间步长来保证计算稳定性,增加计算所需的总时间。
(2)网格体系的改变会对圆柱绕流的气动力特征产生明显的影响,采用高分辨率的Hex网格可以得到与试验值最接近的表面压力结果;网格体系对方柱绕流的影响不明显。
(3)圆柱绕流的尾流区域流场特征的大涡模拟结果对于网格体系的改变比较敏感;而不同网格对方柱绕流模拟的影响较小。采用低分辨率Hex网格对尾流区域脉动风速的预测结果较差。
作者贡献声明
张宇鑫:实验思路构思,数据的分析,实验结果可视化,初稿撰写,初稿修改。
曹曙阳:方法指导,试验数据核实,初稿审阅和修改。
操金鑫:方法指导。
参考文献
VERSTEEG H, MALALASEKERA W. An introduction to computational fluid dynamics: The finite volume method approach [M]. Essex, England: Bell &Bain Limited,1996. [百度学术]
CELIK I B, CEHRELI Z N, YAVUZ I. Index of resolution quality for large eddy simulations [J]. Journal of Fluids Engineering, 2005, 127(5): 949. [百度学术]
WANG W, GAO Y, OKAZE T. Comparison of hexahedral, tetrahedral and polyhedral cells for reproducing the wind field around an isolated building by LES [J]. Building and Environment, 2021, 195: 107717. [百度学术]
MUKHA T, BENSOW R E, LIEFVENDAHL M. Predictive accuracy of wall-modelled large-eddy simulation on unstructured grids [J]. Computers & Fluids, 2021, 221: 104885. [百度学术]
周强, 曹曙阳, 周志勇. 亚临界雷诺数下圆柱体尾流结构的数值模拟 [J]. 同济大学学报(自然科学版), 2013, 41(1): 33. [百度学术]
ZHOU Qiang, CAO Shuyang, ZHOU Zhiyong. Numerical studies of wake characteristics on a circular cylinder at sub-critical Reynolds number [J]. Journal of Tongji University (Natural Science), 2013, 41(1): 33. [百度学术]
王蒙恩, 曹曙阳, 操金鑫. 龙卷风风场的数值模拟研究 [J]. 同济大学学报(自然科学版), 2019, 47(11):1548. [百度学术]
WANG Mengen, CAO Shuyang, CAO Jinxin. Numerical study of tornado-like flow [J]. Journal of Tongji University (Natural Science), 2019, 47(11):1548. [百度学术]
RICCI M, PATRUNO L, DE MIRANDA S. Wind loads and structural response: Benchmarking LES on a low-rise building [J]. Engineering Structures, 2017, 144: 26. [百度学术]
DU Y, MAK C M, AI Z. Modelling of pedestrian level wind environment on a high-quality mesh: A case study for the HKPolyU campus [J]. Environmental Modelling & Software, 2018, 103: 105. [百度学术]
CAVAR D, RETHORE P E, BECHMANN A, et al. Comparison of OpenFOAM and EllipSys3D for neutral atmospheric flow over complex terrain [J]. Wind Energy Science, 2016, 1: 55. [百度学术]
RAKAI A, KRISTOF G, FRANKE J. Sensitivity analysis of microscale obstacle resolving models for an idealized central European city center, Michel-Stadt [J]. Idojaras, 2014, 118: 53. [百度学术]
SMAGORINSKY J. General circulation experiments with the primitive equations [J]. Monthly Weather Review, 1963, 91: 99. [百度学术]
LILLY D K. On the application of the eddy viscosity concept in the inertial sub-range of turbulence [J]. Ncar Manuscript, 1967, 123: 1. [百度学术]
NORBERG C. Flow around a circular cylinder: Aspects of fluctuating lift [J]. Journal of Fluid Structure, 2001, 15(3/4): 459. [百度学术]
ONG L, WALLACE J. The velocity field of the turbulent very near wake of a circular cylinder [J]. Experiments in Fluids, 1996, 20: 441. [百度学术]
LOURENCO M, SHIH C. Characteristics of the plane turbulent near wake of a circular cylinder.a particle image velocimetry study [J]. Laser Anemometry in Fluid Mech, 1993, 1(1): 51. [百度学术]
MANI A, MOIN P, WANG M. Computational study of optical distortions by separated shear layers and turbulent wakes [J]. Journal of Fluid Mechanics, 2009, 625: 273. [百度学术]
WORNOM S, OUVRARD H, SALVETTI M V, et al. Variational multiscale large-eddy simulations of the flow past a circular cylinder: Reynolds number effects [J]. Computers & Fluids, 2011, 47: 44. [百度学术]
NISHIMURA H, TANIIKE Y. Fluctuating pressures on a two-dimensional aquare prism [J]. Journal of Structural and Construction Engineering (Transactions of AIJ), 2000, 65: 37. [百度学术]
OKA S, ISHIHARA T. Numerical study of aerodynamic characteristics of a square prism in a uniform flow [J]. Journal of Wind Engineering and Industrial Aerodynamics, 2009, 97: 548. [百度学术]
NORBERG C. Flow around rectangular cylinders - pressure forces and wake frequencies [J]. Journal of Wind Engineering and Industrial Aerodynamics, 1993, 49: 187. [百度学术]
WANG G, VANKA S P. LES of flow over a square cylinder[C]// Proceedings of the Direct and Large-Eddy Simulation II. Dordrecht: Springer Netherlands, 1997: 397-440. [百度学术]
周强, 廖海黎, 曹曙阳. 高雷诺数下方柱绕流特性的数值模拟 [J]. 西南交通大学学报, 2018, 53(3): 533. [百度学术]
ZHOU Qiang, LIAO Haili, CAO Shuyang. Numerical study of flow characteristics around square cylinder at high Reynolds number [J]. Journal of Southwest Jiaotong University, 2018, 53(3): 533. [百度学术]
PARNAUDEAU P, CARLIER J, HEITZ D, et al. Experimental and numerical studies of the flow over a circular cylinder at Reynolds number 3900 [J]. Physics of Fluids, 2008, 20: 058101 [百度学术]
LYN D A, EINAV S, RODI W, et al. A laser-Doppler velocimetry study of ensemble-averaged characteristics of the turbulent near wake of a square cylinder [J]. Journal of Fluid Mechanics, 1995, 304: 285. [百度学术]
LYSENKO D A, ERTESVAG I S, RIAN K E. Large-eddy simulation of the flow over a circular cylinder at Reynolds number 3900 using the OpenFOAM toolbox [J]. Flow Turbulence and Combustion, 2012, 89: 491. [百度学术]
SRINIVAS Y, BISWAS G, PARIHAR A S, et al. Large-eddy simulation of high Reynolds number turbulent flow past a square cylinder [J]. Journal of Engineering Mechanics, 2006, 132: 327. [百度学术]