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/)
-   -   Random point inside the mesh (https://www.cfd-online.com/Forums/openfoam-programming-development/69244-random-point-inside-mesh.html)

filipe October 16, 2009 11:24

Random point inside the mesh
 
Hello,
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,
Filipe


All times are GMT -4. The time now is 09:50.