Skip to content

Commit e317247

Browse files
committed
updates for creating dynamic bond viz with AIREBO in LAMMPS
1 parent 769d28f commit e317247

1 file changed

Lines changed: 25 additions & 7 deletions

File tree

lammps-tutorials.tex

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,16 +1719,34 @@ \subsubsection{Breakable bonds}
17191719

17201720
\paragraph{Tip: bonds representation with AIREBO}
17211721

1722-
In the following input file,
1723-
\href{\filepath tutorial2/breakable-with-tip.lmp}{\dwlcmd{breakable-with-tip.lmp}},
1724-
a trick is used to represent bonds while using AIREBO. A detailled
1725-
explanation of the script is beyong the scope of the present tutorial.
1726-
In short, the trick is to use AIREBO with the molecular atom
1727-
style, and use the \lmpcmd{bond/break} command to update the status of the bonds
1728-
during the simulation:
1722+
In the input file
1723+
% do not wrap this line
1724+
\href{\filepath tutorial2/solution/breakable-with-tip.lmp}{\dwlcmd{solution/breakable-with-tip.lmp}},
1725+
% do not wrap this line
1726+
which is an alternate solution for \flecmd{breakable.lmp}, a trick is
1727+
used to represent bonds while using AIREBO. A detailed explanation of
1728+
the script is beyond the scope of the present tutorial. In short, the
1729+
trick is to use AIREBO with the \lmpcmd{molecular} atom style, and use
1730+
the \lmpcmd{fix bond/break} and \lmpcmd{fix bond/create/angle} commands
1731+
to update the status of the bonds during the simulation:
17291732
\begin{lstlisting}
17301733
fix break all bond/break 1000 1 2.5
1734+
fix form all bond/create/angle 1000 1 1 2.0 1 aconstrain 90.0 180
17311735
\end{lstlisting}
1736+
1737+
This ``hack'' works because AIREBO does not pay any attention to bonded
1738+
interactions and computes the bond topology dynamically inside the pair
1739+
style. Thus adding bonds of bond style \lmpcmd{zero} does not add any
1740+
interactions but allow the visualization of them with \lmpcmd{dump
1741+
image}. It is, however needed to change the \lmpcmd{special\_bonds}
1742+
setting to disable any neighbor list exclusions as they are common for
1743+
force fields with explicit bonds.
1744+
\begin{lstlisting}
1745+
bond_style zero
1746+
bond_coeff 1 1.4
1747+
special_bonds lj/coul 1.0 1.0 1.0
1748+
\end{lstlisting}
1749+
17321750
% S.G.: we could write a bit more about it
17331751

17341752
\subsection{Tutorial 3: Polymer in water}

0 commit comments

Comments
 (0)