This is part of the generic module |
This action is used to rebuild molecules that can become split by the periodic boundary conditions.
It is similar to the ALIGN_ATOMS keyword of plumed1, and is needed since some MD dynamics code (e.g. GROMACS) can break molecules during the calculation.
Running some CVs without this command can cause there to be discontinuities changes in the CV value and artifacts in the calculations. This command can be applied more than once. To see what effect is has use a variable without pbc or use the DUMPATOMS directive to output the atomic positions.
The way WHOLEMOLECULES modifies each of the listed entities is this:
In this way, if an entity consists of a list of atoms such that consecutive atoms in the list are always closer than half a box side the entity will become whole. This can be usually achieved selecting consecutive atoms (1-100), but it is also possible to skip some atoms, provided consecutive chosen atoms are close enough.
ENTITY | the atoms that make up a molecule that you wish to align. To specify multiple molecules use a list of ENTITY keywords: ENTITY0, ENTITY1,... You can use multiple instances of this keyword i.e. ENTITY1, ENTITY2, ENTITY3... |
RESIDUES | this command specifies that the backbone atoms in a set of residues all must be aligned. It must be used in tandem with the MOLINFO action and the MOLTYPE keyword. If you wish to use all the residues from all the chains in your system you can do so by specifying all. Alternatively, if you wish to use a subset of the residues you can specify the particular residues you are interested in as a list of numbers |
STRIDE | ( default=1 ) the frequency with which molecules are reassembled. Unless you are completely certain about what you are doing leave this set equal to 1! |
ADDREFERENCE | ( default=off ) Set this flag if you want to define a reference position for the first atom of each entity |
MOLTYPE | the type of molecule that is under study. This is used to define the backbone atoms |
REF | Add reference position for first atom of each entity You can use multiple instances of this keyword i.e. REF1, REF2, REF3... |
This command instructs plumed to reconstruct the molecule containing atoms 1-20 at every step of the calculation and dump them on a file.
# to see the effect, one could dump the atoms as they were before molecule reconstruction: # DUMPATOMS FILE=dump-broken.xyz ATOMS=1-20 WHOLEMOLECULES ENTITY0=1-20 DUMPATOMS FILE=dump.xyz ATOMS=1-20
This command instructs plumed to reconstruct two molecules containing atoms 1-20 and 30-40
WHOLEMOLECULES ENTITY0=1-20 ENTITY1=30-40 DUMPATOMS FILE=dump.xyz ATOMS=1-20,30-40
This command instructs plumed to reconstruct the chain of backbone atoms in a protein
#SETTINGS MOLFILE=regtest/basic/rt32/helix.pdb MOLINFO STRUCTURE=helix.pdb WHOLEMOLECULES RESIDUES=all MOLTYPE=protein