All Examples¶
The full list of example scripts shown below is also contained in our examples/
folder.
Example data sets can be downloaded from: github.com/openPMD/openPMD-example-datasets.
The following command will automatically install those into samples/
on Linux and OSX: curl -sSL https://git.io/JewVw | bash
C++¶
- 1_structure.cpp: creating a first series
- 2_read_serial.cpp: reading a mesh
- 2a_read_thetaMode_serial.cpp: read an azimuthally decomposed mesh (and reconstruct it)
- 3_write_serial.cpp: writing a mesh
- 3a_write_thetaMode_serial.cpp: write an azimuthally decomposed mesh
- 4_read_parallel.cpp: MPI-parallel mesh read
- 5_write_parallel.cpp: MPI-parallel mesh write
- 6_dump_filebased_series.cpp: detailed reading with a file-based series
- 7_extended_write_serial.cpp: particle writing with patches and constant records
- 8_benchmark_parallel.cpp: a MPI-parallel IO-benchmark
Python¶
- 2_read_serial.py: reading a mesh
- 2a_read_thetaMode_serial.py: reading an azimuthally decomposed mesh (and reconstruct it)
- 3_write_serial.py: writing a mesh
- 3a_write_thetaMode_serial.py: write an azimuthally decomposed mesh
- 4_read_parallel.py: MPI-parallel mesh read
- 5_write_parallel.py: MPI-parallel mesh write
- 7_extended_write_serial.py: particle writing with patches and constant records
- 9_particle_write_serial.py: writing particles
Unit Tests¶
Our unit tests in the test/
folder might also be informative for advanced developers.