@@ -186,8 +186,8 @@ System generation
186
186
187
187
.. container :: justify
188
188
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.
191
191
192
192
.. container :: justify
193
193
@@ -196,9 +196,9 @@ System generation
196
196
197
197
.. container :: justify
198
198
199
- Molecules are created on the *fcc 4.04 * lattice
199
+ The new molecules are placed on the *fcc 4.04 * lattice
200
200
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
202
202
*RigidH2O.txt * file will be used.
203
203
The number *482793 * is a seed that is
204
204
required by LAMMPS, it can be any positive integer.
@@ -246,8 +246,8 @@ System generation
246
246
247
247
.. container :: justify
248
248
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
251
251
into PARM.lammps:
252
252
253
253
.. code-block :: lammps
@@ -265,10 +265,6 @@ System generation
265
265
pair_coeff 5 5 11.697 2.574 # wall
266
266
pair_coeff 1 5 0.4 2.86645 # water-wall
267
267
268
- bond_coeff 1 0 0.9572 # water
269
-
270
- angle_coeff 1 0 104.52 # water
271
-
272
268
.. container :: justify
273
269
274
270
Each *mass * command assigns a mass in grams/mole to an atom type. Each
@@ -287,39 +283,36 @@ System generation
287
283
288
284
.. container :: justify
289
285
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:
301
299
302
- .. container :: justify
300
+ .. code-block :: lammps
301
+
302
+ bond_coeff 1 0 0.9572 # water
303
303
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
311
305
312
306
.. container :: justify
313
307
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 `.
323
316
324
317
.. container :: justify
325
318
@@ -497,7 +490,7 @@ Energy minimization
497
490
498
491
The *fix temp/berendsen * rescales the
499
492
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
501
494
is used in order to maintain the shape of the water molecules.
502
495
503
496
.. container :: justify
0 commit comments