CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Law of the wall plot

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Bazinga
  • 1 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2019, 10:42
Default Law of the wall plot
  #1
New Member
 
Majid Arjmandi
Join Date: Oct 2018
Posts: 21
Rep Power: 8
majidsvn7 is on a distinguished road
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
File Type: png Screenshot 2019-12-01 18:11:40.png (50.6 KB, 54 views)
majidsvn7 is offline   Reply With Quote

Old   December 2, 2019, 02:51
Default
  #2
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
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.
Bazinga is offline   Reply With Quote

Old   December 2, 2019, 04:04
Default
  #3
New Member
 
Majid Arjmandi
Join Date: Oct 2018
Posts: 21
Rep Power: 8
majidsvn7 is on a distinguished road
Quote:
Originally Posted by Bazinga View Post
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 ?!!!!
majidsvn7 is offline   Reply With Quote

Old   December 2, 2019, 04:19
Default
  #4
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
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.
Bazinga is offline   Reply With Quote

Old   February 17, 2021, 09:54
Default
  #5
Senior Member
 
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7
ari003 is on a distinguished road
Quote:
Originally Posted by majidsvn7 View Post
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 ?!!!!
Hello Majid, hope that you are doing good. This thread has been quite off-dated I know but I'm also in the same situation of plotting the yPlus vs UPlus plot. Did you manage how to solve it?
If so could you please share the methodology? Will be really helpful.
ari003 is offline   Reply With Quote

Old   February 21, 2021, 17:24
Default
  #6
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 746
Rep Power: 14
Tobermory will become famous soon enough
Generate a set of probes, normal to the wall, and output the mean velocity at each probe location. Also extract the wall shear stress, so that you can calculate u*. Now calculate U+ = U/u* and y+=y.u*/nu for each probe location and hey presto you can plot U+ vs y+.
hulli likes this.
Tobermory is offline   Reply With Quote

Reply

Tags
law of the wall, uplus-yplus


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Divergence in AMG solver! marina FLUENT 20 August 1, 2020 12:30
How can I plot area averaged wall shear stress variation with time over a surface? Gourabc FLUENT 0 February 1, 2017 00:56
wall slip law for newtonian fluid tsi07 FLUENT 0 April 19, 2012 13:13
[Commercial meshers] tmerge utility creates unwanted interface/walls comes in the final mesh Shoonya OpenFOAM Meshing & Mesh Conversion 11 January 20, 2012 07:23
A girl fail to plot velocity profile when mesh changes + Wall function asherah STAR-CCM+ 0 February 19, 2010 18:45


All times are GMT -4. The time now is 21:57.