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?


All times are GMT -4. The time now is 01:19.