Skip to content

Commit 6427f97

Browse files
Merge pull request #106 from lammpstutorials/error_tutorial7
Fix error in tutorial7
2 parents d4d615d + ea47cfa commit 6427f97

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

docs/sphinx/source/shared/access-the-files.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
.. |Github_repository_input_folder| raw:: html
99

10-
<a href="https://github.com/lammpstutorials/lammpstutorials-inputs/" target="_blank">Github repository</a>
10+
<a href="https://github.com/lammpstutorials/lammpstutorials-inputs/" target="_blank">GitHub repository</a>

docs/sphinx/source/tutorial7/tutorial.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Basic LAMMPS parameters
3535
To begin this tutorial, if you are using LAMMPS--GUI, select ``Start Tutorial 7``
3636
from the ``Tutorials`` menu and follow the instructions. Alternatively, if you are
3737
not using LAMMPS--GUI, create a new folder and add a file named
38-
**free-energy.lmp**. Open the file in a text editor and paste in the following
38+
**free-sampling.lmp**. Open the file in a text editor and paste in the following
3939
content:
4040

4141
.. code-block:: lammps
@@ -66,7 +66,7 @@ System creation and settings
6666
----------------------------
6767

6868
Let us define the simulation box and randomly add atoms by addying the
69-
following lines to **free-energy.lmp**:
69+
following lines to **free-sampling.lmp**:
7070

7171
.. code-block:: lammps
7272
@@ -119,7 +119,7 @@ frequently overcome the energy barrier due to thermal agitation.
119119

120120
We impose the force :math:`F(x)` to the atoms in the simulation
121121
using the ``fix addforce`` command. Add the following
122-
lines to **free-energy.lmp**:
122+
lines to **free-sampling.lmp**:
123123

124124
.. code-block:: lammps
125125
@@ -161,7 +161,7 @@ VMD-compatible trajectory to a file:
161161
dump_modify viz1 backcolor white acolor 1 cyan adiam 1 3 boxcolor black
162162
163163
# Option 2
164-
dump viz2 all atom 50000 free-energy.lammpstrj
164+
dump viz2 all atom 50000 free-sampling.lammpstrj
165165
166166
Finally, let us perform an equilibration of 50000 steps,
167167
using a timestep of :math:`2\,\text{fs}`, corresponding to a total duration of :math:`100\,\text{ps}`:
@@ -194,10 +194,11 @@ Run and data acquisition
194194

195195
Once the system is equilibrated, we will record the density profile of
196196
the atoms along the :math:`x`-axis using the ``ave/chunk`` command.
197-
Add the following line to **free-energy.lmp**:
197+
Add the following line to **free-sampling.lmp**:
198198

199199
.. code-block:: lammps
200200
201+
# undump viz2 # Uncomment this line if you're using Option 2
201202
reset_timestep 0
202203
203204
thermo 200000
@@ -287,7 +288,7 @@ unbiased free energy profile.
287288
LAMMPS input script
288289
-------------------
289290

290-
If you are using LAMMPS--GUI, open the file named **free-energy.lmp**.
291+
If you are using LAMMPS--GUI, open the file named **umbrella-sampling.lmp**.
291292
Alternatively, if you are not using LAMMPS--GUI, create a new input file
292293
and paste in the following content:
293294

@@ -355,7 +356,7 @@ umbrella sampling run:
355356
dump_modify viz1 backcolor white acolor 1 cyan acolor 2 red adiam 1 3 adiam 2 3 boxcolor black
356357
357358
# Option 2
358-
dump viz2 all atom 50000 free-energy.lammpstrj
359+
dump viz2 all atom 50000 umbrella-sampling.lammpstrj
359360
360361
timestep 2.0
361362
run 50000

0 commit comments

Comments
 (0)