Skip to content

Commit 4f672a1

Browse files
committed
started fixing tutorial 1
1 parent 1bb50fb commit 4f672a1

File tree

4 files changed

+128
-87
lines changed

4 files changed

+128
-87
lines changed

docs/doc-sphinx/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Welcome to gromacstutorials's documentation!
1010
:maxdepth: 2
1111
:caption: Main
1212

13-
howto.rst
13+
non-tutorials/before-you-start.rst
1414
contact/contact.rst
1515

1616
.. toctree::
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. container:: justify
2+
3+
You can access the input scripts and data files that
4+
are used in these tutorials from |Github_repository_input_folder|.
5+
6+
.. |Github_repository_input_folder| raw:: html
7+
8+
<a href="https://github.com/gromacstutorials" target="_blank">this Github repository</a>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
.. _contact-before-you-start-label:
2+
3+
Before you start
4+
****************
5+
6+
.. container:: justify
7+
8+
*GROMACS tutorials* is made of several tutorials that are
9+
ordered by increasing difficulty.
10+
11+
Required software
12+
=================
13+
14+
.. container:: justify
15+
16+
The 2023.3 version of GROMACS is required
17+
to follow the tutorials.
18+
19+
GROMACS (2023.3)
20+
----------------
21+
22+
.. container:: justify
23+
24+
Download and install the 2023.3 version of GROMACS by following the
25+
instructions of the |gromacs-manual|.
26+
Depending on your operative system (i.e. Linux, macOS, or Windows),
27+
the procedure may differ.
28+
29+
.. |gromacs-manual| raw:: html
30+
31+
<a href="https://manual.gromacs.org/current/index.html" target="_blank">GROMACS manual</a>
32+
33+
VMD (optional)
34+
--------------
35+
36+
.. container:: justify
37+
38+
In order to visualize the simulation, the version
39+
1.9.3 of |VMD| will be used :cite:`humphrey1996vmd`.
40+
Some basic instructions for VMD are given here in the
41+
:ref:`vmd-label`. If you prefer, feel free to use an alternative visualization
42+
software like |Ovito|.
43+
44+
.. |VMD| raw:: html
45+
46+
<a href="https://www.ks.uiuc.edu/Research/vmd" target="_blank">VMD</a>
47+
48+
.. |Ovito| raw:: html
49+
50+
<a href="https://www.ovito.org" target="_blank">Ovito</a>
51+
52+
Python (optional)
53+
-----------------
54+
55+
.. container:: justify
56+
57+
The version 2.6.1 of MDAnalysis is used
58+
together with the version 3.11.4
59+
of Python :cite:`van1995python, michaud2011mdanalysis, gowers2016mdanalysis`.
60+
61+
.. container:: justify
62+
63+
To plot the results from the simulations,
64+
the version 3.5.2 of |Matplotlib Pyplot| is used.
65+
66+
.. |Matplotlib Pyplot| raw:: html
67+
68+
<a href="https://matplotlib.org/3.5.3/api/_as_gen/matplotlib.pyplot.html" target="_blank">Matplotlib Pyplot</a>
69+
70+
Text editing software
71+
---------------------
72+
73+
.. container:: justify
74+
75+
To write and edit GROMACS input files, a text editor is required.
76+
Any text editor will do, such as |gedit|,
77+
|vim|,
78+
or |vscode|.
79+
80+
.. |gedit| raw:: html
81+
82+
<a href="https://help.gnome.org/users/gedit/stable/" target="_blank">gedit</a>
83+
84+
.. |vim| raw:: html
85+
86+
<a href="https://www.vim.org/" target="_blank">vim</a>
87+
88+
.. |vscode| raw:: html
89+
90+
<a href="https://code.visualstudio.com/" target="_blank">vscode</a>
91+
92+
Find the input scripts
93+
======================
94+
95+
.. include:: ../non-tutorials/accessfile.rst
96+
97+
Recommended reading
98+
===================
99+
100+
.. container:: justify
101+
102+
To better understand molecular dynamics simulations, I recommend the reading
103+
of *Understanding molecular simulation* by Daan Frenkel and Berend
104+
Smit :cite:`frenkel2023understanding`, as well as
105+
*Computer simulation of liquids* by Michael Allen and Dominic Tildesley
106+
:cite:`allen2017computer`. To understand the basic concepts
107+
of fluid and Soft Matter systems, I recommend reading *Basic concepts for
108+
simple and complex liquids* by Jean-Louis Barrat and Jean-Pierre Hansen
109+
:cite:`barrat2003basic`,
110+
as well as *Theory of simple liquids: with applications to soft matter*
111+
by Jean-Pierre Hansen and Ian Ranald McDonald :cite:`hansen2013theory`.

