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
Copy file name to clipboardExpand all lines: doc/gpumd/input_parameters/fix.rst
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,28 @@ This keyword can be used to fix (freeze) a group of atoms
9
9
10
10
Syntax
11
11
------
12
-
This keyword requires a single parameter which is the label of the group in which the atoms are to be fixed (velocities and forces are always set to zero such that the atoms in the group do not move).
12
+
This keyword accepts 1 or 2 parameters.
13
+
The atoms in the specified group will be fixed (velocities and forces are always set to zero such that the atoms do not move).
13
14
The full command reads::
14
15
15
16
fix <group_label>
17
+
fix <grouping_method> <group_label>
16
18
17
-
Here, the :attr:`group_label` refers to the grouping method 0 defined in the :ref:`simulation model file <model_xyz>`.
19
+
- If only :attr:`group_label` is given, grouping method 0 is used by default.
20
+
- If :attr:`grouping_method` is also specified, the given grouping method defined in the :ref:`simulation model file <model_xyz>` will be used.
21
+
22
+
Example
23
+
-------
24
+
25
+
Fix group 0 using the default grouping method 0::
26
+
27
+
fix 0
28
+
29
+
Fix group 2 using grouping method 1::
30
+
31
+
fix 1 2
18
32
19
33
Caveats
20
34
-------
21
-
This keyword is not propagating, which means that it only affects the simulation within the run it belongs to.
35
+
* This keyword is not propagating, which means that it only affects the simulation within the run it belongs to.
36
+
* When both :attr:`fix` and :ref:`move <kw_move>` are used, they must use the same grouping method.
0 commit comments