Skip to content

Commit fcd1f3b

Browse files
authored
Add example for water orientation (#170)
* Add example for water orientatio * Update examples/water-pulsed/data/grompp.mdp * Some proofread
1 parent 5d3f29e commit fcd1f3b

File tree

10 files changed

+535
-0
lines changed

10 files changed

+535
-0
lines changed

docs/src/software/gromacs.sec

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
GROMACS
2+
=======
3+
4+
GROMACS is a versatile and highly optimized molecular dynamics (MD) engine designed for
5+
classical simulations. It is widely recognized for its exceptional performance,
6+
scalability, and efficiency, making it suitable for use on systems ranging from laptops
7+
to high-performance computing (HPC) clusters. Originally developed for biomolecular
8+
simulations, GROMACS is commonly used in fields such as biochemistry, biophysics, and
9+
structural biology to study proteins, lipids, and nucleic acids.
10+
11+
In addition to its focus on biomolecular systems, GROMACS supports a wide range of force
12+
fields and can simulate non-biological systems such as polymers and materials. It
13+
includes tools for preprocessing, trajectory analysis, and visualization, providing a
14+
comprehensive suite for MD workflows. Its open-source nature and active community ensure
15+
continuous development and support.
16+
17+
- examples/water-pulsed/water-pulsed

docs/src/software/index.rst

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
Recipes grouped by software used
2+
================================
3+
4+
Cookbook recipes often combine multiple modeling tools.
5+
Here you can find them organized based on the software
6+
they use. They may give you ideas on how to use them
7+
in your own atomistic cooking.
8+
9+
.. toctree::
10+
:maxdepth: 1
11+
:hidden:
12+
13+
i-pi
14+
chemiscope
15+
featomic
16+
scikit-matter
17+
cp2k
18+
lammps
19+
metatensor
20+
plumed
21+
torch-pme
22+
23+
24+
:doc:`i-pi`
25+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26+
27+
.. card-carousel:: 3
28+
29+
30+
.. card:: Atomistic Water Model for Molecular Dynamics
31+
:link: ../examples/water-model/water-model
32+
:link-type: doc
33+
:text-align: center
34+
:shadow: md
35+
36+
.. image:: ../examples/water-model/images/thumb/sphx_glr_water-model_thumb.png
37+
:alt: In this example, we demonstrate how to construct a metatensor atomistic model for flexible three and four-point water model, with parameters optimized for use together with quantum-nuclear-effects-aware path integral simulations (cf. Habershon et al., JCP (2009)). The model also demonstrates the use of torch-pme, a Torch library for long-range interactions, and uses the resulting model to perform demonstrative molecular dynamics simulations.
38+
:class: gallery-img
39+
40+
41+
:doc:`chemiscope`
42+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43+
44+
.. card-carousel:: 3
45+
46+
47+
.. card:: Atomistic Water Model for Molecular Dynamics
48+
:link: ../examples/water-model/water-model
49+
:link-type: doc
50+
:text-align: center
51+
:shadow: md
52+
53+
.. image:: ../examples/water-model/images/thumb/sphx_glr_water-model_thumb.png
54+
:alt: In this example, we demonstrate how to construct a metatensor atomistic model for flexible three and four-point water model, with parameters optimized for use together with quantum-nuclear-effects-aware path integral simulations (cf. Habershon et al., JCP (2009)). The model also demonstrates the use of torch-pme, a Torch library for long-range interactions, and uses the resulting model to perform demonstrative molecular dynamics simulations.
55+
:class: gallery-img
56+
57+
58+
:doc:`featomic`
59+
~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
75+
76+
.. card-carousel:: 3
77+
78+
79+
.. card:: Atomistic Water Model for Molecular Dynamics
80+
:link: ../examples/water-model/water-model
81+
:link-type: doc
82+
:text-align: center
83+
:shadow: md
84+
85+
.. image:: ../examples/water-model/images/thumb/sphx_glr_water-model_thumb.png
86+
:alt: In this example, we demonstrate how to construct a metatensor atomistic model for flexible three and four-point water model, with parameters optimized for use together with quantum-nuclear-effects-aware path integral simulations (cf. Habershon et al., JCP (2009)). The model also demonstrates the use of torch-pme, a Torch library for long-range interactions, and uses the resulting model to perform demonstrative molecular dynamics simulations.
87+
:class: gallery-img
88+
89+
90+
:doc:`metatensor`
91+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92+
93+
.. card-carousel:: 3
94+
95+
96+
.. card:: Atomistic Water Model for Molecular Dynamics
97+
:link: ../examples/water-model/water-model
98+
:link-type: doc
99+
:text-align: center
100+
:shadow: md
101+
102+
.. image:: ../examples/water-model/images/thumb/sphx_glr_water-model_thumb.png
103+
:alt: In this example, we demonstrate how to construct a metatensor atomistic model for flexible three and four-point water model, with parameters optimized for use together with quantum-nuclear-effects-aware path integral simulations (cf. Habershon et al., JCP (2009)). The model also demonstrates the use of torch-pme, a Torch library for long-range interactions, and uses the resulting model to perform demonstrative molecular dynamics simulations.
104+
:class: gallery-img
105+
106+
107+
:doc:`plumed`
108+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
109+
110+
.. card-carousel:: 3
111+
112+
:doc:`torch-pme`
113+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114+
115+
.. card-carousel:: 3
116+
117+
118+
.. card:: Atomistic Water Model for Molecular Dynamics
119+
:link: ../examples/water-model/water-model
120+
:link-type: doc
121+
:text-align: center
122+
:shadow: md
123+
124+
.. image:: ../examples/water-model/images/thumb/sphx_glr_water-model_thumb.png
125+
:alt: In this example, we demonstrate how to construct a metatensor atomistic model for flexible three and four-point water model, with parameters optimized for use together with quantum-nuclear-effects-aware path integral simulations (cf. Habershon et al., JCP (2009)). The model also demonstrates the use of torch-pme, a Torch library for long-range interactions, and uses the resulting model to perform demonstrative molecular dynamics simulations.
126+
:class: gallery-img
127+
128+

docs/src/topics/analysis.sec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ for post-processing, diagnostics or visualization purposes.
88
- examples/lpr/lpr
99
- examples/roy-gch/roy-gch
1010
- examples/rotate-equivariants/rotate-equivariants
11+
- examples/water-pulsed/water-pulsed

docs/src/topics/index.rst

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
Recipes grouped by topic
2+
========================
3+
4+
You can navigate through the various recipes grouped
5+
in thematic areas, including classes of simulation problems
6+
and of modeling techniques. Recipes may be listed in
7+
more than one area, when relevant.
8+
9+
.. toctree::
10+
:maxdepth: 1
11+
:hidden:
12+
13+
sampling
14+
analysis
15+
ml-models
16+
universal
17+
nqes
18+
19+
20+
:doc:`sampling`
21+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22+
23+
.. card-carousel:: 3
24+
25+
26+
.. card:: Atomistic Water Model for Molecular Dynamics
27+
:link: ../examples/water-model/water-model
28+
:link-type: doc
29+
:text-align: center
30+
:shadow: md
31+
32+
.. image:: ../examples/water-model/images/thumb/sphx_glr_water-model_thumb.png
33+
:alt: In this example, we demonstrate how to construct a metatensor atomistic model for flexible three and four-point water model, with parameters optimized for use together with quantum-nuclear-effects-aware path integral simulations (cf. Habershon et al., JCP (2009)). The model also demonstrates the use of torch-pme, a Torch library for long-range interactions, and uses the resulting model to perform demonstrative molecular dynamics simulations.
34+
:class: gallery-img
35+
36+
37+
:doc:`analysis`
38+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39+
40+
.. card-carousel:: 3
41+
42+
43+
.. card:: Water orientation in a pulsed electric field
44+
:link: ../examples/water-pulsed/water-pulsed
45+
:link-type: doc
46+
:text-align: center
47+
:shadow: md
48+
49+
.. image:: ../examples/water-pulsed/images/thumb/sphx_glr_water-pulsed_thumb.png
50+
:alt: Energy dissipation in water is very fast and more efficient than in many other liquids. This behavior is commonly attributed to the intermolecular interactions associated with hydrogen bonding. This effect has been studied intensively by experiments, ab initio, and classical simulations in the work by Elgabarty et al.. Here, we will re run some of the classical force field molecular dynamics (MD) simulations of the paper using the GROMACS package to compute the timeseries of the dipole moments as well as the energy.
51+
:class: gallery-img
52+
53+
54+
:doc:`ml-models`
55+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56+
57+
.. card-carousel:: 3
58+
59+
:doc:`universal`
60+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61+
62+
.. card-carousel:: 3
63+
64+
:doc:`nqes`
65+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66+
67+
.. card-carousel:: 3
68+

examples/water-pulsed/.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# GROMACS files
2+
*.cpt
3+
*.edr
4+
*.gro
5+
*.log
6+
*.mdp
7+
*.top
8+
*.tpr
9+
*.trr
10+
*.xtc
11+
\#*
12+
!data/grompp.mdp
13+
14+
# MDAnalysis offset files
15+
*.lock
16+
*.npz

examples/water-pulsed/README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Water orientation in a pulsed electric field
2+
============================================
3+
4+
Simulate water reorientation and energy dissipation in a pulsed electric field.
194 KB
Binary file not shown.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
; Integrator
2+
; ===================================================================
3+
integrator = md
4+
5+
; MD Running Parameters
6+
; ===================================================================
7+
dt = 0.002
8+
nsteps = 5000
9+
comm-mode = linear ; Remove center of mass translation
10+
nstcomm = 500 ; Do not remove center of mass during pulse
11+
12+
; Output control
13+
; frequency for coords (x), velocities (v) and forces (f)
14+
; ===================================================================
15+
nstxout-compressed = 50
16+
nstlog = 1000
17+
nstenergy = 50
18+
nstcalcenergy = 50
19+
20+
; Neighbor searching
21+
; ===================================================================
22+
cutoff-scheme = Verlet
23+
rlist = 0.9
24+
25+
; Electrostatics
26+
; ===================================================================
27+
coulombtype = pme
28+
rcoulomb = 0.9
29+
30+
; VdW
31+
; ===================================================================
32+
vdw-type = Cut-off
33+
rvdw = 0.9
34+
vdw-modifier = Potential-shift-Verlet
35+
36+
; Constraints
37+
; ===================================================================
38+
constraints = h-bonds
39+
constraint-algorithm = LINCS
40+
41+
;Electric fields
42+
; ===================================================================
43+
electric-field-x = 0.5 1.0 5.0 0.5 ; E0 omega t0 sigma
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
channels:
2+
- conda-forge
3+
dependencies:
4+
- python=3.12
5+
- gromacs
6+
- pip
7+
- pip:
8+
- maicos
9+
- pyedr

0 commit comments

Comments
 (0)