Skip to content

Commit 521b8e3

Browse files
committedJun 26, 2024·
fixed PEG tutorial issue
1 parent 31ee99d commit 521b8e3

File tree

6 files changed

+45
-19
lines changed

6 files changed

+45
-19
lines changed
 

‎docs/lammpstutorials-inputs

Loading
Loading
Loading

‎docs/sphinx/source/tutorials/figures/level2/polymer-in-water/density_H2O-pyplot.ipynb

+30-11
Large diffs are not rendered by default.

‎docs/sphinx/source/tutorials/level2/polymer-in-water.rst

+14-7
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Preparing the water reservoir
7575
bond_style harmonic
7676
angle_style harmonic
7777
dihedral_style harmonic
78-
pair_style lj/cut/coul/long 12
78+
pair_style lj/cut/coul/long 10
7979
kspace_style pppm 1e-5
8080
special_bonds lj 0.0 0.0 0.5 coul 0.0 0.0 1.0 angle yes
8181
@@ -126,13 +126,13 @@ Preparing the water reservoir
126126

127127
With the *pair_style* named *lj/cut/coul/long*, atoms
128128
interact through both a Lennard-Jones (LJ) potential and
129-
Coulomb interactions. The value of :math:`12\,\text{Å}` is
129+
Coulomb interactions. The value of :math:`10\,\text{Å}` is
130130
the cutoff.
131131

132132
.. admonition:: About cutoff in molecular dynamics
133133
:class: info
134134

135-
The cutoff of :math:`12\,\text{Å}` applies to both LJ and Coulomb
135+
The cutoff of :math:`10\,\text{Å}` applies to both LJ and Coulomb
136136
interactions, but in a different way. For LJ *cut*
137137
interactions, atoms interact with each other only if they
138138
are separated by a distance smaller than the cutoff. For
@@ -379,8 +379,8 @@ Preparing the water reservoir
379379

380380
.. container:: justify
381381

382-
You can also open the *density.dat* file to ensure that the system converged
383-
toward an equilibrated liquid water system during the 20 ps of simulation.
382+
Open the *density.dat* file to ensure that the system converged
383+
toward a (reasonably) well-equilibrated liquid water system during the 20 ps of simulation.
384384

385385
.. figure:: ../figures/level2/polymer-in-water/density_H2O-light.png
386386
:alt: Curves showing the equilibration of the water reservoir
@@ -396,6 +396,13 @@ Preparing the water reservoir
396396
density :math:`\rho` reaches
397397
a plateau after :math:`\approx 10\,\text{ps}`.
398398

399+
.. admonition:: Insufficient simulation duration
400+
:class: info
401+
402+
A duration of :math:`20~\text{ps}` is not sufficient to reach the actual equilibrium density.
403+
Increase this duration to at least :math:`500~\text{ps}` to obtain a density value that
404+
is comparable with the values given in Ref. :cite:`wu2006flexible`.
405+
399406
.. container:: justify
400407

401408
If needed, you can |download_H2O.data| the water reservoir I have
@@ -452,7 +459,7 @@ Solvating the PEG in water
452459
bond_style harmonic
453460
angle_style harmonic
454461
dihedral_style harmonic
455-
pair_style lj/cut/coul/long 12
462+
pair_style lj/cut/coul/long 10
456463
kspace_style pppm 1e-5
457464
special_bonds lj 0.0 0.0 0.5 coul 0.0 0.0 1.0 angle yes dihedral yes
458465
@@ -609,7 +616,7 @@ Stretching the PEG molecule
609616
bond_style harmonic
610617
angle_style harmonic
611618
dihedral_style harmonic
612-
pair_style lj/cut/coul/long 12
619+
pair_style lj/cut/coul/long 10
613620
kspace_style pppm 1e-5
614621
special_bonds lj 0.0 0.0 0.5 coul 0.0 0.0 1.0 angle yes dihedral yes
615622

0 commit comments

Comments
 (0)
Please sign in to comment.