Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface for Urs' particle pusher #14

Open
6 of 11 tasks
ohannuks opened this issue Apr 16, 2015 · 9 comments
Open
6 of 11 tasks

Interface for Urs' particle pusher #14

ohannuks opened this issue Apr 16, 2015 · 9 comments
Assignees

Comments

@ohannuks
Copy link

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:
    • Input particles based on the bulk velocity
    • Input particles based on the velocity distribution (sample the velocity distribution)
      • Input particles based on random sampling
      • Input particles based on population
      • Input particles based on avgs value
    • Add velocity sampling with k-means clustering to look at interesting places and e.g. draw only 1 line for 20 particles
    • Color the particle trajectories according to density
  • Read particle info output from the particle pusher
  • Draw particle trajectory lines in MayaVi of the particle paths
@galfthan
Copy link
Member

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

@ohannuks
Copy link
Author

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
Copy link
Author

Particles now inputted by sampling the velocity space! 👍

@ohannuks ohannuks self-assigned this Apr 17, 2015
@iljah
Copy link
Contributor

iljah commented Apr 21, 2015

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
Copy link
Contributor

ykempf commented Apr 21, 2015

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
Copy link
Contributor

ursg commented Apr 21, 2015

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
Copy link
Author

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
Copy link
Author

ohannuks commented Jul 3, 2015

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

@rjarvinen
Copy link
Member

rjarvinen commented Jun 15, 2016

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants