A cfd tutorial in julia: Introduction to compressible laminar boundary-layer flows

Furkan Oz, Kursat Kara

Research output: Contribution to journalArticlepeer-review

14 Scopus citations

Abstract

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 f or 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.

Original languageEnglish
Article number400
JournalFluids
Volume6
Issue number11
DOIs
StatePublished - Nov 2021
Externally publishedYes

Keywords

  • Boundary-layer
  • CFD
  • Compressible flow
  • Julia
  • MATLAB
  • Similarity solution

Fingerprint

Dive into the research topics of 'A cfd tutorial in julia: Introduction to compressible laminar boundary-layer flows'. Together they form a unique fingerprint.

Cite this