https://github.com/rahulgaur104/particle_trajectory_visualizer
A tool to visualize the motion of charged particles under static electric and magnetic fields
https://github.com/rahulgaur104/particle_trajectory_visualizer
Last synced: 9 months ago
JSON representation
A tool to visualize the motion of charged particles under static electric and magnetic fields
- Host: GitHub
- URL: https://github.com/rahulgaur104/particle_trajectory_visualizer
- Owner: rahulgaur104
- Created: 2020-05-27T16:55:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T18:37:56.000Z (over 1 year ago)
- Last Synced: 2025-01-16T10:55:31.064Z (10 months ago)
- Language: Python
- Homepage:
- Size: 43.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# visPT
**Author:** Rahul Gaur\
**email:** rgaur@terpmail.umd.edu\
Copyright Rahul Gaur 2020
This is a collection of scripts to visualize trajectories of charged particles under static electric and magnetic fields.
## Configuration
It has only been tested on a Linux machine(Ubuntu 18.04) with an intel graphics card and the following package configuration:
* python 3.5
* mayavi 4.6.2
* vtk 8.1.2
* pyqt 4.11.4
and after setting the following environment variables:
* ETS_TOOLKIT=qt4
* QT_API=pyqt
Note that this configuration may not be unique for the code to work properly.[Some issues with vtk and/or mayavi](https://github.com/enthought/mayavi/issues/656)
## Physics
The code uses the famous Boris algorithm to solve the Lorentz equation of motion:
conserving the phase space volume of the distriution function(without an electric field). The aim of this project is to provide the user with images or GIFs of the particle moving in static 3-D fields. The outline of the process is as follows:
* Create code for particle along straight electric and magnetic fields. Status: Done!
* Create code for simple analytical topology of the electric and magnetic fields. For example, ring, cylinder, torus. Status: Done
* Add, debug and test the image and GIF rendering component. Status : Pending
* Transform all the position and velocity vectors to field-aligned coordinates. Status: Not started
* Add provision for the user to add an arbitrary 3D magnetic and electric field topology using a data file(.nc, .hd5) Status: Not started
* Transform the structure of the code to an object-oriented one. Status: Not started
Don't hesitate to contact me regarding any further information on this code.