簡易檢索 / 詳目顯示

研究生: 陳聖崴
Chen, Sheng-Wei
論文名稱: 應用GPU平行化運算結合平衡通量法於真實氣體
Development of the Combined Equilibrium Flux Method for real gas flows using GPU
指導教授: 李汶樺
Matthew R. Smith
學位類別: 碩士
Master
系所名稱: 工學院 - 機械工程學系
Department of Mechanical Engineering
論文出版年: 2018
畢業學年度: 106
語文別: 英文
論文頁數: 114
中文關鍵詞: 平行運算有限體積法計算流體力學平衡通量法多重圖形處理統一計算架構
外文關鍵詞: Parallel Computing, Finite Volume Method, Computational Fluid Dynamics, Equilibrium Flux method, Graphics Processing Unit, Compute Unified Device Architecture
相關次數: 點閱:132下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 為了求解Euler(尤拉)方程式所統御之流動現象,本研究中提出一新方法根據有限體積法(FVM)所求解,稱為結合平衡通量法(Combined Equilibrium Flux Method, CEFM)。其包含了平衡通量法(Equilibrium Flux Method, EFM)和平衡介面法(Equilibrium Interface Method, EIM)。結合平衡通量法(CEFM)利用薩瑟蘭方法(Sutherland's law)計算鬆弛係數(relaxation term),並用來提高EFM的精準度以及EIM的穩定性. 此研究中將此方法進一步的拓展到二階空間上的精準度,利用通量限制器(flux limiter) 避免空間上所產生的非物理震盪。同時運用牛頓-拉弗森方法(Newton-Raphson method)將熱完全氣體(Thermally perfect gas)在模擬中測試。
    由於在計算流體力學(CFD)模擬當中,為了獲得更精確的結果,所需耗費的計算成本也隨之增加。本研究利用多重統一計算架構(CUDA)與輝達(Nvidia)的圖型處理器(GPU)建立平行計算的架構,達到利用平行運算降低計算成本的目的。為了驗證此方法的可行性以及平行計算的效率,本研究利用基準問題來做測試,像是一維震波管,二維爆炸波,二維尤拉四面波交互作用,高速流過障礙物和階梯問題等。本研究所採用的設備為單核心英特爾i5-4690以及圖形處理器GTX Titan Black.

    In order to solving the governing equation such as Euler and Navier-Stokes equations for non-ideal (real) gases, we propose a method, namely the “CEFM (combined equilibrium flux method)” which combines two existing equilibrium methods, specifically EFM (equilibrium flux method) and EIM (equilibrium interface method). The core of the method lies in the relaxation from one method to the other using a local relaxation time. In this study, we use Sutherland's law to calculate the viscosity and according relaxation, which then provides the interface flux for each cell surface. Through this approach, we demonstrate that we improve the accuracy the results over the EFM method while also demonstrating increased robustness over the EIM sachem. To further increase accuracy, we reduce spatial truncation error through the extension of CEFM method to second order spatial accuracy using a Total Variable Diminishing (TVD) approach. Accordingly, flux limiters are employed to avoid non-physical space over the space. Furthermore, the solver models real gases - specifically, thermally perfect gas - through the use of non-linear specific heat capacities, solving temperature from energy using the Newton-Raphson method.
    For the sake of obtaining a precise solution, such methods often require large computational cost, and Computational Fluid Dynamics (CFD) approaches such as these are no exception. Hence, we utilize Nvidia’s Graphics Processing (GPU) and CUDA to reduce the computational time through the implementation of a parallel explicit solver. In order to verify the validity of CEFM method and the parallel efficiency, several benchmarks including the one-dimensional shock tube problem, two-dimensional blast wave, flow past bluff body, Euler four contact and Forward Facing Step Problem are tested. The results show that the method provides a suitable balance between the EFM and EIM methods while obtaining a speedup (on average) of approximately 1000x that of a single CPU core when using an Intel i5-4690 and a GTX Titan Black.

    Acknowledgements v Content vi List of Tables viii List of figures x Chapter 1 Introduction 1 1.1 Background and Motivation 1 1.2 Governing Equation 2 1.2.1 Conservation Equation and Continuity Equation 2 1.2.2 Boltzmann Equation 4 1.2.3 Navier-stokes and Euler equation 5 1.3 Finite Volume Methods 7 1.3.1 CFL number 9 1.4 High Resolution Schemes 10 1.4.1 Total Variation Diminishing Scheme and flux limiters 10 1.5 Riemann problems 12 1.5.1 Elementary wave solutions of the Riemann problem 13 1.5.2 Analytical solution for Riemann problem 17 1.6 The Equilibrium Flux method 18 1.7 The Equilibrium Interface Method 21 1.8 Parallel computing Theory 23 1.8.1 Speed up of a GPU program 25 1.9 Graphics Processing Unit (GPU) 25 1.9.1 GPU memory 26 1.9.2 GPU Architecture and CUDA thread, block and grid 27 1.9.3 Compute Capability 29 1.9.4 CUDA API 30 1.9.5 CUDA Compiler 31 Chapter 2 Methodology 33 2.1 Combined equilibrium flux method 33 2.1.1 Algorithm of CEFM method 35 2.2 Thermally perfect gas 36 2.3 Second order spatial accuracy 38 2.4 GPU parallelization 40 2.4.1 Memory Management 40 2.4.2 GPU Kernels launched by CPU 42 2.4.3 CEFM Implementation 43 Chapter 3 Results and discuss 44 3.1 One-dimensional Shock Tube Problem 44 3.2 Two-dimensional Blast wave simulation 46 3.3 Supersonic Flow past bluff body test 47 3.4 Euler four contacts Interaction 48 3.5 Forward Facing Step Problem 50 3.6 Analysis of Parallel Performance 51 Chapter 4 Conclusion 53 Tables 55 Figure. 70 Reference 112

    [1] A. Harten, P. D. Lax, and B. v. Leer, "On upstream differencing and Godunov-type schemes for hyperbolic conservation laws," SIAM review, vol. 25, pp. 35-61, 1983.
    [2] D. Pullin, "Direct simulation methods for compressible inviscid ideal-gas flow," Journal of Computational Physics, vol. 34, pp. 231-244, 1980.
    [3] S. Deshpande, "Kinetic theory based new upwind methods for inviscid compressible flows," in 24th Aerospace Sciences Meeting, 1986, p. 275.
    [4] K. H. Prendergast and K. Xu, "Numerical hydrodynamics from gas-kinetic theory," Journal of Computational Physics, vol. 109, pp. 53-66, 1993.
    [5] K. Xu, L. Martinelli, and A. Jameson, "Gas-kinetic finite volume methods, flux-vector splitting, and artificial diffusion," Journal of Computational Physics, vol. 120, pp. 48-65, 1995.
    [6] C. Cercignani, Theory and application of the Boltzmann equation: Scottish Academic Press, 1975.
    [7] G. Bird, "Direct simulation and the Boltzmann equation," The Physics of Fluids, vol. 13, pp. 2676-2681, 1970.
    [8] P. Rosenau, "Extending hydrodynamics via the regularization of the Chapman-Enskog expansion," Physical Review A, vol. 40, p. 7193, 1989.
    [9] G. Galdi, An introduction to the mathematical theory of the Navier-Stokes equations: Steady-state problems: Springer Science & Business Media, 2011.
    [10] C. Hirsch, "Numerical computation of internal and external flows: The fundamentals of computational fluid dynamics," ed: Butterworth-Heinemann London, 2007.
    [11] M. R. Smith, "True Direction Equilibrium Flux Method and its Application," 2008.
    [12] P. Roe, "A brief introduction to high-resolution schemes," in Upwind and high-resolution schemes, ed: Springer, 1997, pp. 9-28.
    [13] A. Harten, "High resolution schemes for hyperbolic conservation laws," Journal of computational physics, vol. 49, pp. 357-393, 1983.
    [14] P. K. Sweby, "High resolution schemes using flux limiters for hyperbolic conservation laws," SIAM journal on numerical analysis, vol. 21, pp. 995-1011, 1984.
    [15] B. Van Leer, "Towards the ultimate conservative difference scheme III. Upstream-centered finite-difference schemes for ideal compressible flow," Journal of Computational Physics, vol. 23, pp. 263-275, 1977.
    [16] B. Van Leer, "Towards the ultimate conservative difference scheme. II. Monotonicity and conservation combined in a second-order scheme," Journal of computational physics, vol. 14, pp. 361-370, 1974.
    [17] R. J. LeVeque, Finite volume methods for hyperbolic problems vol. 31: Cambridge university press, 2002.
    [18] E. F. Toro, Riemann solvers and numerical methods for fluid dynamics: a practical introduction: Springer Science & Business Media, 2013.
    [19] M. Macrossan, "The equilibrium flux method for the calculation of flows with non-equilibrium chemical reactions," Journal of Computational Physics, vol. 80, pp. 204-231, 1989.
    [20] M. Macrossan and R. Oliver, "A kinetic theory solution method for the Navier–Stokes equations," International journal for numerical methods in fluids, vol. 17, pp. 177-193, 1993.
    [21] M. J. Flynn, "Very high-speed computing systems," Proceedings of the IEEE, vol. 54, pp. 1901-1909, 1966.
    [22] J. Cheng, M. Grossman, and T. McKercher, Professional Cuda C Programming: John Wiley & Sons, 2014.
    [23] L. Barichello, M. Camargo, P. Rodrigues, and C. Siewert, "Unified solutions to classical flow problems based on the BGK model," Zeitschrift für angewandte Mathematik und Physik ZAMP, vol. 52, pp. 517-534, 2001.
    [24] K. Xu, "A gas-kinetic BGK scheme for the Navier–Stokes equations and its connection with artificial dissipation and Godunov method," Journal of Computational Physics, vol. 171, pp. 289-335, 2001.
    [25] T. Tao and K. Xu, "Gas-kinetic schemes for the compressible Euler equations: positivity-preserving analysis," Zeitschrift für angewandte Mathematik und Physik ZAMP, vol. 50, pp. 258-281, 1999.
    [26] M. N. Macrossan, "A fast simulation method with arbitrary viscosity law," in AIP Conference Proceedings, 2005, pp. 692-700.
    [27] M. N. Macrossan, "ν-DSMC: a fast simulation method for rarefied flow," Journal of Computational Physics, vol. 173, pp. 600-619, 2001.
    [28] W. Sutherland, "LII. The viscosity of gases and molecular force," The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, vol. 36, pp. 507-531, 1893.
    [29] C. Canuto, A. Quarteroni, M. Y. Hussaini, and T. A. Zang, Fundamentals of Fluid Dynamics: Springer, 2007.
    [30] B. J. McBride and S. Gordon, "Computer program for calculating and fitting thermodynamic functions," 1992.
    [31] G. A. Sod, "A survey of several finite difference methods for systems of nonlinear hyperbolic conservation laws," Journal of computational physics, vol. 27, pp. 1-31, 1978.
    [32] L. I. Sedov, Similarity and dimensional methods in mechanics: CRC press, 1993.
    [33] C. W. Schulz-Rinne, J. P. Collins, and H. M. Glaz, "Numerical solution of the Riemann problem for two-dimensional gas dynamics," SIAM Journal on Scientific Computing, vol. 14, pp. 1394-1414, 1993.
    [34] A. F. Emery, "An evaluation of several differencing methods for inviscid fluid flow problems," Journal of Computational Physics, vol. 2, pp. 306-331, 1968.
    [35] P. Woodward and P. Colella, "The numerical simulation of two-dimensional fluid flow with strong shocks," Journal of computational physics, vol. 54, pp. 115-173, 1984.
    [36] W. A. Keats and F. S. Lien, "Two‐dimensional anisotropic Cartesian mesh adaptation for the compressible Euler equations," International Journal for Numerical Methods in Fluids, vol. 46, pp. 1099-1125, 2004.
    [37] M. Pandolfi and D. D'Ambrosio, "Numerical instabilities in upwind methods: analysis and cures for the “carbuncle” phenomenon," Journal of Computational Physics, vol. 166, pp. 271-301, 2001.
    [38] Nvidia, “CUDA Compiler Driver NVCC”, Reference Guide, NVIDIA Coporation, 2018

    無法下載圖示 校內:2022-06-14公開
    校外:不公開
    電子論文尚未授權公開,紙本請查館藏目錄
    QR CODE