Code
Fig. 1, Temperature distribution |
Thank you for reading! If you want to hire me as a post-doc researcher in the fields of thermo-fluids and / or fracture mechanics, do reach out!
I write about Propulsion, Aerodynamics and Renewable Energy (Wind/Hydro Turbines).
Fig. 1, Temperature distribution |
After the tremendous success of 13th Step (thanks to the two people who read it, don't understand why they even bothered? 😂) The 14th step now exists! This case is called the case of flow around an obstacle! Like a box. ⬜ This is an unofficial continuation to this. If I get it approved by Dr. Barba, then it will be official. The original series is in Python but I coded this in MATLAB without using many MATLAB specific functions so the code can be translated to other programing languages 🖧 quite easily 😊.
In terms of validation, Strouhal number is at 0.145 [1-4] for flow around a square cylinder at Re 100. This code gives St of 0.141. 🤓 Fig. 1 shows results from the code.
Fig. 1, Post processing |
Fahad Butt (2024). Flow Around Square Cylinder (https://fluiddynamicscomputer.blogspot.com/), Blogger. Retrieved Month Date, Year
Copyright <2024> <Fahad Butt>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Indeed, the 13th step now exists! This case is called the case of the backward facing step (BFS)! ⬜ This is an unofficial continuation to this. If I get it approved by Dr. Barba, then it will be official. The original series is in Python but I coded this in MATLAB without using many MATLAB specific functions so the code can be translated to other programing languages 🖧 quite easily.
Without Bumps
|
||
Air Speed in Km/h
|
Down Force in N
|
Drag in N
|
120
|
98.682
|
33.234
|
110
|
82.88
|
27.957
|
100
|
68.266
|
23.02
|
90
|
55.299
|
18.668
|
80
|
43.529
|
14.697
|
70
|
33.284
|
11.255
|
60
|
24.438
|
8.272
|
50
|
16.982
|
5.769
|
40
|
10.83
|
3.688
|
30
|
6.08
|
2.081
|
20
|
2.681
|
0.929
|
10
|
0.648
|
0.235
|
With Bumps
|
||
Air Speed in Km/h
|
Down Force in N
|
Drag in N
|
120
|
108.238
|
30.47
|
110
|
90.599
|
25.549
|
100
|
74.818
|
21.047
|
90
|
60.423
|
17.014
|
80
|
47.695
|
13.443
|
70
|
36.441
|
10.27
|
60
|
26.682
|
7.532
|
50
|
18.504
|
5.228
|
40
|
11.82
|
3.352
|
30
|
6.613
|
1.886
|
20
|
2.909
|
0.841
|
10
|
0.685
|
0.211
|
Air Speed in Km/h
|
Percentage Less Drag
|
Percentage More Down Force
|
|
120
|
8.32
|
8.83
|
|
110
|
8.61
|
8.51
|
|
100
|
8.57
|
8.76
|
|
90
|
8.86
|
8.48
|
|
80
|
8.53
|
8.73
|
|
70
|
8.75
|
8.66
|
|
60
|
8.95
|
8.41
|
|
50
|
9.38
|
8.23
|
|
40
|
9.11
|
8.38
|
|
30
|
9.37
|
8.06
|
|
20
|
9.47
|
7.84
|
|
10
|
10.21
|
5.4
|
|