|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
Namespaces | |
| namespace | detail |
Classes | |
| class | AbinitReader |
| Handles parsing of ABINIT input/output files containing acell, rprim, and atomic positions. More... | |
| class | ArcReader |
| Reads an ARC file and returns a vector of correlation::core::Cell objects. More... | |
| class | BaseReader |
| Base class for all file readers. More... | |
| class | CarReader |
| Reads a Materials Studio .car file and returns a correlation::core::Cell object. More... | |
| class | CastepMdReader |
| Reads a sequence of frames from a CASTEP .md trajectory file. More... | |
| class | CellReader |
| Reads a CASTEP .cell physical structure format. More... | |
| class | ChgnetReader |
| Reads atomic structures and trajectories from CHGNet Extended XYZ outputs. More... | |
| class | CifReader |
| Reads a Crystallographic Information File (.cif). More... | |
| struct | ReaderExtensionQuery |
| Parameters for querying a reader by extension and optional filename for content sniffing. More... | |
| class | IReaderRegistry |
| Abstract interface defining lookup capabilities for file reader discovery and instantiation. More... | |
| class | IStructureReader |
| Segregated contract for file format parsers that read individual snapshot structures. More... | |
| class | ITrajectoryReader |
| Segregated contract for file format parsers that read multi-frame simulation trajectories. More... | |
| class | CP2KReader |
| Handles parsing of CP2K restart and input files. More... | |
| class | DftbReader |
| Handles parsing of DFTB+ GenFormat (.gen) and HSD input geometry structures. More... | |
| class | GapReader |
| Reads atomic structures and trajectories from GAP / QUIP Extended XYZ outputs. More... | |
| class | GpawReader |
| Handles parsing of GPAW text log and output files containing unit cells and coordinates. More... | |
| class | GromacsReader |
| Handles parsing of GROMACS (.gro) structure files. More... | |
| class | LammpsDumpReader |
| Reads one or more frames from a LAMMPS custom dump file. More... | |
| class | MaceReader |
| Reads atomic structures and trajectories from MACE Extended XYZ outputs. More... | |
| class | NequipReader |
| Reads atomic structures and trajectories from NequIP Extended XYZ outputs. More... | |
| class | OnetepDatReader |
| Reads a ONETEP .dat structure format. More... | |
| class | OrcaReader |
| Handles parsing of ORCA output and log files for structures and geometry optimization trajectories. More... | |
| class | OutmolReader |
| Reads a DMol3 .outmol output format. More... | |
| class | PdbReader |
| Handles parsing of PDB (.pdb) structure files. More... | |
| class | QEReader |
| Handles parsing of Quantum ESPRESSO output and input files. More... | |
| class | ReaderFactory |
| Registry for all file readers, enabling automatic discovery. More... | |
| class | VaspReader |
| Reads VASP POSCAR and CONTCAR structure files. More... | |
| class | XdatcarReader |
| Reads VASP XDATCAR trajectory files with memory-mapped lazy loading. More... | |
| class | XYZReader |
| Reads structure data from Extended XYZ format files. More... | |
Typedefs | |
| using | ProgressCallback = std::function<void(float, const std::string &)> |
| Progress report callback function type. Invoked with normalized progress in [0.0, 1.0] and a status message. | |
Enumerations | |
| enum class | FileType : std::uint8_t { Car , Cell , Cif , OnetepDat , Arc , LammpsDump , CastepMd , Outmol , Vasp , Xdatcar , Gromacs , Pdb , Xyz , Mace , Chgnet , Gap , Nequip , Unknown } |
| A type-safe enum to specify the format of a structure or trajectory file. More... | |
Functions | |
| correlation::core::Cell | readStructure (const std::string &filename, FileType type, const ProgressCallback &progress_callback=nullptr) |
| Reads an atomic structure from a file. | |
| correlation::core::Trajectory | readTrajectory (const std::string &filename, FileType type, const ProgressCallback &progress_callback=nullptr) |
| Reads a trajectory from a file. | |
| correlation::core::Trajectory | readTrajectory (const std::vector< std::string > &filenames, FileType type=FileType::Unknown, const ProgressCallback &progress_callback=nullptr) |
| Reads a trajectory concatenated across multiple files. | |
| std::expected< correlation::core::Cell, std::string > | readStructureExpected (const std::string &filename, FileType type=FileType::Unknown, const ProgressCallback &progress_callback=nullptr) |
| Reads a structure from the given file, returning Cell or diagnostic error string. | |
| std::expected< correlation::core::Trajectory, std::string > | readTrajectoryExpected (const std::string &filename, FileType type=FileType::Unknown, const ProgressCallback &progress_callback=nullptr) |
| Reads a trajectory from the given file, returning Trajectory or diagnostic error string. | |
| std::expected< correlation::core::Trajectory, std::string > | readTrajectoryExpected (const std::vector< std::string > &filenames, FileType type=FileType::Unknown, const ProgressCallback &progress_callback=nullptr) |
| Reads a trajectory from multiple files, returning Trajectory or diagnostic error string. | |
| FileType | determineFileType (const std::string &filename) |
| Determines the FileType from a given filename extension. | |
| bool | naturalLess (std::string_view str_a, std::string_view str_b) noexcept |
| Performs natural alphanumeric comparison of two strings. | |
| void | naturalSort (std::vector< std::string > &paths) |
| Sorts a container of file paths in natural alphanumeric order. | |
| std::vector< std::string > | expandWildcards (const std::string &pattern) |
| Expands wildcard patterns (*, ?) in a path and sorts naturally. | |
Variables | |
| const bool | REGISTERED = ReaderFactory::registerTypeSafe<ArcReader>("ArcReader") |
| typedef std::function< void(float, const std::string &)> correlation::readers::ProgressCallback = std::function<void(float, const std::string &)> |
Progress report callback function type. Invoked with normalized progress in [0.0, 1.0] and a status message.
|
strong |
A type-safe enum to specify the format of a structure or trajectory file.
| FileType correlation::readers::determineFileType | ( | const std::string & | filename | ) |
|
inline |
Expands wildcard patterns (*, ?) in a path and sorts naturally.
| pattern | File path or glob pattern. |
| std::runtime_error | If a wildcard pattern matches no files or globbing fails. |


