https://github.com/pmocz/pic-python
Vectorized Plasma PIC code (Python)
https://github.com/pmocz/pic-python
astrophysics particle-in-cell plasma-physics scientific-computing tutorial two-stream-instability
Last synced: 9 months ago
JSON representation
Vectorized Plasma PIC code (Python)
- Host: GitHub
- URL: https://github.com/pmocz/pic-python
- Owner: pmocz
- License: gpl-3.0
- Created: 2020-09-17T00:35:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-21T07:08:28.000Z (over 2 years ago)
- Last Synced: 2025-04-12T06:42:36.277Z (9 months ago)
- Topics: astrophysics, particle-in-cell, plasma-physics, scientific-computing, tutorial, two-stream-instability
- Language: Python
- Homepage: https://medium.com/swlh/create-your-own-plasma-pic-simulation-with-python-39145c66578b
- Size: 890 KB
- Stars: 73
- Watchers: 3
- Forks: 27
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pic-python
Vectorized Plasma PIC code (Python)
## Create Your Own Plasma PIC Simulation (With Python)
### Philip Mocz (2020) Princeton Univeristy, [@PMocz](https://twitter.com/PMocz)
### [📝 Read the Algorithm Write-up on Medium](https://medium.com/swlh/create-your-own-plasma-pic-simulation-with-python-39145c66578b)
Simulate the 1D Two-Stream Instability
Code calculates the motions of electrons under the Poisson-Maxwell equation
using the Particle-In-Cell (PIC) method
#### How to run
First, ensure you have the prereq packages installed, then run the Python script:
```
pip install -r requirements.txt
python pic.py
```
