Skip to content

Commit f6b6a0c

Browse files
committed
deploy: 519dee7
1 parent fe668c5 commit f6b6a0c

22 files changed

+830
-217
lines changed

lammpstutorials-inputs/level2/polymer-in-water/pullonPEG/gyration-radius.dat

Lines changed: 602 additions & 0 deletions
Large diffs are not rendered by default.

lammpstutorials-inputs/level2/polymer-in-water/pullonPEG/input.lammps

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ variable z1 equal xcm(topull1,z)
5959
variable z2 equal xcm(topull2,z)
6060
variable delta_r equal sqrt((v_x1-v_x2)^2+(v_y1-v_y2)^2+(v_z1-v_z2)^2)
6161
fix myat2 all ave/time 10 10 100 v_delta_r file end-to-end-distance.dat
62+
compute rgyr PEG gyration
63+
fix myat3 all ave/time 10 10 100 c_rgyr file gyration-radius.dat
6264
thermo 1000
6365

6466
compute bond_H2O H2O bond/local dist # engpot
4.32 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

sphinx/build/html/_sources/tutorials/level2/nanosheared-electrolyte.rst.txt

Lines changed: 32 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ System generation
186186
187187
.. container:: justify
188188

189-
Within the last three lines, a *region* named *rliquid* for depositing the
190-
water molecules are created based on the last defined lattice, which is *fcc 4.04*.
189+
Within the last three lines, a *region* named *rliquid* is created based on the last defined lattice, *fcc 4.04*.
190+
*rliquid* will be used for depositing the water molecules.
191191

192192
.. container:: justify
193193

@@ -196,9 +196,9 @@ System generation
196196

197197
.. container:: justify
198198

199-
Molecules are created on the *fcc 4.04* lattice
199+
The new molecules are placed on the *fcc 4.04* lattice
200200
by the *create_atoms* command. The
201-
first parameter is '0', meaning that the atom IDs from the
201+
first parameter is 0, meaning that the atom IDs from the
202202
*RigidH2O.txt* file will be used.
203203
The number *482793* is a seed that is
204204
required by LAMMPS, it can be any positive integer.
@@ -246,8 +246,8 @@ System generation
246246
247247
.. container:: justify
248248

