fmihpc / analysator

Python based package for analyzing vlsv files produced by Vlasiator
GNU General Public License v2.0
6 stars 33 forks source link

Interface for Urs' particle pusher #14

Open ohannuks opened 9 years ago

ohannuks commented 9 years ago

We'll be doing an easy-to-use interface for Urs' particle pusher.

Features:

galfthan commented 9 years ago

This will be especially cool demo on the new fast visualization machine

ohannuks commented 9 years ago

Yup it will! And we had some grand ideas for making clustering in it so we launch loads of particles and look if there's certain populations going in different directions. Urs suggested k-means clustering!

ohannuks commented 9 years ago

Particles now inputted by sampling the velocity space! :+1:

iljah commented 9 years ago

We'll be doing an easy-to-use interface for Urs' particle pusher. Features:

  • Click-and-point tool for inputting particles into a certain place in spatial space
  • Velocity sampling: o Input particles based on the bulk velocity o Input particles based on the velocity distribution (sample the velocity distribution) o Input particles based on some vertain population (note: needs to be able to separate particle populations)
  • Read particle info output from the particle pusher
  • Draw streamlines in MayaVi of the particle paths

This sounds interesting, will the particle tracing happen interactively? Does the pusher have to be implemented using a particular language?

ykempf commented 9 years ago

The pusher is already implemented, @iljah. And yes, in one mode there is now a point-and-click tool which launches a set of particles from the point you select and traces immediately (i.e. asap or rather asac–computed) the paths.

ursg commented 9 years ago

Yep, I just took the particle propagator out of my particle-in-cell code and I'm feeding it field data from vlsv files. See the particles/ directory in the master branch.

The python interface isn't fully userfriendly yet, but we're getting there.

ohannuks commented 9 years ago

Yup it's interactive in the sense that you create the particles and push them, and see results! You can then keep on analyzing data. The particle pusher is the amazing thing Urs made and I'm working on making an easy-to-use interface for it which makes data analysis and particle injection with certain population shapes easier.

ohannuks commented 9 years ago

@ursg in case you want to work on this, Ill keep this issue here.

rjarvinen commented 8 years ago

Edit: Ah, never mind. I need to compile the pusher first. It is not included in the python package.

I get an error when trying to open Particlepusherinterface according to this example and using a bulk file from BCB run: https://github.com/fmihpc/analysator/blob/master/Documentation/examples/example1.py

>>> grid = pt.grid.Particlepusherinterface(f, 'rho')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: __init__() takes at least 4 arguments (3 given)