Skip to content

Commit 1a60128

Browse files
authored
Merge branch 'master' into efrembraun
2 parents 07e814a + 6dfe10b commit 1a60128

File tree

3 files changed

+23
-29
lines changed

3 files changed

+23
-29
lines changed

paper/basic_training.bib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,7 @@ @article{Ewald_1921
991991
journal = {Annalen der Physik},
992992
volume = {369},
993993
number = {3},
994+
year = {1921},
994995
pages = {253-287},
995996
doi = {10.1002/andp.19213690304},
996997
url = {https://onlinelibrary.wiley.com/doi/abs/10.1002/andp.19213690304},

paper/basic_training.pdf

-54.5 KB
Binary file not shown.

paper/basic_training.tex

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
\usepackage{siunitx}
1717
\DeclareSIUnit\Molar{M}
1818
\usepackage[italic]{mathastext}
19-
\newcommand{\versionnumber}{0.1} % you should update the minor version number in preprints and major version number of submissions.
19+
\newcommand{\versionnumber}{1.0} % you should update the minor version number in preprints and major version number of submissions.
2020
\newcommand{\githubrepository}{\url{https://github.com/MobleyLab/basic_simulation_training}} %this should be the main github repository for this article
2121
\graphicspath{{figures/}}
2222

@@ -52,22 +52,18 @@
5252
\affil[4]{University of California, Irvine}
5353
\affil[5]{University of California, Santa Barbara}
5454
\affil[6]{National Institutes of Health}
55+
\affil[6]{Johns Hopkins University, Baltimore}
5556
\affil[7]{Oregon Health and Science University}
5657

5758

58-
\corr{[email protected] }{EB} % Correspondence emails. FMS and FS are the appropriate authors initials.
59+
\corr{[email protected] }{EB}
5960
6061
6162
\corr{[email protected]}{DLM}
6263
\corr{[email protected]}{JIM}
63-
64+
6465
\corr{[email protected]}{DMZ}
6566

66-
%\contrib[\authfn{1}]{These authors contributed equally to this work}
67-
%\contrib[\authfn{2}]{These authors also contributed equally to this work}
68-
69-
%\presentadd[\authfn{3}]{Department, Institute, Country}
70-
%\presentadd[\authfn{4}]{Department, Institute, Country}
7167

7268
\blurb{This LiveCoMS document is maintained online on GitHub at
7369
\githubrepository; to provide feedback, suggestions, or help improve it, please
@@ -406,7 +402,7 @@ \subsubsection{Key concepts}
406402
\begin{figure}[h]
407403
\centering
408404
\includegraphics[width=\linewidth]{potentials_basic_horiz.pdf}
409-
\caption{Standard MM force fields include terms that represent (a) bond and angle stretching around equilibrium values, using harmonic potentials with spring constants fit to the molecules and atoms to which they are applied. (b) Rotation around dihedral angles (green arrow) are defined using four atoms.}
405+
\caption{Standard MM force fields include terms that represent (a) bond and angle stretching around equilibrium values, using harmonic potentials with spring constants fit to the molecules and atoms to which they are applied; and (b) rotation around dihedral angles (green arrow) defined using four atoms, typically using a cosine expansion.}
410406
\label{potentials}
411407
\end{figure}
412408

@@ -451,14 +447,13 @@ \section{Basic simulation concepts and terminology}
451447
\subsection{Force fields}
452448
\label{sec:force_fields}
453449

454-
The term ``force field'' simply refers to the included terms, particular form, and specific implementation details, including parameter values, of the
455-
chosen potential energy function.\footnote{It is worth noting there is a occasionally a bit of ambiguity when the term ``force field'' is used.
456-
In some cases it is used to refer to a library of parameters that could be applied to assign an energy function to a specific molecular system via a parameterization process after applying some specific chemical perception like atom typing to that system~\citep{Mobley:2018:bioRxiv}.
450+
The term ``force field'' simply refers to the included terms, particular form, and specific implementation details, including parameter values, of the chosen potential energy function.\footnote{It is worth noting there is a occasionally a bit of ambiguity when the term ``force field'' is used.
451+
In some cases it is used to refer to a library of parameters that could be applied to assign an energy function to a specific molecular system via a parameterization process after applying some specific chemical perception like atom typing to that system~\cite{Mobley:2018:bioRxiv}.
457452
For example, one might speak of the AMBER ff15FB~\citep{amber15FB} protein force field, which essentially provides a recipe for assigning parameters to a protein once atom types are assigned.
458453
In other cases, ``force field'' is used to refer to the specifics of the potential energy function after application to a specific system --- what could also be called a ``parameterized system''.
459454
For our purposes here, the distinction between a force field library and a parameterized system is not particularly important, but it is worth noting the potential ambiguity. }
460455

461-
Most of the terms included in potential energy functions have already been detailed in Section~\ref{sec:mol_interactions}, with the most common being Coulombic, Lennard-Jones, bond, angle, and torsional (dihedral) terms.
456+
Most of the terms included in potential energy functions have already been detailed in Section~\ref{sec:mol_interactions}, with the most common being Coulombic, Lennard-Jones, bond, angle, and torsional (dihedral) terms (Figure \ref{potentials}).
462457
Here, we very briefly describe the mathematical forms used to represent such interactions.
463458

464459
Non-bonded interactions of the Lennard-Jones form are well-described throughout the literature (for instance see Ch. 4 of \citet{LeachBook}); these model a short-range repulsion that scales as $1/r^{12}$ and a long-range attraction that scales as $1/r^6$
@@ -523,7 +518,7 @@ \subsection{Periodic boundary conditions}
523518
\begin{figure}[h]
524519
\centering
525520
\includegraphics[width=\linewidth]{PBC_figure.pdf}
526-
\caption{Periodic boundary conditions are shown for a simple 2D system. Note that the simulated system is a sub-ensemble within an infinitely sized system of identical, small ensembles.}
521+
\caption{Periodic boundary conditions are shown for a simple 2D system. Note that the simulated system is a sub-ensemble within an infinite system of identical, small ensembles.}
527522
\label{pbcfig}
528523
\end{figure}
529524

@@ -639,11 +634,12 @@ \subsubsection{Equilibration}
639634
\begin{figure}[h]
640635
\centering
641636
\includegraphics[width=\linewidth]{Equilibration_fig.png}
642-
\caption{For some system properties, equilibration may be relatively rapid (top panel), while for others it may be much slower (bottom panel). If it there is ambiguity as to whether or not a key property is still systematically changing, as in the bottom panel, equilibration should be extended.}
637+
\caption{Shown are graphs of a hypothetical computed property (vertical axis) versus simulation time (horizontal axis). For some system properties, equilibration may be relatively rapid (top panel), while for others it may be much slower (bottom panel). If it there is ambiguity as to whether or not a key property is still systematically changing, as in the bottom panel, equilibration should be extended.}
643638
\label{equilibration}
644639
\end{figure}
645640

646641
Once the kinetic and potential energies fluctuate around constant values and other key properties are no longer changing with time, the equilibration period has reached its end.
642+
In general, if any observed properties still exhibit a systematic trend with respect to simulation time (e.g. Figure~\ref{equilibration}) this should be taken as a sign that equilibration is not yet complete.
647643

648644
Depending on the target ensemble for production, the procedure for the end of equilibration is somewhat different.
649645
If an NVE simulation is desired, the thermostat may be removed and a snapshot selected that is simultaneously as close to the average kinetic and potential energies as possible.
@@ -657,7 +653,7 @@ \subsubsection{Equilibration}
657653
Clearly, this schematic cannot cover every case of interest, but should provide some idea of the general approach.
658654
For more information on equilibration procedures, see \citet{LeachBook}, section 7.4 and \citet{ShellNotes}, lectures on Molecular dynamics and Computing properties.
659655

660-
\begin{figure}[h]
656+
\begin{figure*}[h]
661657
\centering
662658
\includegraphics[width=\linewidth]{Equilibration_Workflow.pdf}
663659
\caption{Common equilibration work-flows are shown; these vary depending on the target ensemble for production simulations (right).
@@ -667,7 +663,7 @@ \subsubsection{Equilibration}
667663
If the production ensemble is NVT, protocols may differ depending on whether it is necessary to allow the system to equilibrate to a particular density/volume or whether the volume is selected \emph{a priori} (second and third rows).
668664
And if production is to be NPT, it is usually equilibrated first at NVT before equilibrating to the target pressure (final row).}
669665
\label{eqworkflow}
670-
\end{figure}
666+
\end{figure*}
671667

672668
\subsubsection{Production}
673669

@@ -895,7 +891,7 @@ \subsubsection{Popular Barostats}
895891
\item \textbf{Martyna-Tuckerman-Tobias-Klein (MTTK)}
896892

897893
The MTTK barostat has substantial similarity to the Parrinello-Rahman and Andersen barostats.
898-
When Parrinello-Rahman's equations of motion were discovered to only hold true in the limit of large systems, the MTTK barostat introduced alternate equations of motion to correctly sample the ensemble for smaller systems as well~\cite{martyna1994constant, martyna1996explicit}.
894+
When Parr\-inello-Rah\-man's equations of motion were discovered to only hold true in the limit of large systems, the MTTK barostat introduced alternate equations of motion to correctly sample the ensemble for smaller systems as well~\cite{martyna1994constant, martyna1996explicit}.
899895
Thus, MTTK~\cite{martyna1994constant, martyna1996explicit} is usually seen as an improvement over Parrinello-Rahman~\cite{Parrinello1981} for such systems.
900896

901897
\item \textbf{Monte Carlo}
@@ -1058,18 +1054,17 @@ \subsubsection{ Ewald Summation}
10581054
\centering
10591055
\includegraphics[width=\linewidth]{ewald.pdf}
10601056

1061-
\caption{\label{fig:screening}Screening charge distribution. (top) Original charge distribution. (bottom)Point charges can be split into Direct space(blue) and Reciprocal space charges(red). Direct space charge consists of the original charges and gaussian-distributed screening charge. Reciprocal space charge is only the Gaussian-distributed charge. }
1057+
\caption{\label{fig:screening}Screening charge distribution. (Top) The original charge distribution. (Bottom) Point charges can be split into Direct space (blue) and Reciprocal space charges (red). The direct space charge consists of the original charges and Gaussian-distributed screening charges of opposite sign. The reciprocal space charge is only the Gaussian-distributed charge of the original sign. Together these sum to the original charge distribution, but computation of the electrostatic potential due to each component becomes much easier.}
10621058
\label{charges_ewald}
10631059
\end{figure}
10641060

1065-
Unlike the original, full potential, the direct space screened interaction (Figure~\ref{fig:screening}, top) decays rapidly (Figure~\ref{fig:charges_ewald}).
1066-
In fact, it decays even faster than Van der Waals interactions ($1/r^{6}$) and hence relative short cutoffs, comparable to those used for Van der Waals interactions, can be used for handling direct-space Coulomb interactions.
1067-
1061+
Unlike the original, full potential, the direct space screened interaction (Figure~\ref{fig:screening}, top) decays rapidly (Figure~\ref{charges_ewald}).
1062+
In fact, it decays even faster than Van der Waals interactions ($1/r^{6}$) and hence relative short cutoffs, comparable to those used for Van der Waals interactions, can be used for handling direct-space Coulomb interactions (Figure~\ref{decay}).
10681063

10691064
\begin{figure}[h]
10701065
\centering
10711066
\includegraphics[width=\linewidth]{decay_comparison.pdf}
1072-
\caption{Comparison of decay of original $r^{-1}$ term(blue,*), erfc(r) in direct space(black,-) and $r^{-6}$ in van der waals term (red, -.). }
1067+
\caption{Comparison of decay of the original $r^{-1}$ term for Coulomb interactions (blue,*), the resulting direct-space term after Gaussian screening (black,-) and the $r^{-6}$ in van der Waals term (red, -.). }
10731068
\label{decay}
10741069
\end{figure}
10751070

@@ -1098,9 +1093,7 @@ \subsubsection{Grid based Ewald summation}
10981093

10991094
\item Transformation of the grid to reciprocal space: A Fast Fourier Transform (FFT) is used to convert the charges on the grid to their equivalent Fourier space structure factors.
11001095

1101-
\item Energy calculation: The reciprocal space potential is calculated by solving the Poisson equation in Fourier space. At the same time, the grid is modified to store the reciprocal space potential.
1102-
\todo[inline, color={yellow!20}]{DLM: What does ``the grid is modified'' mean here and is it important? Does this mean just that the potential is stored at for each grid point?}
1103-
1096+
\item Energy calculation: The reciprocal space potential is calculated by solving the Poisson equation in Fourier space, and the reciprocal space potential is then stored on the grid.
11041097

11051098
\item Transformation of the grid back to real space: An Inverse FFT is used to convert the reciprocal space potential back to the real space.
11061099
\item Force calculation: The force is given by the gradient of the potential.
@@ -1191,7 +1184,7 @@ \section{Should you run MD?}
11911184
As noted above, the frequency of the fastest vibrational motions in a system of interest sets a fundamental limit on the timestep which, given fixed computational resources, sets a limit on how much simulation time can be covered with any reasonable amount of computer time.
11921185
Thus, as noted in Section~\ref{sec:intro}, the longest all-atom MD simulations are on the microsecond to millisecond timescale.
11931186
This means that if your system is complex and answering your questions will require sampling critical events that have a timescale of seconds or longer, MD will not be the right tool for the job.
1194-
You could invest a huge amount of effort running MD simulations and find that these do nothing whatsoever to address your questions.
1187+
You could invest a huge amount of effort running MD simulations and find that they did not address your questions.
11951188

11961189
Ideally, you should have some information before beginning that the relevant timescales for your system might be accessible given the amount of MD you can afford to run, or you could plan a set of exploratory MD simulations to assess feasibility.
11971190
But do not simply plunge in and attempt to run simulations until you find the answers to your questions, as the required timescales could end up being orders of magnitude longer than what you can afford to spend.
@@ -1220,7 +1213,7 @@ \section{Use your MD simulations and interpret the results with care and caution
12201213
But as noted in Section~\ref{sec:velocities}, even simulations started from the \emph{same} structure but slightly different initial positions or velocities will diverge over time yielding different results, so perhaps any differences are simply a result of this divergence rather than due to the change in conditions.
12211214
Thus, analysis will require great care and caution to avoid overinterpreting data, and error analysis becomes particularly critical (as discussed in \url{https://github.com/dmzuckerman/Sampling-Uncertainty}).
12221215

1223-
In summary, then, do not use MD simulations simply to make movies and inspect these; MD simulations do not produce the answer, and considerable care must be exercised to avoid overinterpeting the full atomistic detail they always provide.
1216+
In summary, then, do not use MD simulations simply to make movies and inspect these. Considerable care must be exercised to avoid overinterpeting the full atomistic detail they provide.
12241217
While movies in some cases can be useful, proper error analysis is always essential.
12251218

12261219

@@ -1238,7 +1231,7 @@ \section{Conclusions}
12381231

12391232
Our focus here has been on the basics --- focusing on things you need to understand before beginning to prepare simulations for yourself.
12401233
Additionally, we have primarily focused on issues relating to how simulations are conducted, and leave data analysis for a separate treatment.
1241-
As a starting point relating to data analysis, readers should probably review the Best Practices document on sampling and uncertainty estimation (\url{https://github.com/dmzuckerman/Sampling-Uncertainty})).
1234+
As a starting point relating to data analysis, readers should probably review the Best Practices document on sampling and uncertainty estimation (\url{https://github.com/dmzuckerman/Sampling-Uncertainty}).
12421235

12431236
Please remember that this is an updatable work, so we welcome contributions and suggestions via our GitHub issue tracker so that we can make this a valuable resource for the field which clearly addresses the key fundamentals.
12441237

0 commit comments

Comments
 (0)