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

Home » Public Forums » archive » Particle represetation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Particle represetation [message #35034] Fri, 09 May 2003 09:51 Go to next message
user is currently offline  user
Messages: 8
Registered: August 1999
Junior Member
Hi,

Does anyone know of a simple way of creating an _irregularly_ spaced
particle representation from a _regularly_ spaced grid? I have a 2D
grid with density values (tends to be close to a Gaussian profile), and
I then want to represent this using a finite number of point masses,
each having the same mass, but with a general position. The initial
density profile will then be represented by the spacing of the points,
each containing an equal amount of the mass. For some reason I thought
IDL had routines suitable for this, but I can't seem to find any.

I plan to use these as tracer particles, injected onto a regular grid,
so I will create a linked list containing a unique particle identifier,
its position in 3D space, pressure, energy etc., and then it will be
moved around by the velocity vectors living on the hydro grid.

Any ideas received with thanks,

Henrik
Re: Particle represetation [message #35263 is a reply to message #35034] Wed, 21 May 2003 22:52 Go to previous message
Paul Sorenson is currently offline  Paul Sorenson
Messages: 48
Registered: May 2002
Member
IDL's SURFACE command does not require absolutely regular xy locations. I
don't think IDLgrSurface does either. Also, see the d_surfview.pro demo for
an example displaying a surface (grid) as points rather than lines. (Menu
choice Options|Style|Point.)

If you have very irregular xy locations, you could draw PLOTS points or Orb
objects at each location.

Hope that helps,
-Paul Sorenson

<user@domain.invalid> wrote in message
news:b9gmav$jo3$1@titan.btinternet.com...
> Hi,
>
> Does anyone know of a simple way of creating an _irregularly_ spaced
> particle representation from a _regularly_ spaced grid? I have a 2D
> grid with density values (tends to be close to a Gaussian profile), and
> I then want to represent this using a finite number of point masses,
> each having the same mass, but with a general position. The initial
> density profile will then be represented by the spacing of the points,
> each containing an equal amount of the mass. For some reason I thought
> IDL had routines suitable for this, but I can't seem to find any.
>
> I plan to use these as tracer particles, injected onto a regular grid,
> so I will create a linked list containing a unique particle identifier,
> its position in 3D space, pressure, energy etc., and then it will be
> moved around by the velocity vectors living on the hydro grid.
>
> Any ideas received with thanks,
>
> Henrik
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 6.0 beta??
Next Topic: Need a program for magnetic declination

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

Current Time: Wed Oct 08 19:44:17 PDT 2025

Total time taken to generate the page: 0.00552 seconds