Skip to content

Commit c3dccae

Browse files
committed
Merge branch 'efrembraun' of https://github.com/EfremBraun/basic_simulation_training into efrembraun
2 parents 93af077 + 1a60128 commit c3dccae

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
@@ -410,7 +406,7 @@ \subsubsection{Key concepts}
410406
\begin{figure}[h]
411407
\centering
412408
\includegraphics[width=\linewidth]{potentials_basic_horiz.pdf}
413-
\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.}
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; and (b) rotation around dihedral angles (green arrow) defined using four atoms, typically using a cosine expansion.}
414410
\label{potentials}
415411
\end{figure}
416412

@@ -455,14 +451,13 @@ \section{Basic simulation concepts and terminology}
455451
\subsection{Force fields}
456452
\label{sec:force_fields}
457453

458-
The term ``force field'' simply refers to the included terms, particular form, and specific implementation details, including parameter values, of the
459-
chosen potential energy function.\footnote{It is worth noting there is a occasionally a bit of ambiguity when the term ``force field'' is used.
460-
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}.
454+
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.
455+
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}.
461456
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.
462457
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''.
463458
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. }
464459

465-
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.
460+
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}).
466461
Here, we very briefly describe the mathematical forms used to represent such interactions.
467462

468463
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$
@@ -527,7 +522,7 @@ \subsection{Periodic boundary conditions}
527522
\begin{figure}[h]
528523
\centering
529524
\includegraphics[width=\linewidth]{PBC_figure.pdf}
530-
\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.}
525+
\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.}
531526
\label{pbcfig}
532527
\end{figure}
533528

@@ -643,11 +638,12 @@ \subsubsection{Equilibration}
643638
\begin{figure}[h]
644639
\centering
645640
\includegraphics[width=\linewidth]{Equilibration_fig.png}
646-
\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.}
641+
\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.}
647642
\label{equilibration}
648643
\end{figure}
649644

650645
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.
646+
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.
651647

652648
Depending on the target ensemble for production, the procedure for the end of equilibration is somewhat different.
653649
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.
@@ -661,7 +657,7 @@ \subsubsection{Equilibration}
661657
Clearly, this schematic cannot cover every case of interest, but should provide some idea of the general approach.
662658
For more information on equilibration procedures, see \citet{LeachBook}, section 7.4 and \citet{ShellNotes}, lectures on Molecular dynamics and Computing properties.
663659

664-
\begin{figure}[h]
660+
\begin{figure*}[h]
665661
\centering
666662
\includegraphics[width=\linewidth]{Equilibration_Workflow.pdf}
667663
\caption{Common equilibration work-flows are shown; these vary depending on the target ensemble for production simulations (right).
@@ -671,7 +667,7 @@ \subsubsection{Equilibration}
671667
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).
672668
And if production is to be NPT, it is usually equilibrated first at NVT before equilibrating to the target pressure (final row).}
673669
\label{eqworkflow}
674-
\end{figure}
670+
\end{figure*}
675671

676672
\subsubsection{Production}
677673

@@ -899,7 +895,7 @@ \subsubsection{Popular Barostats}
899895
\item \textbf{Martyna-Tuckerman-Tobias-Klein (MTTK)}
900896

901897
The MTTK barostat has substantial similarity to the Parrinello-Rahman and Andersen barostats.
902-
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}.
898+
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}.
903899
Thus, MTTK~\cite{martyna1994constant, martyna1996explicit} is usually seen as an improvement over Parrinello-Rahman~\cite{Parrinello1981} for such systems.
904900

905901
\item \textbf{Monte Carlo}
@@ -1062,18 +1058,17 @@ \subsubsection{ Ewald Summation}
10621058
\centering
10631059
\includegraphics[width=\linewidth]{ewald.pdf}
10641060

1065-
\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. }
1061+
\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.}
10661062
\label{charges_ewald}
10671063
\end{figure}
10681064

1069-
Unlike the original, full potential, the direct space screened interaction (Figure~\ref{fig:screening}, top) decays rapidly (Figure~\ref{fig:charges_ewald}).
1070-
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.
1071-
1065+
Unlike the original, full potential, the direct space screened interaction (Figure~\ref{fig:screening}, top) decays rapidly (Figure~\ref{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 (Figure~\ref{decay}).
10721067

10731068
\begin{figure}[h]
10741069
\centering
10751070
\includegraphics[width=\linewidth]{decay_comparison.pdf}
1076-
\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, -.). }
1071+
\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, -.). }
10771072
\label{decay}
10781073
\end{figure}
10791074

@@ -1102,9 +1097,7 @@ \subsubsection{Grid based Ewald summation}
11021097

11031098
\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.
11041099

1105-
\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.
1106-
\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?}
1107-
1100+
\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.
11081101

11091102
\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.
11101103
\item Force calculation: The force is given by the gradient of the potential.
@@ -1195,7 +1188,7 @@ \section{Should you run MD?}
11951188
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.
11961189
Thus, as noted in Section~\ref{sec:intro}, the longest all-atom MD simulations are on the microsecond to millisecond timescale.
11971190
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.
1198-
You could invest a huge amount of effort running MD simulations and find that these do nothing whatsoever to address your questions.
1191+
You could invest a huge amount of effort running MD simulations and find that they did not address your questions.
11991192

12001193
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.
12011194
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.
@@ -1224,7 +1217,7 @@ \section{Use your MD simulations and interpret the results with care and caution
12241217
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.
12251218
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}).
12261219

1227-
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.
1220+
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.
12281221
While movies in some cases can be useful, proper error analysis is always essential.
12291222

12301223

@@ -1242,7 +1235,7 @@ \section{Conclusions}
12421235

12431236
Our focus here has been on the basics --- focusing on things you need to understand before beginning to prepare simulations for yourself.
12441237
Additionally, we have primarily focused on issues relating to how simulations are conducted, and leave data analysis for a separate treatment.
1245-
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})).
1238+
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}).
12461239

12471240
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.
12481241

0 commit comments

Comments
 (0)