11Generation of the silica block
22==============================
33
4- To begin this tutorial, select `` Start Tutorial 6 `` from the
5- `` Tutorials `` menu of LAMMPS--GUI and follow the instructions.
6- The editor should display the following content corresponding to ** generate.lmp ** :
4+ Create a folder if needed and
5+ place the initial input file, ** generate.lmp **, into it. Then, open the
6+ file in a text editor of your choice, and copy the following into it :
77
88.. code-block :: lammps
99
@@ -14,6 +14,12 @@ The editor should display the following content corresponding to **generate.lmp*
1414 neighbor 1.0 bin
1515 neigh_modify delay 1
1616
17+ .. admonition :: If you are using LAMMPS-GUI
18+ :class: gui
19+
20+ To begin this tutorial, select ``Start Tutorial 6 `` from the
21+ ``Tutorials `` menu of LAMMPS--GUI and follow the instructions.
22+
1723The main difference from some of the previous tutorials is the use of the ``Vashishta ``
1824pair style. The Vashishta potential implicitly models atomic bonds through
1925energy terms dependent on interatomic distances and angles :cite: `vashishta1990interaction `.
@@ -34,7 +40,7 @@ Add the following lines to **generate.lmp**:
3440
3541 The ``create_atoms `` commands are used to place
3642240 Si atoms, and 480 atoms, respectively. This corresponds to
37- an initial density of approximately :math: `2 \text {g/cm}^3 `, which is close
43+ an initial density of approximately :math: `2 \, \ text {g/cm}^3 `, which is close
3844to the expected final density of amorphous silica at 300 K.
3945
4046Now, specify the pair coefficients by indicating that the first atom type
@@ -50,10 +56,6 @@ Ensure that the |SiO_1990_vashishta_6| file is located in the same directory as
5056
5157 <a href="../../../../../.dependencies/lammpstutorials-inputs/tutorial6/SiO.1990.vashishta" target="_blank">SiO.1990.vashishta</a>
5258
53- FIGURE GCMC-generate Amorphous silica (:math: `\text {SiO}_2 `).
54- Silicon atoms are
55- represented in yellow, and oxygen atoms in red.
56-
5759Next, add a ``dump image `` command to **generate.lmp ** to follow the
5860evolution of the system with time:
5961
@@ -62,6 +64,19 @@ evolution of the system with time:
6264 dump viz all image 250 myimage-*.ppm type type shiny 0.1 box no 0.01 view 180 90 zoom 3.4 size 1700 700
6365 dump_modify viz backcolor white acolor Si yellow adiam Si 2.5 acolor O red adiam O 2
6466
67+ .. figure :: figures/generated-silica-dark.png
68+ :class: only-dark
69+ :alt: Amorphous silica block
70+
71+ .. figure :: figures/generated-silica-light.png
72+ :class: only-light
73+ :alt: Amorphous silica block
74+
75+ .. container :: figurelegend
76+
77+ Figure: Amorphous silica (:math: `\text {SiO}_2 `). Silicon atoms are
78+ represented in yellow, and oxygen atoms in red.
79+
6580Let us also print the box volume and system density, alongside the
6681temperature and total energy:
6782
@@ -72,7 +87,7 @@ temperature and total energy:
7287
7388 Finally, let us implement the annealing procedure which
7489consists of three consecutive runs. This procedure was inspired
75- by Ref.\,\ c ite{ della1992molecular} . First, to melt the system,
90+ by Ref. : cite: ` della1992molecular ` . First, to melt the system,
7691a :math: `10 \,\text {ps}` phase at :math: `T = 6000 \,\text {K}` is performed:
7792
7893.. code-block :: lammps
@@ -107,6 +122,12 @@ Here, an anisotropic barostat is used.
107122Anisotropic barostats adjust the dimensions independently, which is
108123generally suitable for a solid phase.
109124
125+ Run the simulation using LAMMPS. From the ``Charts `` window, the temperature
126+ evolution can be observed, showing that it closely follows the desired annealing procedure.
127+ The evolution of the box dimensions over time confirms that the box deformed during the
128+ last stage of the simulation. After the simulation completes, the final LAMMPS topology
129+ file called **generate.data ** will be located next to **generate.lmp **.
130+
110131.. figure :: figures/GCMC-dimension-dm.png
111132 :class: only-dark
112133 :alt: Temperature and density of the silicon
@@ -117,22 +138,14 @@ generally suitable for a solid phase.
117138
118139.. container :: figurelegend
119140
120- a) Temperature, :math: `T`, as a function of time, :math: `t`, during the annealing
141+ Figure: a) Temperature, :math: `T`, as a function of time, :math: `t`, during the annealing
121142 of the silica system. b) System density, :math: `\rho `, during the annealing process. The vertical dashed lines
122143 mark the transition between the different phases of the simulation.
123144
124- Run the simulation using LAMMPS. From the ``Charts `` window, the temperature
125- evolution can be observed, showing that it closely follows the desired annealing procedure (Fig.~\r ef{fig:GCMC-dimension}\, a).
126- The evolution of the box dimensions over time confirms that the box
127- deformed during the last stage of the simulation
128- (Fig.~\r ef{fig:GCMC-dimension}\, b). After the simulation completes, the final
129- LAMMPS topology file called **generate.data **
130- will be located next to **generate.lmp ** (Fig.~\r ef{fig:GCMC-snapshot}).
131-
132145Cracking the silica
133146===================
134147
135- Open the **cracking.lmp ** file, which must contain the following familiar lines:
148+ Create a new file called **cracking.lmp **, and copy the following familiar lines:
136149
137150.. code-block :: lammps
138151
@@ -153,6 +166,11 @@ Open the **cracking.lmp** file, which must contain the following familiar lines:
153166 thermo 250
154167 thermo_style custom step temp etotal vol density
155168
169+ .. admonition :: If you are using LAMMPS-GUI
170+ :class: gui
171+
172+ Open the **cracking.lmp ** file.
173+
156174Let us progressively increase the size of the box in the :math: `x` direction,
157175forcing the silica to deform and eventually crack. To achive this,
158176the ``fix deform `` command is used, with a rate
@@ -172,12 +190,21 @@ The ``fix nvt`` command is employed to control the temperature of the system.
172190As observed from the generated images, the atoms
173191progressively adjust to the changing box dimensions. At some point,
174192bonds begin to break, leading to the appearance of
175- dislocations (Fig.~\r ef{fig:GCMC-cracked}).
193+ dislocations.
194+
195+ .. figure :: figures/cracked-dark.png
196+ :class: only-dark
197+ :alt: Amorphous cracked silica block
198+
199+ .. figure :: figures/cracked-light.png
200+ :class: only-light
201+ :alt: Amorphous cracked silica block
202+
203+ .. container :: figurelegend
176204
177- ADD GCMC-cracked Block of silica
178- after deformation. Silicon atoms are represented in yellow,
179- and oxygen atoms in red. The crack was induced by the
180- imposed deformation of the box along the :math: `x`-axis (i.e.,~the horizontal axis).
205+ Figure: Block of silica after deformation. Silicon atoms are represented in yellow,
206+ and oxygen atoms in red. The crack was induced by the
207+ imposed deformation of the box along the :math: `x`-axis (i.e., the horizontal axis).
181208
182209Adding water
183210============
@@ -193,12 +220,12 @@ classical textbooks like Ref. :cite:`frenkel2023understanding`.
193220Using hydrid potentials
194221-----------------------
195222
196-
197223The first particularly of our system is that it combines water and
198224silica, which necessitates the use of two force fields: Vashishta (for
199225:math: `\text {SiO}_2 `), and TIP4P (for water). Here, the TIP4P/2005 model is
200- employed for the water :cite: `abascal2005general `. Open the
201- **gcmc.lmp ** file, which should contain the following lines:
226+ employed for the water :cite: `abascal2005general `.
227+
228+ Create a new file called **gcmc.lmp **, and copy the following lines into it:
202229
203230.. code-block :: lammps
204231
@@ -212,6 +239,11 @@ employed for the water :cite:`abascal2005general`. Open the
212239 bond_style harmonic
213240 angle_style harmonic
214241
242+ .. admonition :: If you are using LAMMPS-GUI
243+ :class: gui
244+
245+ Open the **gcmc.lmp ** file.
246+
215247Combining the two force fields, Vashishta and TIP4P/2005, is achieved
216248using the ``hybrid/overlay `` pair style. The PPPM
217249solver :cite: `luty1996calculating ` is specified with the ``kspace ``
@@ -293,7 +325,7 @@ We can now proceed to complete the **gcmc.lmp** file by adding the system defini
293325 group SiO type Si O
294326 group H2O type OW HW
295327
296- After reading the data file and defining the ``h2omol `` molecule from the **H2O.txt **
328+ After reading the data file and defining the ``h2omol `` molecule from the **H2O.mol **
297329file, the ``create_atoms `` command is used to include three water molecules
298330in the system. Then, add the following ``pair_coeff `` (and
299331``bond_coeff `` and ``angle_coeff ``) commands
@@ -400,6 +432,13 @@ Finally, let us print some information and run for 25 ps:
400432
401433 run 25000
402434
435+ Running this simulation using LAMMPS, one can see that the number of molecules is increasing
436+ progressively. When using the pressure argument, LAMMPS ignores the value of the
437+ chemical potential (here :math: `\mu = -0.5 \,\text {eV}`, which corresponds roughly to
438+ ambient conditions, i.e. to a relative humidity :math: `\text {RH} \approx 50 \,\%` :cite: `gravelle2020multi `.)
439+ The large pressure value of 100 bars was chosen to ensure that some successful
440+ insertions of molecules would occur during the short duration of this simulation.
441+
403442.. figure :: figures/GCMC-number-dm.png
404443 :class: only-dark
405444 :alt: Number of water molecules from GCMC somulations
@@ -410,24 +449,26 @@ Finally, let us print some information and run for 25 ps:
410449
411450.. container :: figurelegend
412451
413- Number of water molecules, :math: `N_\text {H2 O}`, as a function of time, :math: `t`.
414-
415- Running this simulation using LAMMPS, one can see that the number of molecules is increasing
416- progressively. When using the pressure argument, LAMMPS ignores the value of the
417- chemical potential (here :math: `\mu = -0.5 \,\text {eV}`, which corresponds roughly to
418- ambient conditions, i.e. to a relative humidity :math: `\text {RH} \approx 50 \,\%` :cite: `gravelle2020multi `.)
419- The large pressure value of 100\, bars was chosen to ensure that some successful
420- insertions of molecules would occur during the short duration of this simulation.
452+ Figure: Number of water molecules, :math: `N_\text {H2 O}`, as a function of time, :math: `t`.
421453
422454After a few GCMC steps, the number of molecules starts increasing. Once the
423- crack is filled with water molecules, the total number of molecules reaches a plateau
424- (Figs.\,\r ef{fig:GCMC-number}-\r ef{fig:GCMC-solvated}). The final number of
455+ crack is filled with water molecules, the total number of molecules reaches a plateau. The final number of
425456molecules depends on the imposed pressure, temperature, and the interaction
426457between water and silica (i.e. its hydrophilicity). Note that GCMC simulations
427458of such dense phases are usually slow to converge due to the very low probability
428459of successfully inserting a molecule. Here, the short simulation duration was
429460made possible by the use of a high pressure.
430461
431- ADD FIGURE GCMC-SOLVATED Snapshot of the silica system after the adsorption of water molecules.
432- The oxygen atoms of the water molecules are represented in cyan, the silicon
433- atoms in yellow, and the oxygen atoms of the solid in red.
462+ .. figure :: figures/solvated-dark.png
463+ :class: only-dark
464+ :alt: Amorphous cracked silica block solvated with water
465+
466+ .. figure :: figures/solvated-light.png
467+ :class: only-light
468+ :alt: Amorphous cracked silica block solvated with water
469+
470+ .. container :: figurelegend
471+
472+ Figure: Snapshot of the silica system after the adsorption of water molecules.
473+ The oxygen atoms of the water molecules are represented in cyan, the silicon
474+ atoms in yellow, and the oxygen atoms of the solid in red.
0 commit comments