# Law of the wall plot

 Register Blogs Members List Search Today's Posts Mark Forums Read

December 1, 2019, 09:42
Law of the wall plot
#1
New Member

Majid Arjmandi
Join Date: Oct 2018
Posts: 21
Rep Power: 4
Hi all,
My case is a turbulent pipe flow which has been simulated in openFoam v7.
I wanna plot famous uplus-yplus graph (law of the wall) like the attached image and I don't know what shall I do?
Attached Images
 Screenshot 2019-12-01 18:11:40.png (50.6 KB, 10 views)

 December 2, 2019, 01:51 #2 Senior Member   Join Date: Jun 2012 Location: Germany, Bochum Posts: 227 Rep Power: 12 Well, you could use the sample utility to extract the velocity at the wall. Use some software (e.g. matlab, excel, python, whatever you prefer) to calculate your non-dimensional u+ and y+ and plot it. You would need to calculate the wall shear stress for this - I believe there might be a tool for this in OpenFOAM. It's not as straightforward as I would like it to be, maybe someone has a better idea to get this more convenient. majidsvn7 likes this.

December 2, 2019, 03:04
#3
New Member

Majid Arjmandi
Join Date: Oct 2018
Posts: 21
Rep Power: 4
Quote:
 Originally Posted by Bazinga Well, you could use the sample utility to extract the velocity at the wall. Use some software (e.g. matlab, excel, python, whatever you prefer) to calculate your non-dimensional u+ and y+ and plot it. You would need to calculate the wall shear stress for this - I believe there might be a tool for this in OpenFOAM. It's not as straightforward as I would like it to be, maybe someone has a better idea to get this more convenient.
I've read all the threads and post about law of the wall plot in cfd-online but I can't understand properly what shall I do for plotting this graph... Yes, there is a utility to calculate yPlus (min-max-avg) and wallShearStress in openFoam and I know how to using those for this purpose but I don't understand how can use these values ( single value) to plot the graph?! yPLus in each case have a range and I've force the case to have a specific range of yPlus ?!!!!

 December 2, 2019, 03:19 #4 Senior Member   Join Date: Jun 2012 Location: Germany, Bochum Posts: 227 Rep Power: 12 These functions give you the value at the first nodal point at the wall. What you need is the velocity profile at the wall. For example, you use the sample utility to get u and y over a line. Then you need to calc u+ and y+ by yourself before plotting.

 Tags law of the wall, uplus-yplus