~ : SHAKTI : ~

A Particle-In-Cell Code to Study Astrophysical Plasma

Introduction Solvers Download Developer
The production of out-of-plane magnetic field due to counter-streaming electron-positron pair plasma. The result is obtained from the Shakti code. Grid distribution is 200x200, with two particles per cell per species and using a second-order shape function for each particle.

'Shakti' is a multidimensional electromagnetic code that utilizes the Particle-In-Cell (PIC) method to study plasmas, with applications ranging from laboratory experiments to high-energy astrophysical phenomena.

Why a new code?

The PIC methods have diverse applications. However, despite decades of effort, many available codes remain difficult to use. The challenges include: 1) limited adaptability for user-defined modules, 2) inflexible simulation environment for setting up new problems, and 3) poor documentation. The Shakti code addresses these challenges by providing a modular, multidimensional, and user-friendly framework.

Originally begun as a self-tutorial project, Shakti has now evolved into a robust numerical tool. The current version of the Shakti code supports one, two, and three dimensions in Cartesian geometry and is extensible to support different geometries.

The Shakti code is highly modular, supports multi-species, different distribution functions for each species (e.g., Maxwell-Boltzmann/Monoenergetic/power-law distribution), and higher-order shape functions. The code can be run on both single and multi-processors using commonly used compilers such as gcc or mpicc. While the current application focus is on the collisionless regime, where charged particles interact collectively through the electromagnetic field, instead of Coulomb interactions, the Coulomb interactions can be implemented. To explore sample test problems, click on "TestProblems". This code is currently in the development stage, to be released publicly soon.


A. Charge conservation


B. Plasma Oscillation

Oscillation of electrons in electron-proton plasma

C. Weibel Instability

Counter streaming beams made of electron-positrons (in-plane flow)

Counter streaming beams made of electron-positrons (out-of-plane flow)

D. Twostream instability

Counterstreaming two beams made of electron-positron pair

E. Nonresonant streaming instability

Super-Alfvenic drift of relativistic particles in electron-proton plasmas (three species problem)

This link is under construction.

This code is written by Siddhartha Gupta, a Postdoctoral Research Associate in the dept of Astrophysical Sciences at Princeton University. Click here to see his personal page.

Acknowledgement

SG acknowledges all members of the plasma group at the University of Chicago and Princeton University whose discussions in various forms inspired the creation of this code.