Dynamic Mesh Simulations in OpenFOAM: A Hybrid Eulerian–Lagrangian Approach

IF 1.8 Q3 MECHANICS
Fluids Pub Date : 2024-02-16 DOI:10.3390/fluids9020051
R. Pasolari, C. Ferreira, Alexander van van Zuijlen, Carlos Fernando Baptista
{"title":"Dynamic Mesh Simulations in OpenFOAM: A Hybrid Eulerian–Lagrangian Approach","authors":"R. Pasolari, C. Ferreira, Alexander van van Zuijlen, Carlos Fernando Baptista","doi":"10.3390/fluids9020051","DOIUrl":null,"url":null,"abstract":"The past few decades have witnessed a growing popularity in Eulerian–Lagrangian solvers due to their significant potential for simulating aerodynamic flows, particularly in cases involving strong body–vortex interactions. In this hybrid approach, the two component solvers are mutually coupled in a two-way fashion. Initially, the Lagrangian solver can supply boundary conditions to the Eulerian solver, while the Eulerian solver functions as a corrector for the Lagrangian solution in regions where the latter cannot achieve high accuracy. To utilize such tools effectively, it is vital for them to be capable of handling dynamic mesh movements. This study builds upon the previous research conducted by our team and extends the capabilities of the hybrid solver to handle dynamic meshes. While OpenFOAM, the Eulerian component of this hybrid code, incorporates built-in dynamic mesh properties, certain modifications are necessary to ensure its compatibility with the Lagrangian solver. More specifically, the evolution algorithm of the pimpleFOAM solver needs to be divided into two discrete steps: first, updating the mesh, and later, evolving the solution. This division enables a proper coupling between pimpleFOAM and the Lagrangian solver as an intermediate step. Therefore, the primary objective of this specific paper is to adapt the OpenFOAM solver to meet the demands of the hybrid solver and subsequently validate that the hybrid solver can effectively address dynamic mesh challenges using this approach. This approach introduces a pioneering method for conducting dynamic mesh simulations within the OpenFOAM framework, showcasing its potential for broader applications. To validate the approach, various test cases involving dynamic mesh movements are employed. Specifically, all these cases employ the Lamb–Oseen diffusing vortex, but each case incorporates different types of mesh movements, including translational, rotational, oscillational, and combinations thereof. The results from these cases demonstrate the effectiveness of the proposed OpenFOAM algorithm, with the maximum relative errors —when compared to the analytical solution across all presented cases—capped at 2.0% for the worst-case scenario. This affirms the algorithm’s capability to successfully handle dynamic mesh simulations with the proposed solver.","PeriodicalId":12397,"journal":{"name":"Fluids","volume":null,"pages":null},"PeriodicalIF":1.8000,"publicationDate":"2024-02-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Fluids","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.3390/fluids9020051","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"MECHANICS","Score":null,"Total":0}
引用次数: 0

Abstract

The past few decades have witnessed a growing popularity in Eulerian–Lagrangian solvers due to their significant potential for simulating aerodynamic flows, particularly in cases involving strong body–vortex interactions. In this hybrid approach, the two component solvers are mutually coupled in a two-way fashion. Initially, the Lagrangian solver can supply boundary conditions to the Eulerian solver, while the Eulerian solver functions as a corrector for the Lagrangian solution in regions where the latter cannot achieve high accuracy. To utilize such tools effectively, it is vital for them to be capable of handling dynamic mesh movements. This study builds upon the previous research conducted by our team and extends the capabilities of the hybrid solver to handle dynamic meshes. While OpenFOAM, the Eulerian component of this hybrid code, incorporates built-in dynamic mesh properties, certain modifications are necessary to ensure its compatibility with the Lagrangian solver. More specifically, the evolution algorithm of the pimpleFOAM solver needs to be divided into two discrete steps: first, updating the mesh, and later, evolving the solution. This division enables a proper coupling between pimpleFOAM and the Lagrangian solver as an intermediate step. Therefore, the primary objective of this specific paper is to adapt the OpenFOAM solver to meet the demands of the hybrid solver and subsequently validate that the hybrid solver can effectively address dynamic mesh challenges using this approach. This approach introduces a pioneering method for conducting dynamic mesh simulations within the OpenFOAM framework, showcasing its potential for broader applications. To validate the approach, various test cases involving dynamic mesh movements are employed. Specifically, all these cases employ the Lamb–Oseen diffusing vortex, but each case incorporates different types of mesh movements, including translational, rotational, oscillational, and combinations thereof. The results from these cases demonstrate the effectiveness of the proposed OpenFOAM algorithm, with the maximum relative errors —when compared to the analytical solution across all presented cases—capped at 2.0% for the worst-case scenario. This affirms the algorithm’s capability to successfully handle dynamic mesh simulations with the proposed solver.
OpenFOAM 中的动态网格模拟:欧拉-拉格朗日混合方法
过去几十年来,欧拉-拉格朗日求解器越来越受欢迎,因为它们在模拟空气动力流,特别是涉及强烈体涡相互作用的情况下,具有巨大的潜力。在这种混合方法中,两个求解器以双向方式相互耦合。首先,拉格朗日求解器可以为欧拉求解器提供边界条件,而欧拉求解器则在拉格朗日求解器无法达到高精度的区域充当拉格朗日求解器的修正器。要有效利用这些工具,它们必须能够处理动态网格移动。本研究以我们团队之前的研究为基础,扩展了混合求解器处理动态网格的能力。虽然混合代码的欧拉部分 OpenFOAM 包含内置的动态网格属性,但为了确保其与拉格朗日求解器的兼容性,有必要进行某些修改。更具体地说,pimpleFOAM 求解器的演化算法需要分为两个离散步骤:首先是更新网格,然后是演化求解。这种划分可以使 pimpleFOAM 和拉格朗日求解器之间的中间步骤适当耦合。因此,本文的主要目的是调整 OpenFOAM 求解器,以满足混合求解器的需求,并随后验证混合求解器是否能利用这种方法有效解决动态网格难题。该方法介绍了在 OpenFOAM 框架内进行动态网格模拟的开创性方法,展示了其更广泛的应用潜力。为了验证该方法,我们采用了各种涉及动态网格运动的测试案例。具体来说,所有这些案例都采用了 Lamb-Oseen 扩散漩涡,但每个案例都包含了不同类型的网格运动,包括平移、旋转、振荡以及它们的组合。这些案例的结果证明了 OpenFOAM 算法的有效性,在最坏情况下,与所有案例的分析解决方案相比,最大相对误差仅为 2.0%。这证实了该算法有能力利用所提出的求解器成功处理动态网格模拟。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Fluids
Fluids Engineering-Mechanical Engineering
CiteScore
3.40
自引率
10.50%
发文量
326
审稿时长
12 weeks
文献相关原料
公司名称 产品信息 采购帮参考价格
×
引用
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学术官方微信