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

plot yPlus in Foam-extend

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2019, 06:05
Default plot yPlus in Foam-extend
  #1
New Member
 
Join Date: Oct 2018
Posts: 9
Rep Power: 4
mosaferkarbala is on a distinguished road
Send a message via Skype™ to mosaferkarbala
hi, im working on a project with foam-extend to simiulate a ship as immersed boundary and solved it with interIbFoam solver. now i want to use yPlus utility as is in foam-extend utility. i compiled it and tried what was in -postprocessing in openfoam documentation but dosent work in foam extend.
any body can help and guide me how to log yplus distribution and show it in paraview.
its necessary to mention i also teied banana trick on functionobject and its not imcluded there too. so i cannot define it in controldict.
thanks
mosaferkarbala is offline   Reply With Quote

Old   May 13, 2019, 08:19
Default
  #2
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 4
yambanshee is on a distinguished road
look in your final time step for a file called yPlus. If it's there, you can load it in with paraview by specifying it in volume fields.
yambanshee is offline   Reply With Quote

Old   May 13, 2019, 09:05
Default progress
  #3
New Member
 
Join Date: Oct 2018
Posts: 9
Rep Power: 4
mosaferkarbala is on a distinguished road
Send a message via Skype™ to mosaferkarbala
hey dear reader thanks for your reply, eventually i figure out how run the new compiled utility and its as simple as run the name of compiled libe such as yPlusRAS in command line. but the problem is immersed bundary as this yPlus is working with nutkWallFunction patch type and mine is immersedBoundary.
sofar i decided to change the main file named: immersedBoundaryEpsilonWallFunctionFvPatchScalarFi eld in immersedBoundaryTurbulence as in there i saw they calculated and used of
scalar yPlusIB = yPlusSample*y[ibCellI]/ySample[ibCellI];
so i made a vector by
std::vector <double > myYPlusIB;
and in the loop function pushed data to it like this
myYPlusIB.push_back(yPlusIB);
and after finishing loop i did like so

double maxYPlusIB = *max_element(myYPlusIB.begin(),myYPlusIB.end());
double minYPlusIB = *min_element(myYPlusIB.begin(),myYPlusIB.end());
double aveYPlusIB = std::accumulate( myYPlusIB.begin(), myYPlusIB.end(), 0.0)/myYPlusIB.size();

Info<< " yPlusMin=" << minYPlusIB << ", yPlusMax=" << maxYPlusIB
<< ", yPlusAve=" << aveYPlusIB << nl << endl;

---------------
the problem is the yPlus in log file is too large like 50 in minimum and 8000 in maximum, any idea about it?
and also next step is to plot this log info
let see what will happen
mosaferkarbala is offline   Reply With Quote

Reply

Tags
foam-extend 4.0, immersed boundary method, plot, postprocessing, yplusras

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
[swak4Foam] Foam warnings - related to swak4Foam Salam-H OpenFOAM Community Contributions 20 August 2, 2015 16:40
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
gmsh2ToFoam sarajags_89 OpenFOAM 0 November 24, 2009 23:50


All times are GMT -4. The time now is 14:42.