|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
Classes | |
| struct | StructureWriterOptions |
| Configuration options for serializing atomic structure files. More... | |
| class | BaseStructureWriter |
| Abstract interface for all atomic structure writers. More... | |
| class | CarWriter |
| Writer for Accelrys .car files with periodic boundary conditions. More... | |
| class | CellWriter |
| Writer for CASTEP .cell structure files. More... | |
| class | CifWriter |
| Writer for Crystallographic Information Files (CIF) in P1 symmetry. More... | |
| class | PoscarWriter |
| Writer for VASP POSCAR and CONTCAR files. More... | |
| struct | StructureConvertOptions |
| Options for converting between atomic structure files. More... | |
| class | StructureWriterFactory |
| Factory registry for all atomic structure writers. More... | |
Functions | |
| void | convertStructure (const std::string &input_file, const std::string &output_file, const StructureConvertOptions &options={}) |
| Converts an atomic structure from one format to another. | |
Variables | |
| const bool | CAR_REGISTERED = StructureWriterFactory::registerTypeSafe<CarWriter>("CarWriter") |
| const bool | CELL_REGISTERED = StructureWriterFactory::registerTypeSafe<CellWriter>("CellWriter") |
| const bool | CIF_REGISTERED = StructureWriterFactory::registerTypeSafe<CifWriter>("CifWriter") |
| const bool | POSCAR_REGISTERED |
| void correlation::writers::structure::convertStructure | ( | const std::string & | input_file, |
| const std::string & | output_file, | ||
| const StructureConvertOptions & | options = {} ) |
Converts an atomic structure from one format to another.
Reads the input structure, performs validation on periodicity and atom integrity, and serializes it to the destination format.
| [in] | input_file | Path to the input file. |
| [in] | output_file | Path to the output file. |
| [in] | options | Translation options. |
| std::runtime_error | If input file is missing, format is unsupported, or writing fails. |

| const bool correlation::writers::structure::CAR_REGISTERED = StructureWriterFactory::registerTypeSafe<CarWriter>("CarWriter") |
| const bool correlation::writers::structure::CELL_REGISTERED = StructureWriterFactory::registerTypeSafe<CellWriter>("CellWriter") |
| const bool correlation::writers::structure::CIF_REGISTERED = StructureWriterFactory::registerTypeSafe<CifWriter>("CifWriter") |
| const bool correlation::writers::structure::POSCAR_REGISTERED |