codes:particle
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
codes:particle [2014/07/07 12:35] – jannis | codes:particle [2025/04/17 13:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Introduction ====== | ====== Introduction ====== | ||
- | On this page we give a brief overview of the 3D particle code that was (and is being) developed in our group. | + | On this page we give a brief overview of the 3D particle code that was (and is being) developed in our group: **Pamdi3D** (__Pa__rticle __M__odel __Di__scharge). |
A brief summary of the history: the development of a particle code was started by Chao Li, who developed a hybrid particle/ | A brief summary of the history: the development of a particle code was started by Chao Li, who developed a hybrid particle/ | ||
Line 38: | Line 38: | ||
===== Particles ===== | ===== Particles ===== | ||
We use a particle-in-cell (PIC) approach, with tri-linear interpolation to map particles to densities, also known as cloud-in-cell (CIC). | We use a particle-in-cell (PIC) approach, with tri-linear interpolation to map particles to densities, also known as cloud-in-cell (CIC). | ||
- | As a particle mover we use the so-called velocity-verlet scheme. For electron-neutral collisions, we use the null-collision method. For a description of the adaptive particle management that we use, see this paper [[http:// | + | As a particle mover we use the so-called velocity-verlet scheme. For electron-neutral collisions, we use the null-collision method. For a description of the adaptive particle management that we use, see this [[http:// |
===== Electric field ===== | ===== Electric field ===== | ||
Line 53: | Line 53: | ||
====== Usage examples ====== | ====== Usage examples ====== | ||
- | These will be added in the future | + | These will be added in the near future... |
- | ====== Source | + | ====== Source |
- | The source code | + | The source code can be found [[https:// |
+ | |||
+ | The code depends on the following external libraries, which are distributed along with the code: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
+ | |||
+ | Furthermore, | ||
+ | |||
+ | To compile, execute the following commands: | ||
+ | < | ||
+ | $ git submodule init | ||
+ | $ git submodule update | ||
+ | $ make | ||
+ | </ | ||
+ | |||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | This should((hopefully)) work with newer versions (> 4.4) of [[https:// | ||
====== Contact ====== | ====== Contact ====== | ||
Questions should be addressed to [[jannis@teunissen.net|Jannis Teunissen]]. | Questions should be addressed to [[jannis@teunissen.net|Jannis Teunissen]]. | ||
codes/particle.1404736536.txt.gz · Last modified: 2025/04/17 13:58 (external edit)