CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Calculate distance from given point to face (http://www.cfd-online.com/Forums/openfoam-programming-development/132292-calculate-distance-given-point-face.html)

D.R. March 28, 2014 15:23

Calculate distance from given point to face
 
I am trying to calculate the distance from some point in a cell, to the closest face, some distance d from dmax = cell centre to zero where the point is on the face. Is there a function which returns the distance from a point to the nearest face? i have tried using interpolationCellPointFace but i am not sure if this does what i am looking for.


All times are GMT -4. The time now is 10:30.