|
[Sponsors] |
December 23, 2003, 05:22 |
Random points in 3D circle
|
#1 |
Guest
Posts: n/a
|
Hi, I have a circle in 3D (common part for x^2+y^2+z^2<=R^2 and A*x+B*y+C*z=0). How to find random and uniformly distributed point in this circle? Thanks.
|
|
December 23, 2003, 10:22 |
Re: Random points in 3D circle
|
#2 |
Guest
Posts: n/a
|
For the random part note that on a 2D surface (which is what you have) you can only vary 2 of the parameters independently. Vary those two with random perturbations and then compute the third such that your point is on the sphere. To generate a uniform distribution you may find it easier to write your expression in spherical coordinates since they provide a more natural description of the surface.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sliding Interface issues | philippose | OpenFOAM Running, Solving & CFD | 7 | May 5, 2014 04:13 |
[snappyHexMesh] jagged, ragged edges... | ziemowitzima | OpenFOAM Meshing & Mesh Conversion | 138 | July 24, 2012 00:41 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |
Random Access To Arbitrary Points In Solution Domain | marhamat | OpenFOAM | 3 | November 8, 2007 18:43 |
extreme points problem | Lipo Wang | Main CFD Forum | 2 | August 18, 2004 04:15 |