249-
Create a new text file, call it *PARM.lammps*, and copy it
250-
next to the *systemcreation/* folder. Copy the following lines
249+
Create a new text file called *PARM.lammps* next to
250+
the *systemcreation/* folder. Copy the following lines
251251
into PARM.lammps:
252252

253253
.. code-block:: lammps
@@ -265,10 +265,6 @@ System generation
265265
pair_coeff 5 5 11.697 2.574 # wall
266266
pair_coeff 1 5 0.4 2.86645 # water-wall
267267
268-
bond_coeff 1 0 0.9572 # water
269-
270-
angle_coeff 1 0 104.52 # water
271-
272268
.. container:: justify
273269

274270
Each *mass* command assigns a mass in grams/mole to an atom type. Each
@@ -287,39 +283,36 @@ System generation
287283

288284
.. container:: justify
289285

290-
As already seen in previous tutorials,
291-
and with the important exception of *pair_coeff 1 5*,
292-
only pairwise interaction between atoms of
293-
identical types was assigned. By default, LAMMPS calculates
294-
the pair coefficients for the interactions between atoms
295-
of different types (i and j) by using geometrical
296-
average: :math:`\epsilon_{ij} = (\epsilon_{ii} + \epsilon_{jj})/2`,
297-
:math:`\sigma_{ij} = (\sigma_{ii} + \sigma_{jj})/2.`
298-
Other rules for cross coefficients can be set with the
299-
*pair_modify* command, but for the sake of simplicity,
300-
the default option is kept here.
286+
As already seen in previous tutorials and with the important exception of
287+
*pair_coeff 1 5*, only pairwise interactions between atoms of identical
288+
types was assigned. By default, LAMMPS calculates the pair coefficients for
289+
the interactions between atoms of different types (i and j) by using geometrical average:
290+
:math:`\epsilon_{ij} = (\epsilon_{ii} + \epsilon_{jj})/2`,
291+
:math:`\sigma_{ij} = (\sigma_{ii} + \sigma_{jj})/2.`.
292+
If the default value of :math:`5.941\,\text{kcal/mol}`
293+
was kept for :math:`\epsilon_\text{1-5}`, the solid walls would be extremely
294+
hydrophilic, causing the water molecule to form dense layers. As a comparison,
295+
the water-water energy :math:`\epsilon_\text{1-1}` is only
296+
:math:`0.185199\,\text{kcal/mol}`. Therefore, the walls were made less
297+
hydrophilic by reducing the value of :math:`\epsilon_\text{1-5}`. Copy the
298+
following lines into PARM.lammps as well:
301299

302-
.. container:: justify
300+
.. code-block:: lammps
301+
302+
bond_coeff 1 0 0.9572 # water
303303
304-
By default, the value
305-
of :math:`\epsilon_\text{1-5} = 5.941\,\text{kcal/mol}` would
306-
be extremely high (compared to the water-water
307-
energy :math:`\epsilon_\text{1-1} = 0.185199\,\text{kcal/mol}`),
308-
which would make the surface extremely hydrophilic.
309-
The walls were made less hydrophilic by reducing the
310-
LJ energy of interaction :math:`\epsilon_\text{1-5}`.
304+
angle_coeff 1 0 104.52 # water
311305
312306
.. container:: justify
313307

314-
The *bond_coeff*, which is here used for the O-H bond of the water
315-
molecule, sets both the energy of the harmonic
316-
potential and the equilibrium distance in Ångstrom. The
317-
value is *0* for the energy because we are going to use a
318-
rigid model for the water molecule. The shape of the
319-
molecule will be preserved later by the *shake* algorithm.
320-
Similarly, the angle coefficient here for the H-O-H angle
321-
of the water molecule sets the energy of the harmonic
322-
potential (also 0) and the equilibrium angle is in degree.
308+
The *bond_coeff* command, used here for the O-H bond of the water molecule, sets both
309+
the spring constant of the harmonic potential and the equilibrium distance
310+
of :math:`0.9572~\text{Å}`. The constant can be 0 for a rigid water molecule,
311+
because the shape of the molecule will be preserved by the SHAKE algorithm
312+
(see below) :cite:`ryckaert1977numerical, andersen1983rattle`.
313+
Similarly, the angle coefficient for the H-O-H angle of the water
314+
molecule sets the force constant of the angular harmonic potential to 0 and
315+
the equilibrium angle to :math:`104.52^\circ`.
323316

324317
.. container:: justify
325318

@@ -497,7 +490,7 @@ Energy minimization
497490

498491
The *fix temp/berendsen* rescales the
499492
velocities of the atoms to force the temperature of the system
500-
to reach the desired value of 1 K, and the shake algorithm
493+
to reach the desired value of 1 K, and the SHAKE algorithm
501494
is used in order to maintain the shape of the water molecules.
502495

503496
.. container:: justify

sphinx/build/html/_sources/tutorials/level3/water-adsorption-in-silica.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ Using hydrid potentials
643643

644644
.. container:: justify
645645

646-
The shake algorithm is used to
646+
The SHAKE algorithm is used to
647647
maintain the shape of the water molecules over time. Some of
648648
these features have been seen in previous tutorials.
649649

sphinx/build/html/non-tutorials/before-you-start.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ <h2>Required software<a class="headerlink" href="#required-software" title="Link
311311
<h3>LAMMPS (2Aug2023)<a class="headerlink" href="#lammps-2aug2023" title="Link to this heading"></a></h3>
312312
<div class="justify docutils container">
313313
<p>Download and install LAMMPS version 2Aug2023 by following the
314-
instructions of the <a href="https://docs.lammps.org/Install.html" target="_blank">LAMMPS website</a> <span id="id1">[<a class="reference internal" href="bibliography.html#id16" title="Aidan P Thompson, H Metin Aktulga, Richard Berger, Dan S Bolintineanu, W Michael Brown, Paul S Crozier, Pieter J in't Veld, Axel Kohlmeyer, Stan G Moore, Trung Dac Nguyen, and others. LAMMPS-a flexible simulation tool for particle-based materials modeling at the atomic, meso, and continuum scales. Computer Physics Communications, 271:108171, 2022.">1</a>]</span>.
314+
instructions of the <a href="https://docs.lammps.org/Install.html" target="_blank">LAMMPS website</a> <span id="id1">[<a class="reference internal" href="bibliography.html#id18" title="Aidan P Thompson, H Metin Aktulga, Richard Berger, Dan S Bolintineanu, W Michael Brown, Paul S Crozier, Pieter J in't Veld, Axel Kohlmeyer, Stan G Moore, Trung Dac Nguyen, and others. LAMMPS-a flexible simulation tool for particle-based materials modeling at the atomic, meso, and continuum scales. Computer Physics Communications, 271:108171, 2022.">1</a>]</span>.
315315
Depending on your operating system (i.e. Linux, macOS, or Windows),
316316
the procedure may differ.</p>
317317
</div>
@@ -337,7 +337,7 @@ <h3>LAMMPS (2Aug2023)<a class="headerlink" href="#lammps-2aug2023" title="Link t
337337
<h3>VMD (optional)<a class="headerlink" href="#vmd-optional" title="Link to this heading"></a></h3>
338338
<div class="justify docutils container">
339339
<p>To visualize the simulation, <a href="https://www.ks.uiuc.edu/Research/vmd" target="_blank">VMD</a> version 1.9.3 will
340-
be used <span id="id2">[<a class="reference internal" href="bibliography.html#id18" title="William Humphrey, Andrew Dalke, and Klaus Schulten. VMD: visual molecular dynamics. Journal of molecular graphics, 14(1):33–38, 1996.">2</a>]</span>. Some basic instructions for VMD are given here in the
340+
be used <span id="id2">[<a class="reference internal" href="bibliography.html#id20" title="William Humphrey, Andrew Dalke, and Klaus Schulten. VMD: visual molecular dynamics. Journal of molecular graphics, 14(1):33–38, 1996.">2</a>]</span>. Some basic instructions for VMD are given here in the
341341
<a class="reference internal" href="../tutorials/vmd/vmd-tutorial.html#vmd-label"><span class="std std-ref">VMD tutorial</span></a>. Feel free to use an alternative visualization
342342
software like <a href="https://www.ovito.org" target="_blank">Ovito</a>.</p>
343343
</div>
@@ -348,13 +348,13 @@ <h3>Python (optional)<a class="headerlink" href="#python-optional" title="Link t
348348
<p>To perform post-mortem analysis of the data during the <a class="reference internal" href="../tutorials/mdanalysis/mdanalysis-tutorial.html#mda-label"><span class="std std-ref">MDAnalysis tutorials</span></a>,
349349
MDAnalysis version 2.6.1 is used
350350
together with Python version 3.11.4
351-
<span id="id3">[<a class="reference internal" href="bibliography.html#id17" title="Guido Van Rossum and Fred L Drake Jr. Python reference manual. Centrum voor Wiskunde en Informatica Amsterdam, 1995.">3</a>, <a class="reference internal" href="bibliography.html#id20" title="Naveen Michaud-Agrawal, Elizabeth J Denning, Thomas B Woolf, and Oliver Beckstein. MDAnalysis: a toolkit for the analysis of molecular dynamics simulations. Journal of computational chemistry, 32(10):2319–2327, 2011.">4</a>, <a class="reference internal" href="bibliography.html#id19" title="Richard J Gowers, Max Linke, Jonathan Barnoud, Tyler JE Reddy, Manuel N Melo, Sean L Seyler, Jan Domanski, David L Dotson, Sébastien Buchoux, Ian M Kenney, and others. MDAnalysis: a Python package for the rapid analysis of molecular dynamics simulations. In Proceedings of the 15th python in science conference, volume 98, 105. SciPy Austin, TX, 2016.">5</a>]</span>.</p>
351+
<span id="id3">[<a class="reference internal" href="bibliography.html#id19" title="Guido Van Rossum and Fred L Drake Jr. Python reference manual. Centrum voor Wiskunde en Informatica Amsterdam, 1995.">3</a>, <a class="reference internal" href="bibliography.html#id22" title="Naveen Michaud-Agrawal, Elizabeth J Denning, Thomas B Woolf, and Oliver Beckstein. MDAnalysis: a toolkit for the analysis of molecular dynamics simulations. Journal of computational chemistry, 32(10):2319–2327, 2011.">4</a>, <a class="reference internal" href="bibliography.html#id21" title="Richard J Gowers, Max Linke, Jonathan Barnoud, Tyler JE Reddy, Manuel N Melo, Sean L Seyler, Jan Domanski, David L Dotson, Sébastien Buchoux, Ian M Kenney, and others. MDAnalysis: a Python package for the rapid analysis of molecular dynamics simulations. In Proceedings of the 15th python in science conference, volume 98, 105. SciPy Austin, TX, 2016.">5</a>]</span>.</p>
352352
</div>
353353
<div class="justify docutils container">
354354
<p>To plot the results from the simulations,
355355
<a href="https://matplotlib.org/3.5.3/api/_as_gen/matplotlib.pyplot.html" target="_blank">Matplotlib Pyplot</a> version 3.5.2 is used
356356
in combination with <a href="https://github.com/henriasv/lammps-logfile" target="_blank">lammps logfile</a>, a library allowing
357-
one to read the <em>log</em> file produced by LAMMPS <span id="id4">[<a class="reference internal" href="bibliography.html#id22" title="J. D. Hunter. Matplotlib: a 2d graphics environment. Computing in Science &amp; Engineering, 9(3):90–95, 2007.">6</a>, <a class="reference internal" href="bibliography.html#id27" title="Henrik Andersen Sveinsson. LAMMPS logfile reader. 2021.">7</a>]</span>.</p>
357+
one to read the <em>log</em> file produced by LAMMPS <span id="id4">[<a class="reference internal" href="bibliography.html#id24" title="J. D. Hunter. Matplotlib: a 2d graphics environment. Computing in Science &amp; Engineering, 9(3):90–95, 2007.">6</a>, <a class="reference internal" href="bibliography.html#id29" title="Henrik Andersen Sveinsson. LAMMPS logfile reader. 2021.">7</a>]</span>.</p>
358358
</div>
359359
</section>
360360
<section id="text-editing-software">
@@ -379,14 +379,14 @@ <h2>Recommended reading<a class="headerlink" href="#recommended-reading" title="
379379
<div class="justify docutils container">
380380
<p>To better understand molecular dynamics simulations, I recommend the reading
381381
of <em>Understanding molecular simulation</em> by Daan Frenkel and Berend
382-
Smit <span id="id5">[<a class="reference internal" href="bibliography.html#id28" title="Daan Frenkel and Berend Smit. Understanding molecular simulation: from algorithms to applications. Elsevier, 2023.">8</a>]</span>, as well as
382+
Smit <span id="id5">[<a class="reference internal" href="bibliography.html#id30" title="Daan Frenkel and Berend Smit. Understanding molecular simulation: from algorithms to applications. Elsevier, 2023.">8</a>]</span>, as well as
383383
<em>Computer simulation of liquids</em> by Michael Allen and Dominic Tildesley
384-
<span id="id6">[<a class="reference internal" href="bibliography.html#id14" title="Michael P Allen and Dominic J Tildesley. Computer simulation of liquids. Oxford university press, 2017.">9</a>]</span>. To understand the basic concepts
384+
<span id="id6">[<a class="reference internal" href="bibliography.html#id16" title="Michael P Allen and Dominic J Tildesley. Computer simulation of liquids. Oxford university press, 2017.">9</a>]</span>. To understand the basic concepts
385385
of fluid and Soft Matter systems, I recommend reading <em>Basic concepts for
386386
simple and complex liquids</em> by Jean-Louis Barrat and Jean-Pierre Hansen
387387
<span id="id7">[<a class="reference internal" href="bibliography.html#id2" title="Jean-Louis Barrat and Jean-Pierre Hansen. Basic concepts for simple and complex liquids. Cambridge University Press, 2003.">10</a>]</span>,
388388
as well as <em>Theory of simple liquids: with applications to soft matter</em>
389-
by Jean-Pierre Hansen and Ian Ranald McDonald <span id="id8">[<a class="reference internal" href="bibliography.html#id13" title="Jean-Pierre Hansen and Ian Ranald McDonald. Theory of simple liquids: with applications to soft matter. Academic press, 2013.">11</a>]</span>.</p>
389+
by Jean-Pierre Hansen and Ian Ranald McDonald <span id="id8">[<a class="reference internal" href="bibliography.html#id15" title="Jean-Pierre Hansen and Ian Ranald McDonald. Theory of simple liquids: with applications to soft matter. Academic press, 2013.">11</a>]</span>.</p>
390390
</div>
391391
</section>
392392
</section>

0 commit comments

Comments
 (0)