Simpatico  v1.10
List of all members | Public Member Functions
McMd::DCDTrajectoryReader Class Reference

Detailed Description

TrajectoryReader for CHARMM ".dcd" data files.

It is assumed that the atoms belonging to all species and molecules of a species occur in the file consecutively. Currently it has only been tested with Hoomd generated trajectory files.

Definition at line 32 of file DCDTrajectoryReader.h.

#include <DCDTrajectoryReader.h>

Inheritance diagram for McMd::DCDTrajectoryReader:
McMd::TrajectoryReader

Public Member Functions

 DCDTrajectoryReader (System &system)
 Constructor. More...
 
virtual ~DCDTrajectoryReader ()
 Destructor. More...
 
void open (std::string filename)
 Read trajectory file header and initialize simulation parameters. More...
 
bool readFrame ()
 Read a single frame. More...
 
void close ()
 Close trajectory file. More...
 
- Public Member Functions inherited from McMd::TrajectoryReader
 TrajectoryReader (System &system)
 Constructor. More...
 
virtual ~TrajectoryReader ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from McMd::TrajectoryReader
Systemsystem () const
 Get a reference to the parent System. More...
 
Simulationsimulation () const
 Get a reference to the parent Simulation. More...
 
Boundaryboundary () const
 Get the Boundary. More...
 
virtual void addMolecules ()
 Add all molecules to system. More...
 
- Protected Attributes inherited from McMd::TrajectoryReader
int nAtomTotal_
 Total number of atoms (all species) More...
 

Constructor & Destructor Documentation

McMd::DCDTrajectoryReader::DCDTrajectoryReader ( System system)

Constructor.

Definition at line 35 of file DCDTrajectoryReader.cpp.

McMd::DCDTrajectoryReader::~DCDTrajectoryReader ( )
virtual

Destructor.

Definition at line 45 of file DCDTrajectoryReader.cpp.

Member Function Documentation

void McMd::DCDTrajectoryReader::open ( std::string  filename)
virtual

Read trajectory file header and initialize simulation parameters.

Parameters
filenamename of trajectory file

Implements McMd::TrajectoryReader.

Definition at line 55 of file DCDTrajectoryReader.cpp.

References McMd::TrajectoryReader::addMolecules(), Util::DArray< Data >::allocate(), McMd::TrajectoryReader::nAtomTotal_, and UTIL_THROW.

bool McMd::DCDTrajectoryReader::readFrame ( )
virtual
void McMd::DCDTrajectoryReader::close ( )
virtual

Close trajectory file.

Implements McMd::TrajectoryReader.

Definition at line 205 of file DCDTrajectoryReader.cpp.


The documentation for this class was generated from the following files: