Skip to content

Commit 2713610

Browse files
committed
small layout and link updates
1 parent 7f6d00d commit 2713610

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

_tutorials/incompressible_flow/Inc_Turbulent_Bend/Inc_Turbulent_Bend.md

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ complexity: intermediate
1212
follows: Inc_Turbulent_Flat_Plate
1313
---
1414

15-
![Turb Bend Setup](/home/nijso/Codes/su2code.github.io/tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/yplus_001_3Dshot_with_mesh.png)
16-
15+
![Turb Bend Setup](../../tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/yplus_001_3Dshot_with_mesh.png)
1716

17+
Figure (1): impression of the 90 degree bend with velocity contours.
1818

1919
## Goals
2020

@@ -46,9 +46,9 @@ The configuration is a 90 degree bend with a diameter of D=0.104 m and a radius
4646

4747
The mesh consists of a structured mesh with 70k cells and 75k points. The mesh was created using Gmsh. The configuration file to create the mesh is ([sudo.geo](https://github.com/su2code/Tutorials/tree/master/incompressible_flow/Inc_Turbulent_Bend_Wallfunctions/sudo.geo)) and the only thing you need to do to create a mesh from the geometry is start Gmsh, and then load the .geo file. You will then see the geometry in the Gmsh visualization window. If you click on *Mesh->3D* the 3D mesh will be generated. You can then export the mesh as a .su2 file by choosing *File->Export*. The mesh will automatically be saved in su2 format when the filename has the extension .su2. In general, you should not choose *save all elements* because this will also save additional points that were used to construct the geometry but are not part of the final mesh, like for example the center of a circle.
4848

49-
![Turb sudo Mesh](/home/nijso/Codes/su2code.github.io/tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/Screenshot_gmsh.png)
49+
![Turb sudo Mesh](../../tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/Screenshot_gmsh.png)
5050

51-
Figure 2: Mesh generated by Gmsh, showing the cross-sectional block structured mesh.
51+
Figure (2): Mesh generated by Gmsh, showing the cross-sectional block structured mesh.
5252

5353
### Configuration File Options
5454

@@ -108,8 +108,8 @@ Your results should converge in around 1000 iterations.
108108

109109
### Results
110110

111-
![Turb Bend velocities](/home/nijso/Codes/su2code.github.io/tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/turb_bend_velocities.png)
112-
Figure 3: Velocity contour with location of the slices where experimental values were obtained.
111+
![Turb Bend velocities](../../tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/turb_bend_velocities.png)
112+
Figure (3): Velocity contour with location of the slices where experimental values were obtained.
113113

114114
The paraview multiblock file can now be visualized, and the result is shown in Figure (3). Shown is the velocity magnitude on the horizontal symmetry plane together with a number of contour plots at several vertical locations in the bend.
115115

@@ -118,12 +118,20 @@ The paraview multiblock file can now be visualized, and the result is shown in F
118118
In the experiment, the pipe bend was preceded by a very long straight pipe section with a length of 100D, ensuring that the turbulent flow is fully developed by the time it arrives at the pipe bend. In our simulations, we have only a straight section with a total length of 5D and constant inlet properties. We will now restart the simulation with an inlet profile that we extract from a slice of the pipe. It is a planar slice with the normal in the Z-direction, located at Z=2.5D from the inlet. Because in a multiblock mesh, nodes are duplicated on the boundary, so we first perform an *Extract Block* and select only the interior nodes. We then apply the slice on this extracted block. To keep the original quadrilateral cells, we de-select the option *triangulate slice*. Also make sure that the option *Merge duplicated points in the slice* is selected. In the information tab, you should see that the number points is 618, and we will check later that this corresponds with the number of nodes that SU2 expects in the inlet boundary file.
119119
Now save the slice data, making sure that only the slice is selected in the Pipeline Browser. Choose the .csv file format, and choose as _Arrays To Write_ only the variables *Omega*, *Pressure*, *Velocity* and *Turb_Kin_Energy*. The point coordinates are automatically saved. Also choose scientific notation with precision "6" to make sure that you have enough digits for the accurate interpolation of the inlet profile. A simple pvpython script is provided in the tutorials folder. This is a python script that you can run with paraview's pvpython command and it will generate an inlet.csv file for you :
120120

121-
```$ pvpython paraview_extract_slice_data.py```
121+
```
122+
$ pvpython paraview_extract_slice_data.py
123+
```
124+
125+
122126

123127
With python, matlab or a simple *awk* command it is easy to put the data in the correct format for the SU2 inlet profile. The awk command below reads the file *inlet.csv*, it assumes that the comma acts as a separator, it skips the first line (the header), and then prints the necessary columns and outputs it in the file inlet_test. We want symmetric data in the y-axis, so we check if the y-coordinate in column 2 is positive, and then we write this data for positive and negative y-coordinates. We write the data into the file *inlet_test*.
124128

129+
130+
125131
``` awk -F ',' '(NR>1) {if ($2>0.0) {printf ("%8f \t %8f \t %8f \t %6f \t %6f \t %6f \t %f \t %6f \t %6f \t %6f\n ", -$2,$3,-0.52,300.0, $9, 0.0, 0.0, 1.0, $6, $1);printf ("%8f \t %8f \t %8f \t %6f \t %6f \t %6f \t %f \t %6f \t %6f \t %6f\n ", $2,$3,-0.52,300.0, $9, 0.0, 0.0, 1.0, $6, $1)}}' inlet.csv > inlet_test ```
126132

133+
134+
127135
Now we setup SU2 to use an inlet boundary file. We change some configuration options. Locate and change the following options in the file:
128136

129137
```
@@ -132,36 +140,34 @@ SPECIFIED_INLET_PROFILE= YES
132140
INLET_FILENAME= inlet.dat
133141
```
134142

143+
144+
135145
The solution was saved as *restart.dat* and the filename used for the restart is named *solution.dat* (locate the option for the filenames in the config file!). You can simply copy the *restart.dat* file to *solution.dat* and restart the simulation with the above options. If you restart and the file *inlet.dat* is not present, SU2 will stop with the message
136146

137-
```
138-
Looked for: inlet.dat.
139-
Created a template profile file with default values named example_inlet.dat
140-
You can use this file as a guide for making your own profile specification.
141-
```
147+
``` Looked for: inlet.dat.```
148+
```Created a template profile file with default values named example_inlet.dat```
149+
```You can use this file as a guide for making your own profile specification.```
142150

143151
You will now have an example inlet profile saved in the file *example_inlet.dat*. You can now check that this file has 618 rows of data, for each of the nodes on the inlet plane. We only need the header (the first 5 lines of the file), so you can open the file, copy the first 5 lines, open the file *inlet_data* and add the 5 lines to the top of the file. You can now save this file as *inlet.dat* and restart the simulation.
144152

145153
### Results
146154

147155
We will now compare the simulation results of the pipe bend with results from the paper of *Sudo et al.* Some velocity measurements were performed at several locations in the pipe bend, and the location that we will use for comparison are shown in the figure below.
148156

149-
![Turb Bend velocities](/home/nijso/Codes/su2code.github.io/tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/bend_with_slice_locations.png)
157+
![Turb Bend velocities](../../tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/bend_with_slice_locations.png)
150158

151-
152-
153-
Figure 4: Pipe bend showing the location of the slices that will be used for comparison with measurements.
159+
Figure (4): Pipe bend showing the location of the slices that will be used for comparison with measurements.
154160

155161
Below are some of the contour plots taken at several locations in the pipe, showing the velocity normal to the plane with the isocontours in black. The top half are the simulation results and the bottom half are the experimental results from *Sudo et al (1998)*. We see that the main flow features are captured in the simulation.
156162

163+
![Turb Bend Contour1](../../tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/coarse_1.png)
157164

165+
![Turb Bend contour2](../../tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/coarse_2.png)
158166

159-
![Turb Bend Contour1](/home/nijso/Codes/su2code.github.io/tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/coarse_1.png)
160-
161-
167+
Figure (5): mean flow velocities in several pipe cross sections.
162168

163-
![Turb Bend contour2](/home/nijso/Codes/su2code.github.io/tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/coarse_2.png)
169+
Below is a comparison of the axial velocity on the horizontal symmetry line through the vertical plane at $$\phi=90^0$$. The flow separation in the bend is difficult to capture correctly, and it leads to an underestimation of the local velocity near the inner radius of the bend.
164170

165-
Below is a comparison of the axial velocity on the horizontal symmetry line through the vertical plane at $\phi=90$. The flow separation in the bend is difficult to capture correctly, and it leads to an underestimation of the local velocity near the inner radius of the bend.
171+
![Turb Bend lineplot](../../tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/sudo_phi90_lineplot.png)
166172

167-
![Turb Bend lineplot](/home/nijso/Codes/su2code.github.io/tutorials_files/incompressible_flow/Inc_Turbulent_Bend/images/sudo_phi90_lineplot.png)
173+
Figure (6): velocity on the symmetry line in the vertical planar cross-section at $$\phi=90^0$$.

0 commit comments

Comments
 (0)