CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   y+ plotting into the Volume with OpenFoam 3.0.1 / plotting a viscosity with OF 3.0.1 (https://www.cfd-online.com/Forums/openfoam-post-processing/175190-y-plotting-into-volume-openfoam-3-0-1-plotting-viscosity-3-0-1-a.html)

BjoernFoam July 25, 2016 20:27

y+ plotting into the Volume with OpenFoam 3.0.1 / plotting a viscosity with OF 3.0.1
 
Dear Foamers,

I have to do an y+ / u+ plot on the NASA 2D Zero Pressure Gradient Flat Plate Case.
As far as i can see, I have everything I need for my calculations, except for a viscosity.

I have searched the Forum, but couldn't find a solution, suitable to my remaining time on the task. :(

I'm using the rhoSimple solver on a subsonic, turbulent air flow with the kOmegaSST RAS model.

It would really make my day if anybody got an usefull hint for me. :D
... One could consider me as a beginner :o

This is my first post, so don't hesitate to tell me about everything i did wrong in detail, in a kind way. :D

Kina July 26, 2016 03:50

The command "yPlus" will write the cell-y+ to a specific field called "yPlus".
After starting paraview using the paraFoam-command, you will then be able to activate said field in the "fields" tab on the left. After that, you can use either the "Plot on Intersection Curves" filter in paraview in order to create the plot directly in paraview. Or you can use the "Integrate Variables" filter followed by the "Save data" option to export the points an their corresponding y+ values.
I hope there is an option that suits your needs.

Cheers
Alex

BjoernFoam July 26, 2016 06:39

Hello Kina!

Thanks for your quick reply! :)
As far as i understand it, the "yPlus" command will write the current y+ values for the first cell layer of the volume, for all defined walls, into a file.

What i need to know is "what would the y+ be like, if the first cell was bigger in the wall normal direction (only at one point of the wall, not even all along it)".

I think also a Reynolds number within the Volume should do just fine for my calculations, using the formulas "1." and "5." from this page:
http://www.cfd-online.com/Wiki/Y_plu...nce_estimation

Or am I on a completely wrong track here..? :o


Greetings

Björn

Kina July 27, 2016 11:43

Well, yes and no. The viscosity is just the viscosity of your fluid that is defined in the TransportProperties file. This is the nominal viscosity that you are estimating the initial y+ with. However, since the first cell layer is very very influencing in terms of near wall viscosity, velocity distribution and such, the REAL y+ calculation can only be read out of the solver when you have a convergent solution. That's why we can't simply take the velocity field of a y+ = 30 solution and extrapolate down to y+ = 1 since this can change everything and crash your theoretical approach.

Cheers
Alex

BjoernFoam August 20, 2016 14:25

Hello Kina,

it has been a while and I have written the theory part of my work now, thanks for your help, I understand a lot more now of what you tried to tell me, it was really helpful! :)
It looks like that in the end it really was just, to simply take the viscosity as a given constant. :o
This thread can be considered as closed. :)

qutadah.r February 22, 2022 03:50

no y+ field found
 
Quote:

Originally Posted by Kina (Post 611353)
The command "yPlus" will write the cell-y+ to a specific field called "yPlus".
After starting paraview using the paraFoam-command, you will then be able to activate said field in the "fields" tab on the left. After that, you can use either the "Plot on Intersection Curves" filter in paraview in order to create the plot directly in paraview. Or you can use the "Integrate Variables" filter followed by the "Save data" option to export the points an their corresponding y+ values.
I hope there is an option that suits your needs.

Cheers
Alex




what if i cant seem to find the field even after postprocessing?? I only see yPlus in the cell Arrays.... What should i do?


thanks!


All times are GMT -4. The time now is 15:02.