|
faunus
|
XYZ file loader. More...
#include <io.h>


Additional Inherited Members | |
Public Member Functions inherited from Faunus::StructureFileReader | |
| ParticleVector & | load (std::istream &stream) |
| Load entire stream and populate data. | |
| ParticleVector & | load (std::string_view filename) |
Public Attributes inherited from Faunus::StructureFileReader | |
| ParticleVector | particles |
| Point | box_length = Point::Zero() |
| std::vector< std::string > | comments |
| bool | prefer_charges_from_file |
If applicable, prefer charges from AAM file over AtomData More... | |
| bool | box_dimension_support = false |
| bool | particle_charge_support = false |
| bool | particle_radius_support = false |
Protected Member Functions inherited from Faunus::StructureFileReader | |
| void | getNextLine (std::istream &stream, std::string &destination, const std::string &comment_identifiers) |
| Helper function to forward stream. More... | |
| void | handleChargeMismatch (Particle &particle, int atom_index) const |
| Policy if charge mismatch. | |
Static Protected Member Functions inherited from Faunus::StructureFileReader | |
| static size_t | getNumberOfAtoms (const std::string &line) |
| Helper function to extract N. | |
| static void | handleRadiusMismatch (const Particle &particle, double radius, int atom_index) |
| Policy if radius mismatch. | |
Protected Attributes inherited from Faunus::StructureFileReader | |
| size_t | expected_number_of_particles = 0 |
XYZ file loader.
This format has number of particles at the first line; comment on the second line; and positions of named particles on the following lines.
Example:
3 Three point water model (comment) OW 2.30 6.28 1.13 HW 1.37 6.26 1.50 HW 2.31 5.89 0.21
1.8.13