https://github.com/pmocz/integerlattice
an integer lattice technique for solving the collisionless Vlasov-Poisson system
https://github.com/pmocz/integerlattice
integer-lattice simulation
Last synced: 10 months ago
JSON representation
an integer lattice technique for solving the collisionless Vlasov-Poisson system
- Host: GitHub
- URL: https://github.com/pmocz/integerlattice
- Owner: pmocz
- Created: 2016-10-05T22:26:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-13T19:09:09.000Z (about 9 years ago)
- Last Synced: 2025-04-12T06:42:45.831Z (10 months ago)
- Topics: integer-lattice, simulation
- Language: C++
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Integer Lattice
Philip Mocz (2016)
Harvard University
(code in development)
method based on [Mocz & Succi (2016)](https://arxiv.org/abs/1611.02757)
# Libraries
Needs the PoisFFT package
https://github.com/LadaF/PoisFFT
You can install the library locally and add it to your path.
E.g. Add the following to your .bashrc file:
```
export LD_LIBRARY_PATH=/home/pmocz/PoisFFT/lib/gcc:$LD_LIBRARY_PATH
```
To install this library, in your directory for libraries, you can do
```
git clone https://github.com/LadaF/PoisFFT.git
cd PoisFFT/
cd src/
scons
```
Also needs hdf5, fftw3
You will have to modify the Makefile to point to your library installations
# How to run
recompile and run:
```
make clean; make; ./IntegerLattice
```
to run in parallel (METHOD_MEMSAVE only):
```
mpirun -n 4 ./IntegerLattice
```
to compile job on odyssey:
```
./makeOdyssey.sh
```
to submit job to a queue (e.g. odyssey cluster):
```
sbatch submit.sh
```
to plot snapshots (e.g. snaps 0, 10, 20, 30),
in the analysis/ folder, run the python script:
```
python plot.py 0 10 20 30
```
or, to plot the snapshots run in parallel mode (split files), run:
```
python plotParallel.py 0 10 20 30
```
# Useful references
example FFTW
https://github.com/undees/fftw-example/blob/master/fftw_example.c
3d array
http://www.cplusplus.com/forum/articles/7459/