Skip to content

Commit a7b9a30

Browse files
authored
Merge pull request #111 from MobleyLab/shirts
Incorporate fixes to Shirts issues
2 parents dc7e127 + b16abfe commit a7b9a30

4 files changed

Lines changed: 58 additions & 17 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The current focus is on MD; Monte Carlo (MC) will be addressed in a separate doc
1818
<!-- We suggest listing contributers in order of addition. -->
1919
- Avisek Das (helped with outline and early brainstorming/planning of this document)
2020
- Victoria Tran Lim provided [valuable editorial feedback](https://github.com/MobleyLab/basic_simulation_training/issues/89#issue-351693860) on the document
21+
- Michael Shirts caught a variety of typos and other minor issues, and suggested some improvements.
2122

2223
## Paper writing as code development
2324
<!-- This discussion is so that people know how to contribute to your document. -->
@@ -32,4 +33,4 @@ This paper is being developed as a living document, open to changes from the com
3233
- Spring/early summer 2018: Finalize who will be involved and write/edit first version of the paper
3334
- Sept. 2, 2018: Final draft of version 1 submitted to LiveCoMS
3435
- Nov. 5-6, 2018: Make editorial revisions suggested by peer reviewers and Victoria Lim.
35-
- Nov. 23, 2018: Check references using [`fixbibtex`](https://github.com/jaimergp/fixbibtex), incorporate fixes for problems it caught.
36+
- Nov. 23, 2018: Check references using [`fixbibtex`](https://github.com/jaimergp/fixbibtex), incorporate fixes for problems it caught; addresses a number of typos/missing references caught by Michael Shirts.

paper/basic_training.bib

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,3 +1116,42 @@ @article{Palmer2018
11161116
year = {2018},
11171117
doi = {10.1063/1.5029463},
11181118
}
1119+
1120+
1121+
@article{Martinez:2009:JournalofComputationalChemistry,
1122+
title = {{{PACKMOL}}: A Package for Building Initial Configurations for Molecular Dynamics Simulations.},
1123+
volume = {30},
1124+
doi = {10.1002/jcc.21224},
1125+
language = {English},
1126+
number = {13},
1127+
journal = {J. Comp. Chem.},
1128+
author = {Mart\'inez, L and Andrade, R and Birgin, E G and Mart\'inez, J M},
1129+
month = oct,
1130+
year = {2009},
1131+
keywords = {logP Paper,SAMPL5},
1132+
pages = {2157--2164},
1133+
pmid = {19229944}
1134+
}
1135+
1136+
@misc{Jewett:2018:moltemplate,
1137+
title = {Moltemplate},
1138+
howpublished = {https://www.moltemplate.org/},
1139+
journal = {moltemplate},
1140+
author = {Jewett, Andrew},
1141+
month = nov,
1142+
year = {2018},
1143+
}
1144+
1145+
@article{Hirel:2015:ComputerPhysicsCommunications,
1146+
title = {Atomsk: {{A}} Tool for Manipulating and Converting Atomic Data Files},
1147+
volume = {197},
1148+
issn = {0010-4655},
1149+
shorttitle = {Atomsk},
1150+
doi = {10.1016/j.cpc.2015.07.012},
1151+
journal = {Computer Physics Communications},
1152+
author = {Hirel, Pierre},
1153+
month = dec,
1154+
year = {2015},
1155+
keywords = {Atomistic simulations,Dislocation,File conversion,Nye tensor,Polycrystal},
1156+
pages = {212-219},
1157+
}

paper/basic_training.pdf

1.63 KB
Binary file not shown.

paper/basic_training.tex

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ \subsubsection{Books}
244244
Depending on the background, the practitioner can choose one or more of the following books to either learn or refresh their basic knowledge of thermodynamics.
245245
Here are some works we find particularly helpful:
246246
\begin{itemize}
247-
\item Atkins and De Paula's ``Physical Chemistry'' \cite{AtkinsBook}, chapters 1 to 4.
247+
\item Atkins and De Paula's ``Physical Chemistry'' ~\cite{AtkinsBook}, chapters 1 to 4.
248248
\item McQuarrie and Simon's extensive work, ``Physical Chemistry: A Molecular Approach''~\cite{McQuarrie:1997:}
249249
\item Dill's ``Molecular Driving Forces''~\cite{DillBook}
250250
\item Kittel and Kroemer's ``Thermal Physics''~\cite{Kittel:1980:}
@@ -304,7 +304,7 @@ \subsubsection{Key concepts}
304304
For a \emph{continuous} coordinate (e.g., the distance between two residues in a protein), the probability-determining free energy is called the ``potential of mean force'' (PMF); the Boltzmann factor of a PMF gives the relative probability of a given coordinate.
305305
Any kind of free energy implicitly includes \emph{entropic} effects; in terms of an energy landscape (Fig.\ \ref{landscapes}), the entropy describes the \emph{width} of a basin or the number of arrangements a system can have within a particular state.
306306
One way to think of this it is that entropy of a state relates to the \emph{volume} of 6N-dimensional phase space that the state occupies, which in the one-dimensional case is just the \emph{width}.
307-
These points are discussed in textbooks, as are the differences between free energies for different thermodynamic ensembles -- e.g., $F$, the Helmholtz free energy, when $T$ is constant, and $G$, the Gibbs free energy, when both $T$ and pressure are constant -- which are not essential to our introduction~\cite{DillBook, Zuckerman:2010:}.
307+
These points are discussed in textbooks, as are the differences between free energies for different thermodynamic ensembles -- e.g., $A$, the Helmholtz free energy, when $T$ is constant, and $G$, the Gibbs free energy, when both $T$ and pressure are constant -- which are not essential to our introduction~\cite{DillBook, Zuckerman:2010:}.\footnote{Occasionally $F$ is used to refer to either appropriate free energy, $A$ or $G$, but this is not standard.}
308308

309309
A final essential topic is the difference between equilibrium and non-equilibrium systems.
310310
We noted above that an MD trajectory is not likely to represent the equilibrium ensemble because the trajectory is probably too short.
@@ -353,7 +353,7 @@ \subsubsection{Key concepts}
353353
%\item Long range nature of the Coulomb interaction
354354
Electrostatic interactions are both some of the longest-range interactions in molecular systems and the strongest, with the interaction (often called
355355
``Coulombic'' after Coulomb's law) between charged particles falling off as $1/r$ where $r$ is the distance separating the particles.
356-
Atom-atom interactions are thus necessarily long range compared to other interactions in these systems (which fall off a $1/r^3$ or faster).
356+
Atom-atom interactions are thus necessarily long range compared to other interactions in these systems (which fall off as $1/r^3$ or faster).
357357
This means atoms or molecules separated by considerable distances can still have quite strong electrostatic interactions, though this also depends on the degree of shielding of the intervening medium (or its relative permittivity or dielectric constant).
358358

359359
%\item Polarizability, dielectric constants
@@ -588,7 +588,7 @@ \subsubsection{System preparation}
588588
One comprises building the configuration of the system in the desired chemical state and the other applying force field parameters.
589589

590590
For building systems, freely available tools for constructing systems are available and can be a reasonable option (though their mention here should not be taken as an endorsement that they necessarily encapsulate best practices).
591-
Examples include tools for constructing specific crystal structures, proteins, and lipid membranes, such as Moltemplate, Packmol, and Atomsk.
591+
Examples include tools for constructing specific crystal structures, proteins, and lipid membranes, such as Moltemplate~\cite{Jewett:2018:moltemplate}, Packmol~\cite{Martinez:2009:JournalofComputationalChemistry}, and Atomsk~\cite{Hirel:2015:ComputerPhysicsCommunications}.
592592

593593
A key consideration when building a system is that the starting structure ideally ought to resemble the equilibrium structure of the system at the thermodynamic state point of interest.
594594
For instance, highly energetically unfavorable configurations of the system, such as blatant atomic overlaps, should be avoided.
@@ -694,6 +694,7 @@ \subsubsection{Production}
694694
Storing data especially frequently can be tempting, but utilizes a great deal of storage space and does not actually provide significant value in most situations.
695695
Particularly, observations made in MD simulations are correlated in time (e.g. see \url{https://github.com/dmzuckerman/Sampling-Uncertainty}) so storing data more frequently than the autocorrelation time results in storage of essentially redundant data.
696696
Thus, storing data more frequently than intervals of the autocorrelation time is generally unnecessary.
697+
Of course, the autocorrelation time is not known \emph{a priori} which can make it necessary to store \emph{some} redundant data.
697698
Disk space may also be a limiting factor that dictates the frequency of storing data, and should at least be considered.
698699
Trajectory snapshots can be particularly large.
699700
However, if there are no disk space limitations it may be best to avoid discarding uncorrelated data so sampling \emph{at} intervals of the autocorrelation time may be appropriate.
@@ -727,7 +728,7 @@ \subsubsection{Background and How They Work}
727728

728729
Thermostat algorithms work by altering the Newtonian equations of motion that are inherently microcanonical (constant energy).
729730
Thus, it is preferable that a thermostat not be used if it is desired to calculate dynamical properties such as diffusion coefficients; instead, the thermostat should be turned off after equilibrating the system to the desired temperature.
730-
However, while all thermostats give non-physical dynamics, some have been found to have little effect on the calculation of particular dynamical properties, and they are commonly used during the production simulation as well\cite{Basconi:2013:JChemTheoryComput}.
731+
However, while all thermostats give non-physical dynamics, some have been found to have little effect on the calculation of particular dynamical properties, and they are commonly used during the production simulation as well~\cite{Basconi:2013:JChemTheoryComput}.
731732

732733
There are several ways to categorize the many thermostatting algorithms that have been developed.
733734
For example, thermostats can be either deterministic or stochastic depending on whether they use random numbers to guide the dynamics, and they can be either global or local depending on whether they are coupled to the dynamics of the full system or of a small subset.
@@ -757,32 +758,32 @@ \subsubsection{Popular Thermostats}
757758
The simple velocity rescaling thermostat is one of the easiest thermostats to implement; however, this thermostat is also one of the most non-physical thermostats.
758759
This thermostat relies on rescaling the momenta of the particles such that the simulation's instantaneous temperature exactly matches the target temperature~\cite{thermostatAlgorithms2005}.
759760
Similarly to the Gaussian thermosat, simple velocity rescaling aims to sample the isokinetic ensemble rather than the canonical ensemble.
760-
However, it has been shown that the simple velocity rescaling fails to properly sample the isokinetic ensemble except in the limit of extremely small timesteps\cite{Braun:2018}.
761-
Its usage can lead to simulation artifacts, so it is not recommended\cite{Harvey:1998:JCompChem,Braun:2018}.
761+
However, it has been shown that the simple velocity rescaling fails to properly sample the isokinetic ensemble except in the limit of extremely small timesteps~\cite{Braun:2018}.
762+
Its usage can lead to simulation artifacts, so it is not recommended~\cite{Harvey:1998:JCompChem,Braun:2018}.
762763

763764
\item \textbf{Berendsen}
764765

765-
The Berendsen\cite{berendsen1984molecular} thermostat (also known as the weak coupling thermostat) is similar to the simple velocity rescaling thermostat, but instead of rescaling velocities completely and abruptly to the target kinetic energy, it includes a relaxation term to allow the system to more slowly approach the target.
766+
The Berendsen~\cite{berendsen1984molecular} thermostat (also known as the weak coupling thermostat) is similar to the simple velocity rescaling thermostat, but instead of rescaling velocities completely and abruptly to the target kinetic energy, it includes a relaxation term to allow the system to more slowly approach the target.
766767
Although the Berendsen thermostat allows for temperature fluctuations, it samples neither the canonical distribution nor the isokinetic distribution.
767-
Its usage can lead to simulation artifacts, so it is not recommended\cite{Harvey:1998:JCompChem,Braun:2018}.
768+
Its usage can lead to simulation artifacts, so it is not recommended~\cite{Harvey:1998:JCompChem,Braun:2018}.
768769

769770
\item \textbf{Bussi-Donadio-Parrinello (Canonical Sampling through Velocity Rescaling)}
770771

771-
The Bussi\cite{Bussi:2007:JChemPhys:Canonical} thermostat is similar to the simple velocity rescaling and Berendsen thermostats, but instead of rescaling to a single kinetic energy that corresponds to the target temperature, the rescaling is done to a kinetic energy that is stochastically chosen from the kinetic energy distribution dictated by the canonical ensemble.
772+
The Bussi~\cite{Bussi:2007:JChemPhys:Canonical} thermostat is similar to the simple velocity rescaling and Berendsen thermostats, but instead of rescaling to a single kinetic energy that corresponds to the target temperature, the rescaling is done to a kinetic energy that is stochastically chosen from the kinetic energy distribution dictated by the canonical ensemble.
772773
Thus, this thermostat properly samples the canonical ensemble.
773774
Similarly to the Berendsen thermostat, a user-specified time coupling parameter can be chosen to vary how abruptly the velocity rescaling takes place
774-
The choice of time coupling constant does not affect structural properties, and most dynamical properties are fairly independent of the coupling constant within a broad range\cite{Bussi:2007:JChemPhys:Canonical}.
775+
The choice of time coupling constant does not affect structural properties, and most dynamical properties are fairly independent of the coupling constant within a broad range~\cite{Bussi:2007:JChemPhys:Canonical}.
775776

776777
\item \textbf{Andersen}
777778

778-
The Andersen\cite{andersen1980molecular} thermostat works by selecting particles at random and having them ``collide'' with a heat bath by giving the particle a new velocity sampled from the Maxwell-Boltzmann distribution.
779+
The Andersen~\cite{andersen1980molecular} thermostat works by selecting particles at random and having them ``collide'' with a heat bath by giving the particle a new velocity sampled from the Maxwell-Boltzmann distribution.
779780
The number of particles affected, the time between ``collisions'', and how often it is applied to the system are possible variations of this thermostat.
780781
The Andersen thermostat does reproduce the canonical ensemble.
781782
However, it should only be used to sample structural properties, as dynamical properties can be greatly affected by the abrupt collisions.
782783

783784
\item \textbf{Langevin}
784785

785-
The Langevin\cite{schneider1978molecular} thermostat supplements the microcanonical equations of motion with Brownian dynamics, thus including the viscosity and random collision effects of an implicit solvent.
786+
The Langevin~\cite{schneider1978molecular} thermostat supplements the microcanonical equations of motion with Brownian dynamics, thus including the viscosity and random collision effects of an implicit solvent.
786787
It uses a general equation of the form $F = F_{interaction} + F_{friction} + F_{random}$, where $F_{interaction}$ is the standard interactions calculated during the simulation, $F_{friction}$ is the damping used to tune the ``viscosity'' of the implicit bath, and $F_{random}$ effectively gives random collisions with solvent molecules.
787788
The frictional and random forces are coupled through a user-specified friction damping parameter. Careful consideration must be taken when choosing this parameter; in the limit of a zero damping parameter, both frictional and random forces go to zero and the dynamics become microcanonical, and in the limit of an infinite damping parameter, the dynamics are purely Brownian.
788789

@@ -793,7 +794,7 @@ \subsubsection{Popular Thermostats}
793794
The choice of ``mass'' of the fictitious particle (which in many simulation packages is instead expressed as a time damping parameter) can be important as it affects the fluctuations that will be observed.
794795
For many reasonable choices of the mass, dynamics are well-preserved~\cite{Basconi:2013:JChemTheoryComput}.
795796
This is one of the most widely implemented and used thermostats.
796-
However, it should be noted that with small systems, ergodicity can be an issue\cite{martyna1992nose,thermostatAlgorithms2005}.
797+
However, it should be noted that with small systems, ergodicity can be an issue~\cite{martyna1992nose,thermostatAlgorithms2005}.
797798
This can become important even in systems with larger numbers of particles if a portion of the system does not interact strongly with the remainder of the system, such as in alchemical free energy calculations when a solute or ligand is non-interacting.
798799
Martyna et al.~\cite{martyna1992nose} discovered that by chaining thermostats, ergodicity can be enhanced, and most implementations of this thermostat use Nos\'{e}-Hoover chains.
799800

@@ -847,7 +848,7 @@ \subsubsection{Background and How They Work}
847848
To sample from the isothermal-isobaric ensemble (NPT), a thermostating algorithm like the ones discussed earlier must also be applied.
848849

849850
Much of the background information on barostats is analogous to thermostats.
850-
The pressure of a molecular dynamics simulation is commonly measured using the virial theorem (an expectation value relating to positions and forces)\cite{ShellNotes, LeachBook}.
851+
The pressure of a molecular dynamics simulation is commonly measured using the virial theorem (an expectation value relating to positions and forces)~\cite{ShellNotes, LeachBook}.
851852
When pairwise interactions and periodic boundary conditions are considered, different approaches are often utilized~\cite{allenTildesleyLiquids, tuckermanBook, ShellNotes}.
852853
Regardless, these formulas give pressure as a time-averaged quantity, similar to the temperature.
853854
If we use these formulas to calculate the pressure for a single snapshot, this quantity is referred to as the instantaneous pressure.
@@ -1016,7 +1017,7 @@ \subsubsection{Choosing an appropriate timestep}
10161017
For all-atom simulations with constraints on the high-frequency bonds, timesteps can be commonly increased to 2 fs; coarse-grained simulations with particles of higher mass and smaller force constants can have much larger timesteps.
10171018
After choosing a timestep, a test simulation should be run in the microcanonical ensemble to ensure that the choice of timestep yields dynamics that conserve energy.
10181019
The timestep should also be short enough that properties calculated from the simulation, regardless of ensemble, are independent of the chosen timestep.
1019-
This is because an inappropriately large timetep can lead to subtle changes to the ensemble being simulated and alter computed thermodynamic and transport properties, especially in stochastic simulations or those coupled to thermostats or barostats.
1020+
This is because an inappropriately large timetep can lead to subtle changes to the ensemble being simulated~\cite{LeachBook, allen_computer_2017} and alter computed thermodynamic and transport properties, especially in stochastic simulations or those coupled to thermostats or barostats~\cite{Fass2018}.
10201021
Methods also exist to increase the timestep beyond the limit imposed by the system's highest-frequency motion.
10211022
Some examples of these enhanced timestepping algorithms include multiple-timestep methods which separately integrate high-frequency motion from low-frequency motion and schemes which repartition atomic masses to decrease the highest-frequency motion seen in the system\cite{Berne:1999:Molecular,Hopkins:2015:JCTC:Long}.
10221023

0 commit comments

Comments
 (0)