An official website of the United States government
Here’s how you know
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock (
)or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.
a trajectory object to be used with an ivm.IVM object, used to
write coordinates to a XPLOR-style DCD file during a trajectory run.
Use the IVM setTrajectory method to write a given ivm
trajectory. Example:
from ivm import IVM
integrator=IVM()
from trajFile import TrajFile
traj=TrajFile("traj.dcd",saveInterval=2)
integrator.setTrajectory( traj)
Specify the filename for the output trajectory
file. freeAtoms is an atomSel.AtomSel specifying which
atoms are moving. start specifies at which frame trajectory
writing commences, while saveInterval specifies how many
frames to skip between writing. If isFormatted=True, an ASCII
trajectory file is written. If printCoords=True, in addition
to writing the trajectory file, all freeAtoms coordinates are
printed at each specified saveInterval. If fixXY is set to true, the
x- and y- coordinates of the entire trajectory are centered on their
center of mass values.
If constantTime=True, frames will be
interpolated and written at equal time increments such that the
time = index * delta_t
Read the next frame from the trajectory file into the simulation
specified in the constructor, optionally skipping the specified number
of frames. On return the time member is set to the current time.