CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Random point inside the mesh (

filipe October 16, 2009 11:24

Random point inside the mesh
I am developing my code and I need to pick up a random point each time inside the mesh. The problem is that if I pick up based on the cell numbers I never get random points on the boundaries. I would like to know if it is available a function in which a random point can be picked up inside the mesh including boundaries.

Thank you,

All times are GMT -4. The time now is 11:51.