@@ -187,8 +187,8 @@ And then launch the energy minimization again using:
187
187
gmx grompp -f inputs/em.mdp -c peg-solvated.gro -p topol.top -o em
188
188
gmx mdrun -deffnm em -v -nt 8
189
189
190
- The * define = -DFLEXIBLE * option triggers the following *if * condition
191
- within the *tip3p.itp * file:
190
+ The `` define = -DFLEXIBLE `` option triggers the following ** if * * condition
191
+ within the ** tip3p.itp * * file:
192
192
193
193
.. code-block :: bw
194
194
@@ -202,11 +202,11 @@ within the *tip3p.itp* file:
202
202
; i j k funct angle force.c.
203
203
2 1 3 1 104.52 628.02 104.52 628.02
204
204
205
- With this *if * condition the water molecules
205
+ With this ** if * * condition the water molecules
206
206
behave as flexible. This is better because rigid molecules and
207
207
energy minimization usually don't go along well. For the next molecular
208
208
dynamics steps, rigid water molecules will be used by not including
209
- the * define = -DFLEXIBLE * command in the inputs.
209
+ the `` define = -DFLEXIBLE `` command in the inputs.
210
210
211
211
Equilibrate the PEG-water system
212
212
================================
@@ -215,7 +215,7 @@ Let use equilibrate the system in two steps: first a NVT simulation,
215
215
with constant number of particles, constant volume, and imposed temperature,
216
216
and second a NPT simulation with imposed pressure.
217
217
218
- Within the *inputs/ * folder, create a new input named *nvt-peg-h2o.mdp *,
218
+ Within the ** inputs/ ** folder, create a new input named ** nvt-peg-h2o.mdp * *,
219
219
and copy the following lines into it:
220
220
221
221
.. code-block :: bw
@@ -255,24 +255,24 @@ Most of these commands have already been seen. In addition to the conventional
255
255
*md * leap-frog algorithm integrator, long-range Coulomb and short-range
256
256
van der Waals interactions, the LINCS constraint algorithm is used to maintain
257
257
the hydrogen bonds as rigid. An initial temperature of :math: `300 ~K` is given
258
- to the system by the * gen- * commands, and the PEG is maintained in the center
259
- of the box by the * comm-mode * and * comm-grps * commands.
258
+ to the system by the `` gen- `` commands, and the PEG is maintained in the center
259
+ of the box by the `` comm-mode `` and `` comm-grps `` commands.
260
260
261
- Launch the NVT simulation using:
261
+ Launch the * NVT * simulation using:
262
262
263
263
.. code-block :: bash
264
264
265
265
gmx grompp -f inputs/nvt-peg-h2o.mdp -c em.gro -p topol.top -o nvt -maxwarn 1
266
266
gmx mdrun -deffnm nvt -v -nt 8
267
267
268
- The * maxwarn 1 * option is used to avoid a GROMACS WARNING related to the
268
+ The `` maxwarn 1 `` option is used to avoid a GROMACS WARNING related to the
269
269
centering of the PEG in the box.
270
270
271
- Let us follow-up with the NPT equilibration. Duplicate the *nvt-peg-h2o.mdp *
272
- file into a new input file named *npt-peg-h2o.mdp *. Within *npt-peg-h2o.mdp *,
273
- Within the *npt-peg-h2o.mdp *, delete the lines related to the creation
271
+ Let us follow-up with the NPT equilibration. Duplicate the ** nvt-peg-h2o.mdp * *
272
+ file into a new input file named ** npt-peg-h2o.mdp ** . Within ** npt-peg-h2o.mdp * *,
273
+ Within the ** npt-peg-h2o.mdp * *, delete the lines related to the creation
274
274
of velocity as its better to keep the velocities generated during the
275
- NVT run:
275
+ * NVT * run:
276
276
277
277
.. code-block :: bw
278
278
@@ -281,7 +281,7 @@ NVT run:
281
281
gen-seed = 65823
282
282
283
283
In addition to the removal the previous 3 lines, add the following lines
284
- to *npt-peg-h2o.mdp * to specify the isotropic barostat with imposed pressure
284
+ to ** npt-peg-h2o.mdp * * to specify the isotropic barostat with imposed pressure
285
285
of :math: `1 ~\text {bar}`:
286
286
287
287
.. code-block :: bw
@@ -292,25 +292,25 @@ of :math:`1~\text{bar}`:
292
292
ref-p = 1.0
293
293
compressibility = 4.5e-5
294
294
295
- Run the NPT simulation, using the final state of the NVT simulation
296
- *nvt.gro * as starting configuration:
295
+ Run the * NpT * simulation, using the final state of the * NVT * simulation
296
+ ** nvt.gro * * as starting configuration:
297
297
298
298
.. code-block :: bash
299
299
300
300
${gmx} grompp -f inputs/npt-peg-h2o.mdp -c nvt.gro -p topol.top -o npt -maxwarn 1
301
301
${gmx} mdrun -deffnm npt -v -nt 8
302
302
303
303
Let us observe the evolution of the potential energy of the system during the
304
- 3 successive equilibration steps, i.e. the * em * , *nvt *, and *npt * steps,
305
- using the * gmx energy * command as follow:
304
+ 3 successive equilibration steps, i.e. the energy minimization , *NVT *, and *NpT * steps,
305
+ using the `` gmx energy `` command as follow:
306
306
307
307
.. code-block :: bash
308
308
309
309
gmx energy -f em.edr -o energy-em.xvg
310
310
gmx energy -f nvt.edr -o energy-nvt.xvg
311
311
gmx energy -f npt.edr -o energy-npt.xvg
312
312
313
- For each of the 3 * gmx energy * commands, select * potential * .
313
+ For each of the 3 `` gmx energy `` commands, select `` potential `` .
314
314
315
315
.. figure :: ../figures/level2/stretching-a-polymer/potential-energy-light.png
316
316
:alt: Potential energy from molecular dynamics simulation in GROMACS
@@ -331,7 +331,7 @@ between the different atoms of the PEG molecules. This angle
331
331
distribution will be used later as a benchmark to probe the effect of
332
332
of the stretching on the PEG structure.
333
333
334
- Create a new input named *production-peg-h2o.mdp *, and copy the following
334
+ Create a new input named ** production-peg-h2o.mdp * *, and copy the following
335
335
lines into it:
336
336
337
337
.. code-block :: bw
@@ -363,8 +363,8 @@ lines into it:
363
363
comm-mode = linear
364
364
comm-grps = PEG
365
365
366
- This script resembles the *nvt-peg-h2o.mdp * input, but the duration and
367
- output frequency is different, and without the * gen-vel * commands.
366
+ This script resembles the ** nvt-peg-h2o.mdp * * input, but the duration and
367
+ output frequency is different, and without the `` gen-vel `` commands.
368
368
369
369
Run it using:
370
370
@@ -373,17 +373,17 @@ Run it using:
373
373
gmx grompp -f inputs/production-peg-h2o.mdp -c npt.gro -p topol.top -o production -maxwarn 1
374
374
gmx mdrun -deffnm production -v -nt 8
375
375
376
- First, create an index file called *angle.ndx * using the * gmx mk_angndx *
376
+ First, create an index file called ** angle.ndx ** using the `` gmx mk_angndx ``
377
377
command:
378
378
379
379
.. code-block :: bash
380
380
381
381
gmx mk_angndx -s production.tpr -hyd no
382
382
383
- The *angle.ndx * file generated contains groups with all the atoms
383
+ The ** angle.ndx * * file generated contains groups with all the atoms
384
384
involved by an angle constraint, with the exception of the hydrogen
385
- atoms due to the use of * -hyd no * . The atom ids selected in the groups
386
- can be seen from the *index.ndx * file:
385
+ atoms due to the use of `` -hyd no `` . The atom ids selected in the groups
386
+ can be seen from the ** index.ndx * * file:
387
387
388
388
.. code-block :: bw
389
389
@@ -393,8 +393,8 @@ can be seen from the *index.ndx* file:
393
393
59 61 63 66 68 70 73 75 77 80 82 84
394
394
395
395
Here, each number corresponds to the atom index, as can be seen from the
396
- initial *peg.gro * file. For instance, the atom of * id 2 * is a carbon atom,
397
- and the atom with * id 5 * is an oxygen:
396
+ initial ** peg.gro ** file. For instance, the atom of `` id 2 `` is a carbon atom,
397
+ and the atom with `` id 5 `` is an oxygen:
398
398
399
399
.. code-block :: bw
400
400
@@ -410,8 +410,8 @@ and the atom with *id 5* is an oxygen:
410
410
1PEG H4 8 1.699 1.500 1.425 4.2893 1.6837 -0.9462
411
411
(...)
412
412
413
- Then, extract the angle distribution from the *production.xtc *
414
- file using * gmx angle * :
413
+ Then, extract the angle distribution from the ** production.xtc * *
414
+ file using `` gmx angle `` :
415
415
416
416
.. code-block :: bash
417
417
@@ -434,19 +434,18 @@ Select 1 for the O-C-C-O dihedral.
434
434
Stretch on the polymer
435
435
======================
436
436
437
- Create a new folder named *elongated-box/ * next to *cubic-box/ *, and copy
438
- *ff/ *, *inputs/ *, *em-peg.gro *, and em-peg.tpr from *cubic-box/ *
439
- into *elongated-box/ *:
437
+ Create a new folder named ** elongated-box/ ** next to ** cubic-box/ * *, and copy
438
+ ** ff/ ** , ** inputs/ ** , ** em-peg.gro ** , and ** em-peg.tpr ** from ** cubic-box/ * *
439
+ into ** elongated-box/ * *:
440
440
441
441
To leave space for the stretched PEG molecule, let us create an
442
- elongated box of length :math: `6 ~\text {nm}`
443
- along the *x * direction:
442
+ elongated box of length :math: `6 ~\text {nm}` along the *x * direction:
444
443
445
444
.. code-block :: bash
446
445
447
446
gmx trjconv -f em-peg.gro -s em-peg.tpr -o peg-elongated.gro -center -pbc mol -box 6 2.6 2.6
448
447
449
- Select * system * for both centering and output.
448
+ Select `` system `` for both centering and output.
450
449
451
450
Then, follow the exact same steps as previously to solvate and equilibrate
452
451
the system:
@@ -469,9 +468,9 @@ The index file
469
468
470
469
To apply a forcing to the ends of the PEG, one needs to create atom groups.
471
470
Specificaly, we want to create two groups, each containing a single oxygen
472
- atom from the edges of the PEG molecules (with ID 82 and 5 ). In GROMACS,
471
+ atom from the edges of the PEG molecules (with `` id 82`` and `` 5 `` ). In GROMACS,
473
472
this can be done using and index file *.ndx *. Create a new index file
474
- named *index.ndx * using the * gmx make_ndx * command:
473
+ named ** index.ndx ** using the `` gmx make_ndx `` command:
475
474
476
475
.. code-block :: bash
477
476
@@ -486,8 +485,8 @@ When prompted, type the following 4 lines to create 2 additional groups:
486
485
name 6 End1
487
486
name 7 End2
488
487
489
- Then, type * q * for quitting. The index file *index.ndx *
490
- contains 2 additional groups named *End1 * and *End2 *:
488
+ Then, type `` q `` for quitting. The index file ** index.ndx * *
489
+ contains 2 additional groups named ** End1 ** and ** End2 * *:
491
490
492
491
.. code-block :: bw
493
492
@@ -509,7 +508,7 @@ The input file
509
508
510
509
Let us create an input file for the stretching of the PEG molecule.
511
510
512
- Create a new input file named *stretching-peg-h2o.mdp * within *inputs/ *,
511
+ Create a new input file named ** stretching-peg-h2o.mdp ** within ** inputs/ * *,
513
512
and copy the following lines in it:
514
513
515
514
.. code-block :: bw
@@ -538,9 +537,9 @@ and copy the following lines in it:
538
537
ref_t = 300 300
539
538
tc_grps = PEG Water
540
539
541
- So far, the script is similar to the previously created *production-peg-h2o.mdp *
542
- file, but without the * comm-mode * commands. To apply the constant forcing to
543
- the *End1 * and *End2 * groups, add the following lines to *production-peg-h2o.mdp *:
540
+ So far, the script is similar to the previously created ** production-peg-h2o.mdp * *
541
+ file, but without the `` comm-mode `` commands. To apply the constant forcing to
542
+ the ** End1 ** and ** End2 ** groups, add the following lines to ** production-peg-h2o.mdp * *:
544
543
545
544
.. code-block :: bw
546
545
@@ -561,18 +560,18 @@ the *End1* and *End2* groups, add the following lines to *production-peg-h2o.mdp
561
560
The force constant is requested along the *x * direction only (Y N N),
562
561
with a force constant :math: `k = 200 ~\text {kJ}~\text {mol}^{-1 }~\text {nm}^{-1 }`.
563
562
564
- Launch the simulation using the * -n index.ndx * option for the * gmx grompp *
563
+ Launch the simulation using the `` -n index.ndx `` option for the `` gmx grompp ``
565
564
command to refer to the previously created index file, so that GROMACS
566
- finds the * End1 * and * End2 * groups.
565
+ finds the `` End1 `` and `` End2 `` groups.
567
566
568
567
.. code-block :: bash
569
568
570
569
gmx grompp -f inputs/stretching-peg-h2o.mdp -c npt.gro -p topol.top -o stretching -n index.ndx
571
570
gmx mdrun -deffnm stretching -v -nt 8
572
571
573
- Two data files named *stretching_pullf.xvg * and *stretching_pullx.xvg *
572
+ Two data files named ** stretching_pullf.xvg ** and ** stretching_pullx.xvg * *
574
573
are created during the simulation, and contain respectively the
575
- force and distance between the 2 groups * End1 * and * End2 * as a function
574
+ force and distance between the 2 groups `` End1 `` and `` End2 `` as a function
576
575
of time.
577
576
578
577
.. figure :: ../figures/level2/stretching-a-polymer/pull-position-light.png
@@ -601,7 +600,7 @@ by remeasuring the dihedral angle values:
601
600
gmx mk_angndx -s stretching.tpr -hyd no -type dihedral
602
601
gmx angle -n angle.ndx -f stretching-centered.xtc -od dihedral-distribution.xvg -binwidth 0.25 -type dihedral -b 20
603
602
604
- Select 1 for the O-C-C-O dihedral. Here the option * -b 20 * is used to disregard
603
+ Select 1 for the O-C-C-O dihedral. Here, the option `` -b 20 `` is used to disregard
605
604
the first 20 pico-seconds of the simulation during which the PEG has not
606
605
reach is final length.
607
606
0 commit comments