A CFD Tutorial in Julia: Introduction to Compressible Laminar Boundary-Layer Flows
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 numer...
Guardado en:
Autores principales: | , |
---|---|
Formato: | article |
Lenguaje: | EN |
Publicado: |
MDPI AG
2021
|
Materias: | |
Acceso en línea: | https://doaj.org/article/21ed8a7d9e9f4eaf8a9fcc20775c178d |
Etiquetas: |
Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
|
id |
oai:doaj.org-article:21ed8a7d9e9f4eaf8a9fcc20775c178d |
---|---|
record_format |
dspace |
spelling |
oai:doaj.org-article:21ed8a7d9e9f4eaf8a9fcc20775c178d2021-11-25T17:31:40ZA CFD Tutorial in Julia: Introduction to Compressible Laminar Boundary-Layer Flows10.3390/fluids61104002311-5521https://doaj.org/article/21ed8a7d9e9f4eaf8a9fcc20775c178d2021-11-01T00:00:00Zhttps://www.mdpi.com/2311-5521/6/11/400https://doaj.org/toc/2311-5521A 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 <inline-formula><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><semantics><mrow><mi>f</mi><mi>o</mi><mi>r</mi></mrow></semantics></math></inline-formula> 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.Furkan OzKursat KaraMDPI AGarticleCFDboundary-layercompressible flowJuliaMATLABsimilarity solutionThermodynamicsQC310.15-319Descriptive and experimental mechanicsQC120-168.85ENFluids, Vol 6, Iss 400, p 400 (2021) |
institution |
DOAJ |
collection |
DOAJ |
language |
EN |
topic |
CFD boundary-layer compressible flow Julia MATLAB similarity solution Thermodynamics QC310.15-319 Descriptive and experimental mechanics QC120-168.85 |
spellingShingle |
CFD boundary-layer compressible flow Julia MATLAB similarity solution Thermodynamics QC310.15-319 Descriptive and experimental mechanics QC120-168.85 Furkan Oz Kursat Kara A CFD Tutorial in Julia: Introduction to Compressible Laminar Boundary-Layer Flows |
description |
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 <inline-formula><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><semantics><mrow><mi>f</mi><mi>o</mi><mi>r</mi></mrow></semantics></math></inline-formula> 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. |
format |
article |
author |
Furkan Oz Kursat Kara |
author_facet |
Furkan Oz Kursat Kara |
author_sort |
Furkan Oz |
title |
A CFD Tutorial in Julia: Introduction to Compressible Laminar Boundary-Layer Flows |
title_short |
A CFD Tutorial in Julia: Introduction to Compressible Laminar Boundary-Layer Flows |
title_full |
A CFD Tutorial in Julia: Introduction to Compressible Laminar Boundary-Layer Flows |
title_fullStr |
A CFD Tutorial in Julia: Introduction to Compressible Laminar Boundary-Layer Flows |
title_full_unstemmed |
A CFD Tutorial in Julia: Introduction to Compressible Laminar Boundary-Layer Flows |
title_sort |
cfd tutorial in julia: introduction to compressible laminar boundary-layer flows |
publisher |
MDPI AG |
publishDate |
2021 |
url |
https://doaj.org/article/21ed8a7d9e9f4eaf8a9fcc20775c178d |
work_keys_str_mv |
AT furkanoz acfdtutorialinjuliaintroductiontocompressiblelaminarboundarylayerflows AT kursatkara acfdtutorialinjuliaintroductiontocompressiblelaminarboundarylayerflows AT furkanoz cfdtutorialinjuliaintroductiontocompressiblelaminarboundarylayerflows AT kursatkara cfdtutorialinjuliaintroductiontocompressiblelaminarboundarylayerflows |
_version_ |
1718412211477544960 |