From d29768ce6c290edd755f6ca99414b88f4a768798 Mon Sep 17 00:00:00 2001 From: Nijso Date: Mon, 23 Jan 2023 08:46:15 +0100 Subject: [PATCH] Update Inc_Turbulent_Bend.md fix filename --- .../Inc_Turbulent_Bend/Inc_Turbulent_Bend.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tutorials/incompressible_flow/Inc_Turbulent_Bend/Inc_Turbulent_Bend.md b/_tutorials/incompressible_flow/Inc_Turbulent_Bend/Inc_Turbulent_Bend.md index a7d5f488..b31eac1a 100644 --- a/_tutorials/incompressible_flow/Inc_Turbulent_Bend/Inc_Turbulent_Bend.md +++ b/_tutorials/incompressible_flow/Inc_Turbulent_Bend/Inc_Turbulent_Bend.md @@ -127,7 +127,7 @@ $ pvpython paraview_extract_slice_data.py 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*. ``` -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 +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_data ```