A CFD Tutorial in Julia: Introduction to Compressible Laminar Boundary-Layer Flows

被引:16
作者
Oz, Furkan [1 ]
Kara, Kursat [1 ]
机构
[1] Oklahoma State Univ, Sch Mech & Aerosp Engn, Stillwater, OK 74078 USA
关键词
CFD; boundary-layer; compressible flow; Julia; MATLAB; similarity solution; STABILITY;
D O I
10.3390/fluids6110400
中图分类号
O3 [力学];
学科分类号
08 ; 0801 ;
摘要
A boundary-layer is a thin fluid layer near a solid surface, and viscous effects dominate it. The laminar boundary-layer calculations appear in many aerodynamics problems, including skin friction drag, flow separation, and aerodynamic heating. A student must understand the flow physics and the numerical implementation to conduct successful simulations in advanced undergraduate- and graduate-level fluid dynamics/aerodynamics courses. Numerical simulations require writing computer codes. Therefore, choosing a fast and user-friendly programming language is essential to reduce code development and simulation times. Julia is a new programming language that combines performance and productivity. The present study derived the compressible Blasius equations from Navier-Stokes equations and numerically solved the resulting equations using the Julia programming language. The fourth-order Runge-Kutta method is used for the numerical discretization, and Newton's iteration method is employed to calculate the missing boundary condition. In addition, Burgers', heat, and compressible Blasius equations are solved both in Julia and MATLAB. The runtime comparison showed that Julia with for loops is 2.5 to 120 times faster than MATLAB. We also released the Julia codes on our GitHub page to shorten the learning curve for interested readers.
引用
收藏
页数:21
相关论文
共 49 条
[1]  
Anderson J. D., 2013, Computational Fluid Dynamics: An Introduction
[2]   Ludwig Prandtl's bounyary layer [J].
Anderson, JD .
PHYSICS TODAY, 2005, 58 (12) :42-48
[3]  
Anderson JD., 2010, FUNDAMENTALS AERODYN
[4]  
[Anonymous], 2006, GUIDE NUMPY
[5]  
[Anonymous], 2010, VERS 7 10 0 R2010A
[6]  
Barba Lorena, 2018, Journal of Open Source Education, V2, P21, DOI [DOI 10.21105/JOSE.00021, 10.21105/jose.00021]
[7]   Julia: A Fresh Approach to Numerical Computing [J].
Bezanson, Jeff ;
Edelman, Alan ;
Karpinski, Stefan ;
Shah, Viral B. .
SIAM REVIEW, 2017, 59 (01) :65-98
[8]   Intra-uterine particle-fluid motion through a compliant asymmetric tapered channel with heat transfer [J].
Bhatti, M. M. ;
Alamri, Sultan Z. ;
Ellahi, R. ;
Abdelsalam, Sara I. .
JOURNAL OF THERMAL ANALYSIS AND CALORIMETRY, 2021, 144 (06) :2259-2267
[9]  
Blasius H., 1908, Z MATH PHYS, V56, P1, DOI DOI 10.1063/1.1715007
[10]   Tollmien-Schlichting wave cancellation via localised heating elements in boundary layers [J].
Brennan, G. S. ;
Gajjar, J. S. B. ;
Hewitt, R. E. .
JOURNAL OF FLUID MECHANICS, 2021, 909