pyparareal
Python Parareal code to study its dispersion relation
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 11 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.8%) to scientific vocabulary
Keywords
Repository
Python Parareal code to study its dispersion relation
Basic Info
Statistics
- Stars: 12
- Watchers: 3
- Forks: 4
- Open Issues: 6
- Releases: 4
Topics
Metadata Files
README.md
pyParareal
Python Parareal is a simple code that is mostly useful to produce matrix formulations of Parareal for linear initial value problems that can then be used for theoretical analysis. The code is not parallelized, it is a tool for theory, not performance measurements.
Attribution
You can freely use and reuse this code in line with its license. If you use it (or parts of it) for a publication, please cite
@article{Ruprecht2018,
author = {Ruprecht, Daniel},
doi = {10.1007/s00791-018-0296-z},
journal = {Computing and Visualization in Science},
pages = {1--17},
title = {Wave propagation characteristics of Parareal},
url = {https://doi.org/10.1007/s00791-018-0296-z},
volume = {19},
year = {2018}
}
Structure of the code
The main functionality is found in the classes located in the
./src
folder. Scripts to produce various figures can be found in the
./scripts
folder and its subfolders. Tests are located in
./tests
and can be run by typing
pytest ./tests/
while in the base folder of the code.
Dependencies
The file
environment.yml
specifies the used Anaconda environment. If Anaconda is installed, the environment can be created by typing
conda env create -f environment.yml
However, to use all functionality, you will also need a working installation of the Dedalus software.
How can I reproduce Figures from the paper "Wave propagation characteristics of Parareal"?
The scripts to reproduce the figures from this paper can be found here.
- Fig. 1 and Fig. 2 --> scripts/plotsvdvs_dt.py
- Fig. 3 --> scripts/plot_dispersion.py with parameter nu=0.0 and nu=0.1
- Fig. 4 --> example/run.py
- Fig. 5 --> scripts/plotieulerdispersion.py
- Fig. 6 --> scripts/plot_dispersion.py with stencil=2 (also set nu=0.0 and dx=1.0)
- Fig. 7 --> scripts/plotdispersion.py with artificialcoarse=1 and artifical_coarse=2
- Fig. 8 --> example/run.py with artificial_coarse=2
- Fig. 9 --> scripts/plotsvdvswavenodifferent_G.py
- Fig. 10 -> scripts/plotdispersion.py with artificalfine=1
- Fig. 11 -> example/run.py with artifical_fine=1
- Fig. 12 -> scripts/plot_dispersion.py with ncoarse=2
- Fig. 13 -> scripts/plot_dispersion.py with Tend=64 and Nsamples=120
- Fig. 14 -> scripts/plotsvdvs_P.py
- Fig. 15 -> scripts/plotconvvs_waveno.py
- Fig. 16 -> scripts/plotsvdvs_waveno.py
Pseudo-spectrum of the Parareal iteration matrix
The code now also offers the possibility to compute the pseudo-spectrum and pseudo-spectral radius of the Parareal iteration matrix. You can also uses these parts in line with the in line with its license. If you do, please also cite the following paper in addition to the one stated above:
tba
How can I reproduce Figures from the paper "Impact of spatial coarsening on Parareal convergence"?
The scripts to reproduce the figures from this paper can be found here.
- figure1-4.py with command line parameter 1, 2, 3 or 4 produces files figure1.pdf to figure_4.pdf
- figure5-8.py with command line parameter 5, 6, 7 or 8 produces files figure5.pdf to figure_8.pdf
- figure9-10.py with command line parameter 9 or 10 produces files figure9.pdf and figure_10.pdf
- figure11-12.py with command line parameter 11 or 12 produces files figure11.pdf and figure_12.pdf
- figure13-14.py with command line parameter 13 or 14 produces files figure13.pdf and figure_14.pdf
- figure15-16.py with command line parameter 15 or 16 produces files figure15.pdf and figure_16.pdf
Acknowledgements
This project has received funding from the European High-Performance Computing Joint Undertaking (JU) under grant agreement No 955701 (TIME-X). The JU receives support from the European Union's Horizon 2020 research and innovation programme and Belgium, France, Germany, and Switzerland. This project also received funding from the German Federal Ministry of Education and Research (BMBF) grants 16HPC048.
Who do I talk to?
This code is written by Daniel Ruprecht.
Owner
- Name: Parallel-in-Time (PinT) Algorithms
- Login: Parallel-in-Time
- Kind: organization
- Website: https://www.parallel-in-time.org/
- Repositories: 16
- Profile: https://github.com/Parallel-in-Time
Parallel-in-Time Algorithms
Citation (CITATION.cff)
cff-version: 1.2.0
message: If you use this software, please cite both the article from preferred-citation and the software itself.
authors:
- family-names: Ruprecht
given-names: Daniel
title: Wave propagation characteristics of Parareal
version: 1.0.0
url: https://doi.org/10.1007/s00791-018-0296-z
doi: 10.1007/s00791-018-0296-z
date-released: '2018-12-18'
preferred-citation:
type: article
authors:
- family-names: Ruprecht
given-names: Daniel
title: Wave propagation characteristics of Parareal
doi: 10.1007/s00791-018-0296-z
url: https://doi.org/10.1007/s00791-018-0296-z
journal: "Computing and Visualization in Science"
volume: 19
pages: 1--17
year: '2018'
conference: {}
publisher: {}
GitHub Events
Total
- Release event: 3
- Watch event: 1
- Push event: 71
- Create event: 3
Last Year
- Release event: 3
- Watch event: 1
- Push event: 71
- Create event: 3