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/)
-   -   Find distance from a cell to a Boundary patch (https://www.cfd-online.com/Forums/openfoam-programming-development/109554-find-distance-cell-boundary-patch.html)

oehmu November 20, 2012 15: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,

OEHMU

ripudaman March 22, 2016 23:47

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


All times are GMT -4. The time now is 02:00.