|
inlinenoexcept |
Performs natural alphanumeric comparison of two strings.
Ensures that numeric components are compared by value (e.g., "dump.2" < "dump.10"). Satisfies Strict Weak Ordering.


|
inline |
Sorts a container of file paths in natural alphanumeric order.


| correlation::core::Cell correlation::readers::readStructure | ( | const std::string & | filename, |
| FileType | type, | ||
| const ProgressCallback & | progress_callback = nullptr ) |
Reads an atomic structure from a file.
| [in] | filename | The path to the structure file. |
| [in] | type | The format of the file. |
| [in] | progress_callback | Optional callback invoked with progress (0.0–1.0) and a status message. |
| std::runtime_error | if the file cannot be opened or is malformed. |


|
nodiscard |
Reads a structure from the given file, returning Cell or diagnostic error string.
| [in] | filename | Path to the file containing the structure. |
| [in] | type | File format type used to decode the file. |
| [in] | progress_callback | Optional callback invoked during reading. |

| correlation::core::Trajectory correlation::readers::readTrajectory | ( | const std::string & | filename, |
| FileType | type, | ||
| const ProgressCallback & | progress_callback = nullptr ) |
Reads a trajectory from a file.
| [in] | filename | The path to the trajectory file. |
| [in] | type | The format of the file. |
| [in] | progress_callback | Optional callback invoked with progress (0.0–1.0) and a status message. |
| std::runtime_error | if the file cannot be opened or is malformed. |


| correlation::core::Trajectory correlation::readers::readTrajectory | ( | const std::vector< std::string > & | filenames, |
| FileType | type = FileType::Unknown, | ||
| const ProgressCallback & | progress_callback = nullptr ) |
Reads a trajectory concatenated across multiple files.
| [in] | filenames | Vector of paths to trajectory files. |
| [in] | type | The format of the files. |
| [in] | progress_callback | Optional callback invoked with progress (0.0–1.0) and status message. |
| std::runtime_error | if files cannot be opened or are malformed. |

|
nodiscard |
Reads a trajectory from the given file, returning Trajectory or diagnostic error string.
| [in] | filename | Path to the file containing the trajectory. |
| [in] | type | File format type used to decode the file. |
| [in] | progress_callback | Optional callback invoked during reading. |

|
nodiscard |
Reads a trajectory from multiple files, returning Trajectory or diagnostic error string.
| [in] | filenames | Paths to the files containing the trajectory. |
| [in] | type | File format type used to decode the files. |
| [in] | progress_callback | Optional callback invoked during reading. |

| const bool correlation::readers::REGISTERED = ReaderFactory::registerTypeSafe<ArcReader>("ArcReader") |