Record xyz coordinates of one particle quickly?
Posted: Tue Oct 09, 2018 11:32 pm
Hi all,
I'm doing umbrella sampling using a large system (~420,000 particles).
I'd like to record the position of one particle representing the umbrella as efficiently and as frequently as possible.
DCDReporter is quite slow for frequent writing, and I am not interested in frequently writing the position of all atoms in the system.
DCDReporter does "self._dcd.writeModel(state.getPositions(), periodicBoxVectors=state.getPeriodicBoxVectors())" to get the positions to pass to DCDfile.
However, might there be a way to write the position of one (or a subset) of particles in the system without accessing state? Or would it be about as fast as possible to just modify this line in DCDReporter to only access the atom index or indices of interest?
I'm doing umbrella sampling using a large system (~420,000 particles).
I'd like to record the position of one particle representing the umbrella as efficiently and as frequently as possible.
DCDReporter is quite slow for frequent writing, and I am not interested in frequently writing the position of all atoms in the system.
DCDReporter does "self._dcd.writeModel(state.getPositions(), periodicBoxVectors=state.getPeriodicBoxVectors())" to get the positions to pass to DCDfile.
However, might there be a way to write the position of one (or a subset) of particles in the system without accessing state? Or would it be about as fast as possible to just modify this line in DCDReporter to only access the atom index or indices of interest?