CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

Random points in 3D circle

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 23, 2003, 05:22
Default Random points in 3D circle
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.
  Reply With Quote

Old   December 23, 2003, 10:22
Default Re: Random points in 3D circle
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.
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sliding Interface issues philippose OpenFOAM Running, Solving & CFD 7 May 5, 2014 03:13
jagged, ragged edges... ziemowitzima OpenFOAM Native Meshers: snappyHexMesh and Others 138 July 23, 2012 23:41
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07: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 03:15

All times are GMT -4. The time now is 04:08.