Skip to content

Commit

Permalink
Add example of forceNoPBC to doc
Browse files Browse the repository at this point in the history
[update-doc]
  • Loading branch information
giacomofiorin committed Dec 2, 2024
1 parent 8becce3 commit d20c946
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/colvars-refman-main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,20 @@
small periodic cell.}
\end{itemize}

\paragraph*{Example: ignoring PBCs in a distance between two groups.} Using \texttt{forceNoPBC yes} when defining a
\texttt{distance \{ ... \}} function lets Colvars ignore the minimum-image convention when computing the distance between the centers of mass of \texttt{group1} and \texttt{group2}. (Note that the centers of mass themselves are always calculated as weighted averages anyway).

\begin{cvexampleinput}
\-colvar~\{\\
\-~~name~d\\
\-~~distance~\{\\
\-~~~~forceNoPBC~yes\\
\-~~~~group1~\{~\ldots~\}\\
\-~~~~group2~\{~\ldots~\}\\
\-~~\}\\
\-\}\\
\end{cvexampleinput}


\cvsubsec{Distances}{sec:cvc_distances}

Expand Down

0 comments on commit d20c946

Please sign in to comment.