@@ -215,15 +215,16 @@ random positions are made. Each attempt is either accepted or rejected
215215based on energy considerations. For further details, please refer to
216216classical textbooks like Ref. :cite: `frenkel2023understanding `.
217217
218- Using hydrid potentials
218+ Adapting the pair style
219219-----------------------
220220
221- The first particularly of our system is that it combines water and
222- silica, which necessitates the use of two force fields: Vashishta (for
223- :math: `\text {SiO}_2 `), and TIP4P (for water). Here, the TIP4P/2005 model is
224- employed for the water :cite: `abascal2005general `.
225-
226- Create a new file called **gcmc.lmp **, and copy the following lines into it:
221+ For this next step, we need to define the parameters for the water molecules and
222+ the cross-interactions between water and silica. The TIP4P/2005 model is employed
223+ for the water :cite: `abascal2005general `, while no specific parameters are set
224+ for the silica itself. The atoms of the silica will remain frozen during this part.
225+ Only the cross-interactions between water and silica need
226+ to be defined. Create a new file called **gcmc.lmp **, and copy the following
227+ lines into it:
227228
228229.. code-block :: lammps
229230
@@ -232,7 +233,7 @@ Create a new file called **gcmc.lmp**, and copy the following lines into it:
232233 atom_style full
233234 neighbor 1.0 bin
234235 neigh_modify delay 1
235- pair_style hybrid/overlay vashishta lj/cut/tip4p/long OW HW OW-HW HW-OW-HW 0.1546 10
236+ pair_style lj/cut/tip4p/long OW HW OW-HW HW-OW-HW 0.1546 10
236237 kspace_style pppm/tip4p 1.0e-5
237238 bond_style harmonic
238239 angle_style harmonic
@@ -242,14 +243,20 @@ Create a new file called **gcmc.lmp**, and copy the following lines into it:
242243
243244 Open the **gcmc.lmp ** file.
244245
245- Combining the two force fields, Vashishta and TIP4P/2005, is achieved
246- using the ``hybrid/overlay `` pair style. The PPPM
247- solver :cite: `luty1996calculating ` is specified with the ``kspace ``
246+ The PPPM solver :cite: `luty1996calculating ` is specified with the ``kspace ``
248247command, and is used to compute the long-range Coulomb interactions associated
249248with ``tip4p/long ``. Finally, the style for the bonds
250249and angles of the water molecules are defined; however, these specifications are
251250not critical since TIP4P/2005 is a rigid water model.
252251
252+ .. admonition :: Note
253+ :class: non-title-info
254+
255+ In practice, it is possible to use both ``vashishta `` and
256+ ``lj/cut/tip4p/long `` pair styles by employing the ``pair_style hybrid ``
257+ command. However, hybridizing force fields should be done with caution, as there
258+ is no guarantee that the resulting force field will produce meaningful results.
259+
253260The water molecule template called |H2O_mol_6 |
254261must be downloaded and located next to **gcmc.lmp **.
255262
@@ -331,26 +338,31 @@ to **gcmc.lmp**:
331338
332339.. code-block :: lammps
333340
334- pair_coeff * * vashishta SiO.1990.vashishta Si O NULL NULL
335- pair_coeff * * lj/cut/tip4p/long 0 0
336- pair_coeff Si OW lj/cut/tip4p/long 0.0057 4.42
337- pair_coeff O OW lj/cut/tip4p/long 0.0043 3.12
338- pair_coeff OW OW lj/cut/tip4p/long 0.008 3.1589
339- pair_coeff HW HW lj/cut/tip4p/long 0.0 0.0
341+ pair_coeff * * 0 0
342+ pair_coeff Si OW 0.0057 4.42
343+ pair_coeff O OW 0.0043 3.12
344+ pair_coeff OW OW 0.008 3.1589
345+ pair_coeff HW HW 0.0 0.0
340346 bond_coeff OW-HW 0 0.9572
341347 angle_coeff HW-OW-HW 0 104.52
342348
343- The force field Vashishta applies only to ``Si `` and ``O `` of :math: `\text {SiO}_2 `,
344- and not to the ``OW `` and ``HW `` of :math: `\text {H}_2 \text {O}`, thanks to the ``NULL `` parameters
345- used for atoms of types ``OW `` and ``HW ``. Pair coefficients for the ``lj/cut/tip4p/long ``
349+ Pair coefficients for the ``lj/cut/tip4p/long ``
346350potential are defined between O(:math: `\text {H}_2 \text {O}`) and between H(:math: `\text {H}_2 \text {O}`)
347351atoms, as well as between O(:math: `\text {SiO}_2 `)-O(:math: `\text {H}_2 \text {O}`) and
348- Si(:math: `\text {SiO}_2 `)-O(:math: `\text {H}_2 \text {O}`). Thus, the fluid-fluid and the
352+ Si(:math: `\text {SiO}_2 `)-O(:math: `\text {H}_2 \text {O}`). Thus, the fluid-fluid and the
349353fluid-solid interactions will be adressed with by the ``lj/cut/tip4p/long `` potential.
350354The ``bond_coeff `` and ``angle_coeff `` commands set the ``OW-HW ``
351355bond length to 0.9572 Å, and the ``HW-OW-HW ``
352356angle to :math: `104.52 ^\circ `, respectively :cite: `abascal2005general `.
353357
358+ .. admonition :: Note
359+ :class: non-title-info
360+
361+ The pair coefficients for interactions between Si(:math: `\text {SiO}_2 `)
362+ and O(:math: `\text {SiO}_2 `) are set by the first command, ``pair_coeff * * 0 0 ``,
363+ which effectively means that they do not interact. This is acceptable here because
364+ the silica atoms remain frozen during this part of the tutorial.
365+
354366Add the following lines to **gcmc.lmp ** as well:
355367
356368.. code-block :: lammps
@@ -389,17 +401,14 @@ following lines into **gcmc.lmp**:
389401 compute ctH2O H2O temp
390402 compute_modify thermo_temp dynamic/dof yes
391403 compute_modify ctH2O dynamic/dof yes
392- fix mynvt1 H2O nvt temp 300 300 0.1
393- fix_modify mynvt1 temp ctH2O
394- fix mynvt2 SiO nvt temp 300 300 0.1
404+ fix mynvt H2O nvt temp 300 300 0.1
405+ fix_modify mynvt temp ctH2O
395406 timestep 0.001
396407
397- Two different thermostats are used for :math: `\text {SiO}_2 ` and :math: `\text {H}_2 \text {O}`,
398- respectively. Using separate thermostats is usually better when the system contains
399- two separate species, such as a solid and a liquid. It is particularly important
400- to use two thermostats here because the number of water molecules will fluctuate
401- with time. The ``compute_modify `` command with the ``dynamic/dof yes ``
402- option for water is used to specify that the number of molecules will not be constant.
408+ Here, the ``fix nvt `` applies only to the water molecules, so
409+ the atoms in the silica remain fixed. The ``compute_modify `` command with
410+ the ``dynamic/dof yes `` option is used for water to account for the fact
411+ that the number of molecules is not constant.
403412
404413Finally, let us use the ``fix gcmc `` and perform the grand canonical Monte
405414Carlo steps. Add the following lines into **gcmc.lmp **:
0 commit comments