docs/doc-sphinx/source/tutorials/bulksolution.rst

+8-86
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Bulk salt solution
55

66
.. container:: hatnote
77

8-
The very basics of GROMACS through a
9-
simple example
8+
The very basics of GROMACS through a simple example
109

1110
.. figure:: figures/bulksolution/video-solution-light.webp
1211
:alt: Water solution of SO\ :sub:`4`\ :sup:`2-` and Na\ :sup:`+` ions visualized with VMD
@@ -28,91 +27,15 @@ Bulk salt solution
2827
with sodium (Na\ :sup:`+`) and sulfate
2928
(SO\ :sub:`4`\ :sup:`2-`) ions.
3029

30+
.. container:: justify
31+
3132
This tutorial illustrates several major ingredients of molecular
3233
dynamics simulations, such as energy minimization,
3334
thermostating, NVT and NPT equilibration, and
3435
trajectory visualisation.
3536

36-
There are no prerequisite to follow this tutorial.
37-
3837
.. include:: ../contact/needhelp.rst
3938

40-
Required softwares
41-
==================
42-
43-
.. container:: justify
44-
45-
GROMACS must be installed on your machine. You can
46-
install it following the instructions of the |gromacs-manual|.
47-
48-
Alternatively, if you are using Ubuntu OS, you can
49-
simply execute the following command in a terminal:
50-
51-
.. |gromacs-manual| raw:: html
52-
53-
<a href="https://manual.gromacs.org/current/index.html" target="_blank">GROMACS manual</a>
54-
55-
.. code-block:: bw
56-
57-
sudo apt-get install gromacs
58-
59-
.. container:: justify
60-
61-
You can verify that GROMACS is indeed installed on your
62-
computer by typing in a terminal :
63-
64-
.. code-block:: bw
65-
66-
gmx
67-
68-
.. container:: justify
69-
70-
You should see the version of GROMACS that has been
71-
installed. On my computer I see
72-
73-
.. code-block:: bw
74-
75-
:-) GROMACS - gmx, 2023 (-:
76-
77-
Executable: /usr/bin/gmx
78-
Data prefix: /usr
79-
80-
(...)
81-
82-
.. container:: justify
83-
84-
as well as a quote (at the bottom), such as
85-
86-
.. code-block:: bw
87-
88-
(...)
89-
90-
GROMACS reminds you: "Computers are like humans - they do everything except think." (John von Neumann)
91-
92-
.. container:: justify
93-
94-
In addition to GROMACS, you will also need
95-
96-
- |(1) a basic text editing software| such as Vim, Gedit, or Notepad++,
97-
- |(2) a visualization software|, here I will use VMD (note: VMD is free but you have to register to the uiuc website in order to download it. If you don't want to, you can also use Ovito.),
98-
- |(3) a plotting tool| like XmGrace or pyplot.
99-
100-
.. |LAMMPS website| raw:: html
101-
102-
<a href="https://lammps.sandia.gov" target="_blank">LAMMPS website</a>
103-
104-
.. |(1) a basic text editing software| raw:: html
105-
106-
<a href="https://help.gnome.org/users/gedit/stable/" target="_blank">(1) a basic text editing software</a>
107-
108-
.. |(2) a visualization software| raw:: html
109-
110-
<a href="https://www.ks.uiuc.edu/Research/vmd/" target="_blank">(2) a visualization software</a>
111-
112-
.. |(3) a plotting tool| raw:: html
113-
114-
<a href="https://plasma-gate.weizmann.ac.il/Grace/" target="_blank">(3) a plotting tool</a>
115-
11639
The input files
11740
===============
11841

@@ -121,15 +44,14 @@ The input files
12144
In order to run the present simulation using GROMACS,
12245
we need the 3 following files (or sets of files):
12346

124-
- 1) a **configuration file** (.gro) containing the
47+
- 1) A **configuration file** (.gro) containing the
12548
initial positions of the atoms and the box
126-
dimensions,
127-
- 2) a **topology file** (.top) specifying the
128-
location of the force field files (.itp),
129-
- 3) an **input file** (.mdp) containing the
49+
dimensions.
50+
- 2) A **topology file** (.top) specifying the
51+
location of the force field files (.itp).
52+
- 3) An **input file** (.mdp) containing the
13053
parameters of the simulation (e.g. temperature, timestep).
13154

132-
13355
1) The configuration file (.gro)
13456
--------------------------------
13557

0 commit comments

Comments
 (0)