本文主要研究以物件導向程式語言C++為基礎,建立一套計算流體動力學(Computational Fluid Dynamics, CFD)中迭代求解壓力場及速度分布的運算子分裂的壓力隱式算法(Pressure Implicit with Splitting of Operator, PISO)。所採用的數值計算方法為現今廣泛應用的有限體積法(Finite Volume Method, FVM),其主要用來求解瞬態不可壓縮流體動力學問題。本研究最大之特點在於整體程式架構之設計乃結合FVM與PISO方法之基本觀念與演算程序設計而成,因此將程式類別主要分成三大部份,分別為流場 (Field)類別與壓力控制容積(Pressure-Control Volume)與及速度控制容積(Velocity-Control Volume),其中速度控制容積類別又可分為u控制容積(u-Control Volume)、v控制容積(v-Control Volume)及w控制容積(w-Control Volume)三個方向速度分量之類別。為了詳細說明各類別之內容與類別間關係,採用統一建模語言UML(Unified Modeling Language)來說明整個程式架構設計與運作流程,此外為了瞭解程式演算程序之正確性,進行流體熱傳導之數值算例的分析,經由運算結果可知,有限體積法解出的數值解精確度非常高。
In this study, a new framework for the computational fluid dynamics (CFD) using the object-oriented programming language C++ is developed. The CFD method is pressure implicit with splitting of operator (PISO) algorithm. It is the finite volume method (FVM), and can be used to solve the transient incompressible fluid dynamics. The largest feature of this study, the overall framework design is combined with basic concepts of the FVM and the PISO method. The framework is divided into the flow field (Field) class, the pressure control volume (Pressure-control volume) class and the velocity control volume (velocity-control volume) class, respectively. In addition, the velocity control volume class can be divided into the u-control volume class, the v-control volume class and the w-control volume class, respectively. In order to describe the class contents and relationships, the unified modeling language (UML) is adopted. According to the numerical results of the heat flow analysis, it can prove that the framework is the effective and accurate for the analysis of the transient incompressible fluid dynamic responses.