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

Y+ vs Wall Position in OpenFOAM

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

Like Tree1Likes
  • 1 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2024, 12:22
Default Y+ vs Wall Position in OpenFOAM
  #1
Member
 
Join Date: May 2024
Location: France
Posts: 35
Rep Power: 2
rocketLauncher is on a distinguished road
Hi everyone,

I have managed to get my min, average, and max y+ values thanks to the function given here https://www.openfoam.com/documentati...eld-yPlus.html

However, I would really like to get data for a plot of y+ vs wall position, much like we do in ANSYS. Do you know a way to go about this?

Thanks in advance.
rocketLauncher is offline   Reply With Quote

Old   July 31, 2024, 10:54
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 741
Rep Power: 14
Tobermory will become famous soon enough
For the wall patch(es) that you are calculating yPlus on, just write out the face coordinates with:

Code:
postProcess -func writeCellCentres -time 0
This will write files C, Cx, Cy and Cz into the 0 folder, with the coordinates of both the internal field and the boundary patches - change the writeFormat in controlDict to ASCII to be able to read them. Now you have all the info you need. Good luck.

EDIT
Actually, a smarter way for the last part is to leave the writeFormat as binary and use the foamDictionary command to strip out the values (in ASCII) for the patches. For example, if your wall patch was called upperWall then you would simply run:
Code:
foamDictionary -entry boundaryField.upperWall.value 0/Cx
rocketLauncher likes this.
Tobermory is offline   Reply With Quote

Reply

Tags
yplus

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 17, 2020 00:44
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 01:04
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
[Commercial meshers] Exporting to OpenFOAM mesh with "inner" wall region raagh77 OpenFOAM Meshing & Mesh Conversion 0 April 24, 2012 07:23


All times are GMT -4. The time now is 10:25.