mezzatf / pamdi3d

Particle model for discharge simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Particle simulations of discharges in 3D, with adaptive particle control (super-particles) and adaptive grid refinement.

Getting the code on your machine

First, clone the repository (in this case into a folder pamdi3d)

$ git clone https://github.com/jannisteunissen/pamdi3d pamdi3d

After that, you can compile with just

$ cd pamdi3d
$ make

Updating the code

Depending on your git preferences you can use

$ git fetch

or

$ git pull; git merge origin/master

To do a fresh compilation:

$ make clean
$ make

Running the code

Running (sequential):

$ ./pampi3d my_config_file.txt

Running (parallel, N = number of tasks):

$ mpirun -n N ./pampi3d my_config_file.txt

You can also specify multiple configuration files, like:

$ ./pampi3d cfg_base.txt cfg_1.txt

In each configuration file, you can specify a different "sim_name" variable. These names will be appended to each other.

Visualizing the output

I'd highly recommend Visit to visualize the output. Output files have the Silo format.

About

Particle model for discharge simulation


Languages

Language:Fortran 71.0%Language:HTML 24.8%Language:C++ 1.5%Language:TeX 1.3%Language:SourcePawn 0.7%Language:Makefile 0.4%Language:Roff 0.1%Language:Python 0.1%Language:Shell 0.1%Language:Assembly 0.0%