開(kāi)源軟件OpenFOAM下投影算法實(shí)現(xiàn)
發(fā)布時(shí)間:2018-01-19 13:43
本文關(guān)鍵詞: 計(jì)算流體力學(xué) OpenFOAM 投影算法 求解器 出處:《杭州電子科技大學(xué)》2014年碩士論文 論文類(lèi)型:學(xué)位論文
【摘要】:目前在工業(yè)應(yīng)用中主要采用商業(yè)計(jì)算流體力學(xué)軟件來(lái)完成數(shù)值模擬。商業(yè)CFD軟件一般均能推出多種優(yōu)化的物理模型,其應(yīng)用范圍十分廣泛,但是商業(yè)軟件自身的弱點(diǎn)也十分明顯,如商業(yè)CFD軟件需要昂貴的使用費(fèi)及軟件維護(hù)費(fèi)等。另外,使用商業(yè)軟件也就意味著我們沒(méi)有自己的知識(shí)產(chǎn)權(quán),這與我國(guó)發(fā)展自主創(chuàng)新的科技思路不符。而OpenFOAM是由英國(guó)帝國(guó)理工大學(xué)開(kāi)發(fā),采用高效C++編寫(xiě)的面向?qū)ο蟮挠?jì)算流體力學(xué)開(kāi)源代碼程序庫(kù),由此構(gòu)成一系列高效的求解器及輔助工具。OpenFOAM采用類(lèi)似于我們?nèi)粘A?xí)慣的方法在軟件中描述偏微分方程,即它和目前大部分的商業(yè)CFD軟件一樣采用有限體積法對(duì)偏微分方程進(jìn)行求解。另外,OpenFOAM的開(kāi)放性、完全面向?qū)ο蟮某绦蛟O(shè)計(jì)和完善的分層框架構(gòu)建,使應(yīng)用者花費(fèi)較少的時(shí)間便可開(kāi)發(fā)自己的數(shù)值模型和求解器,是進(jìn)行CFD技術(shù)研究和新數(shù)值方法開(kāi)發(fā)的良好平臺(tái)。 投影算法在最先提出時(shí)只能用于求解流體的非穩(wěn)態(tài)流動(dòng)。由于該算法求解的壓力泊松方程而非壓力修正方程,使其在并行計(jì)算中具有很高的計(jì)算效率。經(jīng)過(guò)各國(guó)研究人員的不懈努力,使投影算法的應(yīng)用范圍及求解精度等已經(jīng)得到全面的擴(kuò)大和提升。近幾年,投影算法在不可壓縮直接數(shù)值模擬及大渦模擬中得到大量的應(yīng)用。隨著高性能計(jì)算機(jī)的發(fā)展,直接數(shù)值模擬及大渦模擬將成為未來(lái)工程應(yīng)用及科研發(fā)展的主要方向,因此,,在OpenFOAM平臺(tái)上開(kāi)發(fā)相關(guān)投影算法求解器具有很重要的意義。 本文基于OpenFOAM開(kāi)發(fā)平臺(tái)(其本身也是一款計(jì)算流體力學(xué)軟件),將已有的穩(wěn)態(tài)湍流求解器simpleFoam修改為瞬態(tài)層流求解器及可應(yīng)用大渦模型的瞬態(tài)湍流求解器,以及開(kāi)發(fā)與投影算法相關(guān)的一系列瞬態(tài)層流求解器。文中講解了所用的各種投影算法的求解或推導(dǎo)過(guò)程,并在第三章對(duì)所修改及所開(kāi)發(fā)的求解器與OpenFOAM自帶求解器在相應(yīng)求解模型下的求解結(jié)果進(jìn)行比較,以驗(yàn)證它們的可用性、求解精度及求解效率。第四章給出了商業(yè)CFD軟件FLUENT及CFX與開(kāi)源軟件OpenFOAM在層流模型下的對(duì)比,目的在于驗(yàn)證OpenFOAM相對(duì)于商業(yè)CFD軟件所具有的求解精度及求解效率。 根據(jù)數(shù)值模擬的結(jié)果可知,本次對(duì)OpenFOAM自帶穩(wěn)態(tài)湍流求解器的修改是成功的,這在一定程度上擴(kuò)大了OpenFOAM的應(yīng)用范圍。另外,對(duì)于在OpenFOAM平臺(tái)上開(kāi)發(fā)的投影算法求解器,它們不但具有良好的求解精度,還具有較好的求解效率,這使得OpenFOAM成為集SIMPLE算法、PISO算法、PIMPLE算法、PROJECTION算法的多種數(shù)值求解方法于一體的開(kāi)源CFD軟件。通過(guò)在OpenFOAM平臺(tái)上修改算法求解器和開(kāi)發(fā)投影算法求解器并進(jìn)行相關(guān)數(shù)值計(jì)算,這對(duì)以后OpenFOAM平臺(tái)的開(kāi)發(fā)及研究具有重要的指導(dǎo)作用。
[Abstract]:At present, commercial computational fluid dynamics software is mainly used in industrial applications to complete numerical simulation. Commercial CFD software can generally deduce a variety of optimized physical models, and its application is very wide. But the weakness of commercial software itself is also very obvious, such as commercial CFD software needs expensive royalties and software maintenance fees. In addition, the use of commercial software also means that we do not have their own intellectual property rights. This is not in line with the idea of developing independent innovation in our country, and OpenFOAM is an object-oriented open source code library of computational fluid dynamics developed by Imperial University of Technology and written with efficient C #. This constitutes a series of efficient solvers and auxiliary tools. OpenFOAM uses a method similar to our daily habits to describe partial differential equations in software. That is to say, it uses finite volume method to solve partial differential equations just like most commercial CFD software at present. In addition, it is open to OpenFOAM. Complete object-oriented programming and complete hierarchical framework construction, so that the application can spend less time to develop their own numerical model and solver. It is a good platform for the research of CFD technology and the development of new numerical method. The projection algorithm can only be used to solve the unsteady flow of fluid in the first place, because of the pressure Poisson equation and not the pressure correction equation. Through the unremitting efforts of researchers all over the world, the range of application and accuracy of projection algorithm have been comprehensively expanded and improved. Projection algorithm has been widely used in incompressible direct numerical simulation and large eddy simulation. Direct numerical simulation and large eddy simulation will be the main directions of engineering application and scientific research in the future. Therefore, it is very important to develop the related projection algorithm on OpenFOAM platform. This paper is based on the OpenFOAM development platform (which is also a computational fluid dynamics software). The existing steady state turbulence solver (simpleFoam) is modified to transient laminar flow solver and transient turbulence solver which can be applied to large eddy model. And a series of transient laminar flow solvers related to the projection algorithm are developed. In the third chapter, the results of the modified and developed solvers are compared with those of OpenFOAM's own solver in order to verify their availability. Chapter 4th gives the comparison between commercial CFD software FLUENT and CFX and open source software OpenFOAM under laminar flow model. The purpose of this paper is to verify the accuracy and efficiency of OpenFOAM compared with commercial CFD software. According to the results of numerical simulation, the modification of OpenFOAM self-contained steady state turbulence solver is successful, which extends the application of OpenFOAM to a certain extent. For the projective algorithm solver developed on OpenFOAM platform, they not only have good accuracy, but also have good efficiency. This makes OpenFOAM a set of SIMPLE algorithm / PISO algorithm / simple algorithm. Open source CFD software with various numerical solutions for PROJECTION algorithm. By modifying the algorithm solver and developing the projection algorithm solver on the OpenFOAM platform and carrying out the correlation number. Value calculation. This will be an important guide to the development and research of OpenFOAM platform in the future.
【學(xué)位授予單位】:杭州電子科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類(lèi)號(hào)】:TP319;TP301.6
【參考文獻(xiàn)】
相關(guān)期刊論文 前5條
1 查晶晶;萬(wàn)德成;;用OpenFOAM實(shí)現(xiàn)數(shù)值水池造波和消波[J];海洋工程;2011年03期
2 周連第;船舶與海洋工程計(jì)算流體力學(xué)的研究進(jìn)展與應(yīng)用[J];空氣動(dòng)力學(xué)學(xué)報(bào);1998年01期
3 馬玉輝;田夫;王曉放;;基于OpenFOAM的旋轉(zhuǎn)彎曲通道內(nèi)流動(dòng)的數(shù)值模擬[J];科學(xué)技術(shù)與工程;2010年16期
4 殷亮;何嘉鵬;李維;陳麗萍;程建杰;魏玲;;有體積熱源的矩形空腔內(nèi)層流自然對(duì)流的數(shù)值模擬[J];南京工業(yè)大學(xué)學(xué)報(bào)(自然科學(xué)版);2007年06期
5 傅曉英,劉俊,許劍峰,羅麟;計(jì)算流體力學(xué)在城市規(guī)劃設(shè)計(jì)中的應(yīng)用研究[J];四川大學(xué)學(xué)報(bào)(工程科學(xué)版);2002年06期
本文編號(hào):1444445
本文鏈接:http://sikaile.net/falvlunwen/zhishichanquanfa/1444445.html
最近更新
教材專(zhuān)著