8 #include "LammpsDumpWriter.h" 9 #include <tools/storage/Configuration.h> 10 #include <tools/chemistry/Atom.h> 11 #include <tools/chemistry/Group.h> 13 #include <util/archives/BinaryFileOArchive.h> 14 #include <util/format/Dbl.h> 15 #include <util/space/Vector.h> 52 file <<
"ITEM: TIMESTEP" <<
"\n";
53 file << iStep <<
"\n";
55 file <<
"ITEM: NUMBER OF ATOMS" <<
"\n";
56 file << nAtom_ <<
"\n";
58 file <<
"ITEM: BOX BOUNDS pp pp pp" <<
"\n";
60 file <<
Dbl(0.0) <<
Dbl(lengths[0]) <<
"\n";
61 file <<
Dbl(0.0) <<
Dbl(lengths[1]) <<
"\n";
62 file <<
Dbl(0.0) <<
Dbl(lengths[2]) <<
"\n";
70 file <<
"ITEM: ATOMS id type mol x y z" <<
"\n";
73 for ( ; iter.
notEnd(); ++iter) {
75 typeId = iter->typeId;
77 file << typeId + 1 <<
" ";
80 file <<
Dbl(iter->position[i], 13) <<
" ";
const int Dimension
Dimensionality of space.
A Vector is a Cartesian vector.
bool notEnd() const
Is the current pointer not at the end of the array?
const Vector & lengths() const
Get Vector of unit cell lengths by const reference.
Wrapper for a double precision number, for formatted ostream output.
Utility classes for scientific computation.
Forward iterator for an Array or a C array.
A FileMaster manages input and output files for a simulation.