DCDReporter stores a molecular dynamics trajectory in the CHARMM / NAMD DCD Format
Parameters: | file : str, or DCDTrajectoryFile
reportInterval : int
atomSubset : array_like, default=None
|
---|
Examples
>>> simulation = Simulation(topology, system, integrator)
>>> dcd_reporter = DCDReporter('traj.dcd', 100)
>>> simulation.reporters.append(dcd_reporter)
>>> simulation.step(10000)
>>> traj = mdtraj.trajectory.load('traj.dcd')
Methods
__init__(file, reportInterval[, atomSubset]) | |
close() | Close the underlying trajectory file |
describeNextReport(simulation) | Get information about the next report this object will generate. |
report(simulation, state) | Generate a report. |
Attributes
backend |
Close the underlying trajectory file
Get information about the next report this object will generate.
Parameters: | simulation : simtk.openmm.app.Simulation
|
---|---|
Returns: | report_description : tuple
|
Generate a report.
Parameters: | simulation : simtk.openmm.app.Simulation
state : simtk.openmm.State
|
---|