CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Find distance from a cell to a Boundary patch (

oehmu November 20, 2012 16:00

Find distance from a cell to a Boundary patch
Hello FOAMEr's,

I have two questions that hope somebody can give me a hit to find and answer or find a better approach:

1. I would like to know how to find the distance from all internal cells to a given boundary patch (fix) at run time in OpenFOAM :confused:

2. How to get the distance from a cell that has an alpha<=0.5, in interFoam, to a fix cell that has an alpha around 0.045<=alpha>=0.05 and then use the data to solve a PDE that only applies to such cells:confused: (like a water surface elevation)

Best regards,


ripudaman March 23, 2016 00:47

Were you ever able to find an optimal solution to do this?

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