Uploaded November 2017 | Updated September 2026, 2 weeks ago
In this video, we will create a rectangular, structure mesh that can be used in a CFD simulation. This is also called a transfinite mesh. In this particular video, we will be sticking with a simple rectangle defined by 4 points, defining a single zone. In my next video, we will add an extra point along one of the sides so that we can change the grid density along that side (see video below).
If you're interested in how to use this mesh in a CFD simulation, stay tuned for some future videos.
===== GMSH AND SU2 =====
→ gmsh.info
→ su2code.github.io
===== RELEVANT VIDEOS =====
→ Gmsh: Unstructured Rectangular
goo.gl/5cqz5f
→ Gmsh: Structured (Transfinite) Rectangular Double Zone
goo.gl/RAebxS
===== NOTES =====
► For this video, I was using version 2.13.2
► The newest stable version is currently 3.0.6, and may behave slightly differently than seen in this video
===== REFERENCES =====
► Tutorial by Matthew MacLean
In this video, we will create a rectangular, structure mesh that can be used in a CFD simulation. This is also called a transfinite mesh. In this particular video, we will be sticking with a simple rectangle defined by 4 points, defining a single zone. In my next video, we will add an extra point along one of the sides so that we can change the grid density along that side (see video below).
If you're interested in how to use this mesh in a CFD simulation, stay tuned for some future videos.
===== GMSH AND SU2 =====
→ gmsh.info
→ su2code.github.io
===== RELEVANT VIDEOS =====
→ Gmsh: Unstructured Rectangular
goo.gl/5cqz5f
→ Gmsh: Structured (Transfinite) Rectangular Double Zone
goo.gl/RAebxS
===== NOTES =====
► For this video, I was using version 2.13.2
► The newest stable version is currently 3.0.6, and may behave slightly differently than seen in this video
===== REFERENCES =====
► Tutorial by Matthew MacLean



![Calculating Stoichiometric Fuel-to-Air Ratio
How do you calculate the stoichiometric fuel-to-air ratio for a given fuel? In this video, Ill walk through how to balance the stoichiometric global reaction, and then go through an example for n-decane (C10H22), finally solving for the stoichiometric fuel-to-air ratio.
This fuel-to-air ratio will be important for my future videos on jet engine analysis.
THUMBNAIL CREDIT
By Olivier Cleynen (Own work) [CC BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons Calculating Stoichiometric Fuel-to-Air Ratio](https://i.ytimg.com/vi/P4aV1qbnXMs/mqdefault.jpg)
![Explained: Linspace [MATLAB]
In this video I show you how to use the linspace function in MATLAB to easily create arrays. Explained: Linspace [MATLAB]](https://i.ytimg.com/vi/PA4hJy48eJw/mqdefault.jpg)


![How To: Find Mach Number from a Picture (Part 3)
Want to look at a picture of a bullet/plane/etc. and be able to approximate the Mach number? In the previous videos on this topic (linked to below), I showed three different methods of approximating the Mach number from angles measured in a Schlieren image.
Part 1:
https://goo.gl/50saau
Part 2:
https://goo.gl/gqK19N
For this video, I have updated my Taylor-Maccoll code such that it takes the shock angle and cone angle as inputs (I find them using the Measure Tool from GIMP), and computes the freestream Mach number. This is best way to approximate the Mach number from an image (for conical flow).
I will be explaining and posting my code that I used here in a future video, when I get around to finishing up the derivation of the Taylor-Maccoll equation. If you want to be notified of future videos, please subscribe to my channel.
Photo Credits:
School of Aerospace, Mechanical and Mechatronic Engineering
University of Sydney, 1998-2004
By NASA Glenn Research Center [Public domain], via Wikimedia Commons
NASA photo
http://www.nasa.gov/centers/armstrong/features/shock_and_awesome.html How To: Find Mach Number from a Picture (Part 3)](https://i.ytimg.com/vi/QNcOo5WCR6Q/mqdefault.jpg)
![Explained: NACA 4-Digit Airfoil MATLAB Code [Airplanes]
This video goes through a step-by-step description of the coding of a program to calculate the coordinates of a NACA 4-digit airfoil.
If you would like to know where the equations come from, please see my previous video, located here:
http://goo.gl/FcufZh
To download a GUI I made from this code, visit my GitHub linked to here:
https://github.com/jte0419/NACA_4_Digit_Airfoil Explained: NACA 4-Digit Airfoil MATLAB Code [Airplanes]](https://i.ytimg.com/vi/QezOan1pVgs/mqdefault.jpg)

![Explained: How I Set Up MATLAB Scripts [MATLAB]
In this video I show how I personally set up a MATLAB script before I begin any coding. The title of the code can be more descriptive than the actual name of the file. I like to include who wrote the code. This isnt necessarily important if youre the only one accessing your code, but if you write code in a framework with other people, this helps indicate who actually started the file.
The started and updated dates are important, especially if you have multiple versions of the code (e.g. Code_v1.m and Code_v2.m) because it will help you keep track of changes. I have (dated) notebooks in which I derive the math behind some of my codes, so I can easily compare last update of the code with my notes from that day.
Commenting your code is extremely important! Dont neglect to comment just because you think youll remember what you did. If you write enough code, you WILL forget why you wrote something the way you did, and comments help tremendously.
Code folding and selective execution (using ctrl+enter) can be very convenient when you want to run just a single section of code. I forgot to mention this in the video, but you can also select the code you want to run with your mouse, and then press f9. Im a sucker for code folded sections though. Explained: How I Set Up MATLAB Scripts [MATLAB]](https://i.ytimg.com/vi/SJ7z7fHpxM8/mqdefault.jpg)