Add support for IntraTargetedSwap move #371
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support for IntraTargetedSwap move in NVT, NPT, GCMC, GEMC simulation.
In this move, we randomly pick a box, subVolume, and a residue kind defined for subVolume to transfer from bulk (same box) to subVolume or vice versa.
Rigid body insertion/deletion:
Flexible insertion/deletion:
subVolumePBC
To use this move, user must use the keyword
IntraTargetedSwapFreq
, with following parameters for each subVolume:Static subVolume
Center of subVolume is defined by user, using
SubVolumeCenter
keyword. During the whole simulation, the center of subvolume will remain constant.Here is an example of static subVolume:
Dynamic subVolume
Center of subVolume is calculated during the simulation. In this mode, user must define a list of atom indices (zero based), using
SubVolumeCenterList
keyword; the geometric center of the provided atom indices will be used as center of subVolume.User must make sure that those defined atom list remain in simulation box (by setting the
Beta
value to 2 in PDB file).Here is an example of dynamic subVolume:
Note: User can specify the series of molecule kind to be used for each
subvolume. As an example:
SubVolumeResidueKind 5 Ar Kr // uses Ar and Kr for subvolume 5
Note: Every subvolume must have unique tag.
Note: User can use
-
to set a range of atom indices (e.g. 0-10). zero based atom indices must be used.Note: For defining atom indices in the second box, user does not need to add the total number of atoms in first box to calculate the atom indices in second box. Simply, open the PDB file for second box and find the atom
index - 1
.Note: If both
IntraTargetedSwapFreq
andTargetedSwapFreq
are activated, they use the same subVolume parameters.Validation
Here are the test results to validate the method using UA butane in graphen slit-pore at 360 K in liquid and gas phase.
Files
pore.tar.gz
Figures