comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Nearest neighbor search in position vector array and curl of vector field
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Nearest neighbor search in position vector array and curl of vector field [message #88628] Wed, 21 May 2014 00:46 Go to previous message
p.j.sutton is currently offline  p.j.sutton
Messages: 1
Registered: May 2014
Junior Member
I want to be able to perform a search for the nearest neighbor to particle (i) in a three dimensional array (actually only really need to use the x and y positions as my model is two-dimensional). So basically I need to find the nearest neighbor to all particles and I have 6.5 million particles to consider. I need to find the position vector of the nearest and the velocity vector, so essentially need to particle or index value along with the vector.

I have looked at a few functions built in but am unsure which is the best approach and how to go about it. I have only really had a go at writing the initial conditions and some simply subtraction and multiplication of arrays so not that familiar with how to use of the more advanced functions.

The position vectors are obviously not on a uniform grid and neither are the velocity vectors. Essentially what I wanted to do was find the curl of the vector field, so it might be that there an easier way of trying to calculate this?

Any help would be greatly appreciated.

Regards

Phil
[Message index]
 
Read Message
Read Message
Previous Topic: IDLWAVE history savefile
Next Topic: Re: IDL help in alternate browser

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:00:40 PDT 2025

Total time taken to generate the page: 0.00200 seconds