-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathREADME.txt
More file actions
executable file
·42 lines (29 loc) · 1.13 KB
/
README.txt
File metadata and controls
executable file
·42 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Py3D — Python tools for P3D particle-in-cell simulation analysis
=================================================================
Dependencies: NumPy, SciPy, Matplotlib
Installation
------------
Install as an editable package (recommended — source edits take effect immediately):
pip install -e /path/to/Py3D
With optional MPI support for DumpPartCompare/:
pip install -e "/path/to/Py3D[hpc]"
On HPC systems without pip access, add the repo to your Python path instead:
export PYTHONPATH=/path/to/Py3D:$PYTHONPATH
Basic usage
-----------
import py3d
m = py3d.Movie('/path/to/simulation/')
d = m.get_fields(10, 'bx', 'by', 'bz', 'ex')
py3d.ims(d, 'bx')
PartTrace (test particle tracing)
----------------------------------
PartTrace requires compiled C extensions. Build them manually before use:
cd PartTrace
gcc -O3 -shared -fPIC -o functions.so functions.c
gcc -O3 -shared -fPIC -o functions_rel.so functions_rel.c
Then:
from PartTrace.testparticle import TPRun
HPC modules (Cheyenne/Yellowstone)
------------------------------------
module load python
module load all-python-libs