CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Random points in 3D circle

Register Blogs Community New Posts Updated Threads Search

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

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

Reply


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 Off
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 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


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