This is part of the generic module |
Rebuild periodic boundary conditions around chosen atoms.
Modify position of atoms indicated by ATOMS by shifting them by lattice vectors so that they are as close as possible to the atoms indicated by AROUND. More precisely, for every atom i in the ATOMS list the following procedure is performed:
This action works similarly to WHOLEMOLECULES in that it replaces atoms coordinate. Notice that only atoms specified with ATOMS are replaced, and that, at variance with WHOLEMOLECULES, the order in which atoms are specified is irrelevant.
This is often convenient at a post processing stage (using the driver), but sometime it is required during the simulation if collective variables need atoms to be in a specific periodic image.
Consider that the computational cost grows with the product of the size of the two lists (ATOMS and AROUND), so that this action can become very expensive. If you are using it to analyze a trajectory this is usually not a big problem. If you use it to analyze a simulation on the fly, e.g. with DUMPATOMS to store a properly wrapped trajectory, consider the possibility of using the STRIDE keyword here (with great care).
This command instructs plumed to move all the ions to their periodic image that is as close as possible to the rna group.
rna: GROUPATOMS=1-100 ions: GROUPthe numerical indexes for the set of atoms in the group.ATOMS=101-110 # first make the rna molecule whole WHOLEMOLECULESthe numerical indexes for the set of atoms in the group.ENTITY0=rna WRAPAROUNDthe atoms that make up a molecule that you wish to align.ATOMS=ionswrapped atoms.AROUND=rna DUMPATOMSreference atoms.FILE=dump.xyzcompulsory keyword file on which to output coordinates; extension is automatically detectedATOMS=rna,ionsthe atom indices whose positions you would like to print out.
In case you want to do it during a simulation and you only care about wrapping the ions in the dump.xyz
file, you can use the following:
# add some restraint that do not require molecules to be whole: a: TORSIONATOMS=1,2,10,11 RESTRAINTthe four atoms involved in the torsional angleARG=athe input for this action is the scalar output from one or more other actions.AT=0.0compulsory keyword the position of the restraintKAPPA=5 # then do the things that are required for dumping the trajectory # notice that they are all done every 100 steps, so as not to # unnecessarily overload the calculation rna: GROUPcompulsory keyword ( default=0.0 ) specifies that the restraint is harmonic and what the values of the force constants on each of the variables areATOMS=1-100 ions: GROUPthe numerical indexes for the set of atoms in the group.ATOMS=101-110 # first make the rna molecule whole WHOLEMOLECULESthe numerical indexes for the set of atoms in the group.ENTITY0=rnathe atoms that make up a molecule that you wish to align.STRIDE=100 WRAPAROUNDcompulsory keyword ( default=1 ) the frequency with which molecules are reassembled.ATOMS=ionswrapped atoms.AROUND=rnareference atoms.STRIDE=100 DUMPATOMScompulsory keyword ( default=1 ) the frequency with which molecules are reassembled.FILE=dump.xyzcompulsory keyword file on which to output coordinates; extension is automatically detectedATOMS=rna,ionsthe atom indices whose positions you would like to print out.STRIDE=100compulsory keyword ( default=1 ) the frequency with which the atoms should be output
Notice that if the biased variable requires a molecule to be whole, you might have to put just the WHOLEMOLECULES command before computing that variable and leave the default STRIDE=1.
This command instructs plumed to center all atoms around the center of mass of a solute molecule.
solute: GROUPATOMS=1-100 all: GROUPthe numerical indexes for the set of atoms in the group.ATOMS=1-1000 # center of the solute: # notice that since plumed 2.2 this also works if the # solute molecule is broken com: COMthe numerical indexes for the set of atoms in the group.ATOMS=solute # notice that we wrap around a single atom. this should be fast WRAPAROUNDthe list of atoms which are involved the virtual atom's definition.ATOMS=allwrapped atoms.AROUND=com DUMPATOMSreference atoms.FILE=dump.xyzcompulsory keyword file on which to output coordinates; extension is automatically detectedATOMS=allthe atom indices whose positions you would like to print out.
Notice that whereas WHOLEMOLECULES is designed to make molecules whole, WRAPAROUND can easily break molecules. In the last example, if solvent (atoms 101-1000) is made e.g. of water, then water molecules could be broken by WRAPAROUND (hydrogen could end up in an image and oxygen in another one). One solution is to use WHOLEMOLECULES on all the water molecules after WRAPAROUND. This is tedious. A better solution is to use the GROUPBY option which is going to consider the atoms listed in ATOMS as a list of groups each of size GROUPBY. The first atom of the group will be brought close to the AROUND atoms. The following atoms of the group will be just brought close to the first atom of the group. Assuming that oxygen is the first atom of each water molecules, in the following examples all the water oxygen atoms will be brought close to the solute, and all the hydrogen atoms will be kept close to their related oxygen.
solute: GROUPATOMS=1-100 water: GROUPthe numerical indexes for the set of atoms in the group.ATOMS=101-1000 com: COMthe numerical indexes for the set of atoms in the group.ATOMS=solute # notice that we wrap around a single atom. this should be fast WRAPAROUNDthe list of atoms which are involved the virtual atom's definition.ATOMS=solutewrapped atoms.AROUND=com # notice that we wrap around a single atom. this should be fast WRAPAROUNDreference atoms.ATOMS=waterwrapped atoms.AROUND=comreference atoms.GROUPBY=3 DUMPATOMScompulsory keyword ( default=1 ) group atoms so as not to break moleculesFILE=dump.xyzcompulsory keyword file on which to output coordinates; extension is automatically detectedATOMS=solute,waterthe atom indices whose positions you would like to print out.
AROUND | reference atoms. For more information on how to specify lists of atoms see Groups and Virtual Atoms |
ATOMS | wrapped atoms. For more information on how to specify lists of atoms see Groups and Virtual Atoms |
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! |
GROUPBY | ( default=1 ) group atoms so as not to break molecules |
PAIR | ( default=off ) Pair atoms in AROUND and ATOMS groups |