Expand description
Parallel I/O utilities for large-scale distributed physics simulations.
This module provides:
- Domain decomposition metadata – rank, ghost cells, partition boundaries
- Chunked file I/O – fixed-size chunks with parallel writer state tracking
- Parallel VTK output – PVTU / PVD index files for distributed meshes
- MPI-like rank / domain storage – load-balanced partition export
- Ghost cell metadata – halo layers for stencil communication
- Distributed array serialization – flat binary layout for parallel restart
- Checkpoint / restart – step-indexed checkpoint files
- Merge of distributed outputs – reassembling per-rank files
- Parallel HDF5-like layout – dataset headers + contiguous data blocks
Structs§
- Checkpoint
Header - Header record written at the start of every checkpoint file.
- Chunk
Spec - Specification for a single data chunk.
- Chunked
Trajectory - A trajectory divided into fixed-size chunks of frames.
- Dataset
Header - Header for a single named dataset within a parallel file.
- Distributed
Array - A distributed scalar array owned by one rank.
- Domain
Box - Axis-aligned bounding box in 3-D used to describe a subdomain.
- Ghost
Cell Meta - Full set of ghost-cell metadata for one rank.
- Ghost
Layer - Describes the ghost cell layer on a single face.
- IoCounters
- Aggregated I/O performance counters.
- Parallel
File Layout - A lightweight parallel-HDF5-like file layout description.
- Parallel
Writer - Tracks parallel write progress across multiple chunk files.
- Partition
Map - Partition assignment for load-balanced domain decomposition.
- Pvtu
Piece - Metadata for a single piece in a parallel VTU (PVTU) file.
- Rank
Domain - Per-rank subdomain metadata for a domain-decomposed simulation.
Enums§
- Dset
Type - Data-type descriptor for a dataset column.
- Face
- Cardinal face directions for a 3-D structured mesh.
Functions§
- compress_
trajectory_ delta - Compress trajectory frames using delta encoding.
- decompress_
trajectory_ delta - Reconstruct trajectory frames from delta-encoded data.
- estimate_
io_ bandwidth - Estimate I/O bandwidth in MB/s.
- io_
stats - Return a formatted I/O statistics summary string.
- merge_
chunk_ files - Concatenate
n_chunkschunk files into a single output file. - merge_
rank_ files - Merge per-rank checkpoint position files into a single file.
- read_
checkpoint - Read a checkpoint file written by
write_checkpoint. - read_
chunked_ xyz - Read chunked XYZ files written by
write_chunked_xyz. - split_
into_ chunks - Divide
totalelements into at mostn_chunkscontiguous chunks. - write_
checkpoint - Write a checkpoint file containing a header and particle positions.
- write_
chunked_ xyz - Write a
ChunkedTrajectoryto XYZ files, one file per chunk. - write_
pvd_ xml - Generates the XML content of a
.pvd(ParaView Data) time-series file. - write_
pvtu_ xml - Generates the XML content of a
.pvtu(Parallel VTK Unstructured) index file.