You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output from the DIPOLE command now consists of three three dimensional vectors called d.x, d.y and d.z that contain the
72
73
x, y and z components of the three dipoles respectively.
73
74
74
-
When running with periodic boundary conditions, the atoms in every group should be
75
-
in the proper periodic image. This is done automatically since PLUMED 2.5,
76
-
by considering the ordered list of atoms and rebuilding the molecule with a procedure
77
-
that is equivalent to that done in [WHOLEMOLECULES](WHOLEMOLECULES.md). Notice that
78
-
rebuilding is local to this action. This is different from [WHOLEMOLECULES](WHOLEMOLECULES.md)
79
-
which actually modifies the coordinates stored in PLUMED. If you want to recover the old behavior
80
-
you should use the NOPBC flag. In that case you need to take care that atoms are in the correct
81
-
periodic image.
75
+
A final important thing to note is that in all the commands above the default is to use a procedure akin to that used in [WHOLEMOLECULES](WHOLEMOLECULES.md) to ensure
76
+
that the sets of atoms that are specified to each GROUP keyword are not broken by the periodic
77
+
boundary conditions. If you would like to turn this off for any reason you add the NOPBC in your input file as shown
78
+
below:
79
+
80
+
```plumed
81
+
d: DIPOLE GROUP=1-10 NOPBC
82
+
PRINT FILE=output STRIDE=5 ARG=d
83
+
```
82
84
83
85
!!! caution "behaviour for non charge neutral groups"
Lastly notice that it is also possible to remove atoms from the list of atoms specified in a GROUP by using the keywords `REMOVE`, `SORT`, and `UNIQUE` as shown below:
90
+
Notice that it is possible to remove atoms from the list of atoms specified in a GROUP by using the keyword `REMOVE` as shown below:
91
91
92
92
```plumed
93
93
# take one atom every three, that is oxygens
@@ -98,6 +98,22 @@ DUMPATOMS ATOMS=ox FILE=ox.gro
98
98
DUMPATOMS ATOMS=hy FILE=hy.gro
99
99
```
100
100
101
+
You can also `SORT` the atoms in a group into ascending order by using the SORT keyword as shown below:
102
+
103
+
```plumed
104
+
# If you ask for this group in the input to another action the atoms will be
105
+
# in ascending order i.e. the specified atoms will be 2,3,4,4,5,6
106
+
g: GROUP ATOMS=5,4,6,3,4,2 SORT
107
+
```
108
+
109
+
or you can sort the atoms and remove duplicated atoms by using the `UNIQUE` flag
110
+
111
+
```plumed
112
+
# If you ask for this group in the input to another action the duplicate atom specifications will be removed
113
+
# and the atoms will be ascending order i.e. the specified atoms will be 2,3,4,5,6
114
+
g: GROUP ATOMS=5,4,6,3,4,2 UNIQUE
115
+
```
116
+
101
117
When you used the GROUP command the flow as follows:
102
118
103
119
- If `ATOMS` is present, then take the ordered list of atoms from the `ATOMS` keyword as a starting list.
Copy file name to clipboardExpand all lines: src/function/Custom.cpp
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -486,6 +486,9 @@ and that the MATHEVAL action evaluates functions [the Lepton library](https://si
486
486
//+ENDPLUMEDOC
487
487
488
488
voidCustom::registerKeywords(Keywords& keys) {
489
+
if( keys.getDisplayName()=="MATHEVAL") {
490
+
keys.setDeprecated("CUSTOM");
491
+
}
489
492
keys.use("PERIODIC");
490
493
keys.add("compulsory","FUNC","the function you wish to evaluate");
491
494
keys.add("optional","VAR","the names to give each of the arguments in the function. If you have up to three arguments in your function you can use x, y and z to refer to them. Otherwise you must use this flag to give your variables names.");
Copy file name to clipboardExpand all lines: src/gridtools/ReadGridInSetup.cpp
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,15 @@ function at the various grid points.
57
57
58
58
N.B. This method with lepton was implemented to facilitate the implementation of the normalisation in the implementation of the [RDF](RDF.md) shortcut.
59
59
60
+
Lastly note that you can specify the grid spacing in the input to this action rather than the number of bins as shown below:
0 commit comments