CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Vertical distance from each cell to patch using modified yPlus utility? (https://www.cfd-online.com/Forums/openfoam-programming-development/116273-vertical-distance-each-cell-patch-using-modified-yplus-utility.html)

be_inspired April 16, 2013 09:30

Vertical distance from each cell to patch using modified yPlus utility?
 
Hi all,

The point is that I need to calculate the vertical distance ( z axis) from each cell of the mesh to the wall ( patch "terrain"). I was thinking about using yPlusRAS utility but changing wallDist ( and so, PatchWave) to calculate the distance in a different way. I have some doubts about if it is possible to do it in this way.

My second option is to use meshSearch::intersection to modify PatchWave to do what I need but I do not know what is the correct sintax of this approach.

What do you think it is the easier way to do it?
Could someone help me how to use meshSearch.intersection? Something like this?

meshSearch ms(mesh);
pointIndexHit point=ms.intersection (p1,p2);
distance=point-p1;

Thank you very much

be_inspired May 7, 2013 05:28

Please, any suggestion?

landau June 10, 2019 04:59

Did you find any solution to this problem? I am really interested on this.
I've tried with patchWave function, but I don't know how to use it properly.

Thank you in Advance,
Héctor


All times are GMT -4. The time now is 06:17.