An open API service indexing awesome lists of open source software.

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)

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
```

![Simulation](./pic.png)