|
[Sponsors] |
May 12, 2019, 06:05 |
plot yPlus in Foam-extend
|
#1 |
New Member
|
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 |
|
May 13, 2019, 08:19 |
|
#2 |
Senior Member
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8 |
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.
|
|
May 13, 2019, 09:05 |
progress
|
#3 |
New Member
|
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 |
|
Tags |
foam-extend 4.0, immersed boundary method, plot, postprocessing, yplusras |
|
|
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 |