8 #include "DdMdGroupTrajectoryWriter.h" 9 #include <ddMd/simulation/Simulation.h> 10 #include <ddMd/communicate/AtomCollector.h> 11 #include <ddMd/storage/AtomIterator.h> 12 #include <ddMd/chemistry/Atom.h> 13 #include <util/archives/BinaryFileOArchive.h> 14 #include <util/space/Vector.h> 15 #include <util/misc/Bit.h> 43 read<unsigned int>(in,
"groupId", groupId_);
52 loadParameter<unsigned int>(ar,
"groupId", groupId_);
115 if (r[j] >= 1.0) r[j] -= 1.0;
116 if (r[j] < 0.0) r[j] += 1.0;
117 ir = floor( UINT_MAX*r[j] + r[j] + 0.5 );
Base class to write a trajectory to a single file.
const int Dimension
Dimensionality of space.
Domain & domain()
Get the Domain by reference.
A Vector is a Cartesian vector.
virtual void save(Serializable::OArchive &ar)
Save internal state to an archive.
Vector & position()
Get position Vector by reference.
virtual void readParameters(std::istream &in)
Read parameters and initialize.
virtual ~DdMdGroupTrajectoryWriter()
Destructor.
void send()
Send all atoms to the master.
A point particle in an MD simulation.
Parallel domain decomposition (DD) MD simulation.
Main object for a domain-decomposition MD simulation.
int id() const
Get unique global index for this atom.
Saving / output archive for binary ostream.
bool isSet(unsigned int flags) const
Is this bit set in the flags integer?
virtual void loadParameters(Serializable::IArchive &ar)
Load internal state from an input archive.
unsigned int & groups()
Get groups bit field by non-const reference.
Utility classes for scientific computation.
Atom * nextPtr()
Return a pointer to the next available atom, or null.
DdMdGroupTrajectoryWriter(Simulation &simulation)
Constructor.
void writeHeader(std::ofstream &file)
Write trajectory file header.
virtual void loadParameters(Serializable::IArchive &ar)
Load internal state from an archive.
AtomCollector & atomCollector()
Get the AtomCollector by reference.
virtual void save(Serializable::OArchive &ar)
Save internal state to an output archive.
Saving archive for binary istream.
bool isCartesian() const
Are atom coordinates Cartesian (true) or generalized (false)?
void setup()
Setup master processor for receiving.
Boundary & boundary()
Get Boundary by reference.
Represents a specific bit location within an unsigned int.
void writeFrame(std::ofstream &file, long iStep)
Write a single frame.
virtual void readParameters(std::istream &in)
Read parameter file block.
AtomStorage & atomStorage()
Get AtomStorage by reference.
void transformCartToGen(const Vector &Rc, Vector &Rg) const
Transform Cartesian Vector to scaled / generalized coordinates.