Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pmocz/pic-python

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pic-python

Vectorized Plasma PIC code (Python)

Create Your Own Plasma PIC Simulation (With Python)

Philip Mocz (2020) Princeton University, @PMocz

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.