<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Symmetric Molecular Dynamics</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2022 July</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10337237</idno>
					<idno type="doi">10.1021/acs.jctc.2c00401</idno>
					<title level='j'>Journal of Chemical Theory and Computation</title>
<idno>1549-9618</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Sam Cox</author><author>Andrew D. White</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[We derive a formulation of molecular dynamics that generates only symmetric configurations. We implement it for all 2D planar and 3D space groups. An atlas of 2D Lennard-Jones crystals under all planar groups is created with symmetric molecular dynamics.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>specific symmetry group of position transformations G, like mirrors along the x axis. q(t) is point group symmetric if applying any element of the group results in no change to the positions (ignoring ordering of particles)</p><p>where g&#8226; means applying the group element to each particle individually, &#8764; means row equivalence, and G is a finite group. Group elements are represented as affine matrices in space and planar groups. Eq 1 may hold trivially. For example, all particles are at the origin. Such special positions that are invariant to group elements are known as special Wyckoff positions. <ref type="bibr">21</ref> We remove this assumption in Section IIC, but for now additionally assume</p><p>where I is the identity transformation.</p><p>Assuming eqs 1 and 2 hold at t = 0, the particles can be partitioned into N/|G| = n group orbits. A group orbit is the set generated by applying all elements of group G to positions q i (t)</p><p>One member of all orbits will be q i (t) itself, because G contains the identity element. We can label the particles as q ij (t) where i indicates the orbit and j indicates the group element. In crystallography, the q i0 particles are called the asymmetric unit. We can satisfy eq 1 at all t by specifying the following holonomic constraint:</p><p>There are |G| -1 of these constraints per group orbit, and each removes D degrees of freedom. This means the degrees of freedom of the dynamics is D &#215; (n -1). We can simulate dynamics under the holonomic constraints by simply only modeling the asymmetric unit&#57557;they are the generalized coordinates. <ref type="bibr">22</ref> Thus, our algorithm is to only integrate the asymmetric unit and explicitly consider the remaining (Nn) particles only when computing forces. This is similar to Dayal et al. <ref type="bibr">15</ref> Practically this is done by setting these constrained particles' positions just before computing forces. Similar to work on periodic boundary conditions, these equations of motion may lead to linear momentum conservation problems. <ref type="bibr">23,</ref><ref type="bibr">24</ref> One feature of nearly all potentials used in molecular dynamics is that they are G-invariant, where G is any planar, space, or permutation group: U(g&#8226;q)=U(q). That makes the forces, F(q), G-equivariant</p><p>because the potentials are composed of angles and distances, which are invariant to rotations, mirrors, and permutations. <ref type="bibr">25,</ref><ref type="bibr">26</ref> For a pairwise potential, we can use eqs 3 and 5 to rewrite the potential as</p><p>Uu G uGu qq q qq qq () ( ) 2 () ( ) ij ij i n j G ii j i n ki n j G ik j 01 0 01 0 0 &#8721; &#8721;&#8721; &#8721; &#8721; &#8721; =-= || -+ | | -&lt; == || == += || (6)</p><p>where the |G| factor accounts for intragroup orbit interactions that are not explicitly computed. This translates an algorithm of an outer loop over the asymmetric unit and an inner loop over all particles. B. Bravais Lattice. A space group consists of both a point group and a Bravais lattice. The Bravais lattice is specified with DD -dimensional unit cell vectors. Particles always remain in one cell among the lattice cells, which are called images. For example, we could simulate the "root" cell and its 26 neighboring cells in 3 dimensions. We follow the approach above and treat each image of the system with virtual particles while only integrating the root cell. This means all images of the system are explicit, and we can violate the minimum image convention. We were not signatories of the minimum image convention anyway. This approach allows the cell vectors to shrink well below the distance cutoff of the potential, provided we have enough virtual particles to populate past the cutoff of the asymmetric unit of the origin cell. You can simulate 3 aD images to allow the cells to shrink to at least 1/a the cutoff distance.</p><p>We need to convert between the fractional coordinates, which are used to tile the particles and apply the point group symmetry, to the Cartesian coordinates, which are used for integration and computed potentials. Given the box vectors in row-form B, we can transform between the representations via</p><p>where s(t) is the fraction of each lattice vector (i.e., fractional coordinates). Wrapping is trivial with fractional coordinates: s(t) fmod 1.0 will wrap the coordinates. All point group transformations are applied in s(t); however, a B -1 term should be added to eq 3 so that it operates on fractional coordinates. Bravais lattices include more than just the usual cubic and triclinic lattices commonly seen in molecular dynamics barostats. To ensure the cell vectors are consistent with the Bravais lattice while changing box size, we define a tensor L of shape D &#215; D &#215; D &#215; D that maps from a triclinic box vector to the proper Bravais lattice box vectors of the space group. For example, L 2011 is the contribution to Bravais lattice vector 2's x component from triclinic box vector 1's y component. There are many choices that could be made for L. For example, to make a cubic Bravais lattice from a triclinic box vector, we require a single parameter a to define the three lattice vectors (a, 0, 0),(0, a, 0),(0, 0, a). We could set a by averaging all the vector lengths, averaging all vector components, or selecting a to be the first element of the first vector. Each of these choices gives a different L, and some have large null spaces. NPT is then accomplished via scaling Monte Carlo moves in the triclinic box vectors (B&#8242;) following Frenkel and Eppenga, <ref type="bibr">27</ref> and the proper Bravais lattice is computed via B = LB&#8242;.</p><p>C. Wyckoff Positions. It is possible to have particles that violate eq 2 while still satisfying eq 1 if q i0 is in a special position called a Wyckoff position&#57557;like the origin. <ref type="bibr">21</ref> To perform constrained molecular dynamics of particle q i0 (t) occupying a Wyckoff position, we define a subgroup G&#8242; that contains the elements of G which do not leave q i0 (t) invariant plus an identity group element. The identity of this subgroup is not the identity transform but instead a transform that projects from a general position into the Wyckoff position. For example, the Wyckoff position may be the vertical line x =0 , and the identity group element would be the transform x&#8242; =0, y&#8242; = y. We will denote this group element as P to hint it is a projection.</p><p>The group orbit is similarly defined on the subgroup, and the other procedures above apply. However, q i0 (t) must stay in a Wyckoff position at all times to satisfy eq 1. This can be accomplished via traditional constrained molecular dynamics of Lagrange multipliers. <ref type="bibr">28</ref> Omitting the indices on q i0 (t), our holonomic constraint is</p><p>and the force from the constraint will be</p><p>where J[&#963;] is the Jacobian of &#963; with respect to constraint dimension and element of q(t). We can solve for &#955; by knowing that &#963;[q(t + &#916;t)] = 0</p><p>where &#916;t is the time step, m is the mass of the particle, and q&#8242;(t + &#916;t)isq(t) integrated without the constraint force by &#916;t.</p><p>All terms are constant except &#963;[q&#8242;(t + &#916;t)], which simplifies computation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. METHODS</head><p>We use the BAOAB Langevin dynamics integrator described in refs 29 and 30. Eq 4 is applied during position updates, and eq 3 is applied before velocity updates (force computation). Degrees of freedom is computed from number of asymmetric unit particles and deducted degrees of freedom from Wyckoff position restraints. All simulations are Lennard-Jones potentials with cutoff 3.5 and in reduced units. NVE simulations are conducted with the velocity-verlet integrator. A time step of 0.005 and a Langvin &#947; of 0.1 were used for all simulations. Since images are explicit in our implementation, it is necessary to specify the number. We use an image radius of 2-meaning 3 2D images are simulated where D is the dimension. To generate starting configurations, points were randomly generated and filtered to fit into the space group asymmetric unit as specified by Aroyo. <ref type="bibr">31</ref> Point group generators and Wyckoff sites were taken from the Bilbao crystallography server. <ref type="bibr">[32]</ref><ref type="bibr">[33]</ref><ref type="bibr">[34]</ref> We define our results in reduced units, as defined in ref 35. Specifically, energy (&#1013;) is fundamental, and &#964; is a derived unit of the form</p><p>where L, m, and &#1013; are the fundamental units of length, mass, and energy, respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. RESULTS</head><p>We first consider if our implementation conserves energy. Figure <ref type="figure">1</ref> shows the total energy of NVE simulations under a subset of space groups with 5 particles in the asymmetric unit. These were done at number densities of 0.2, with a starting temperature 0.5, and for 30k timesteps. The bottom trace (P1) has no symmetry constraints and shows good conservation. There are more fluctuations at other symmetry groups because there are more particles in their unit cells and thus higher energy fluctuations. For example, space group 127 (P4/mbm) has 80 particles in a unit cell when there are 5 in the asymmetric unit, meaning the interaction potential felt has more particles contributing to it.</p><p>Figure <ref type="figure">2</ref> shows an enumeration of crystal structures under different symmetry groups for a 2D Lennard-Jones fluid. The structures are generated in 2 steps. First, we simulate under a symmetry group constraint in NPT (P = 0.25, T = 0.1) for 1 M steps. Next, we do a constrained equilibration under NVT for 100k steps at T = 0.05. This structure is then the proposed crystal structure for the given symmetry group. Figure <ref type="figure">2</ref> shows the root mean square deviation (RMSD) if the resultant structure is simulated under no symmetry constraint in NVE for 5k steps. The assumption is that if the structure does not collapse (RMSD rise), it is metastable. We indeed find that this protocol under no symmetry constraints (p1) gives the correct hexagonal packing.</p><p>To enumerate all planar groups in 2D, we simulate under each group, with 4 choices of particle number (in unit cell) and varying occupancy of Wyckoff sites. As expected, the planar groups with hexagonal Bravais lattices (or permit them) have stable structures: p1, p2, pg, p3, p6, and cmm. 36 Some unusual stable structures are seen without hexagonal close-packing like p4m and p3m1. Metastable structures like these would be nearly impossible to generate without symmetry constraints in molecular dynamics. We find some symmetries have no metastable structures: p6m and most square close-packing (cm, cmm, p4g). Interestingly, voids seem to be the way to stabilize these close-packing structures like in pmg. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. DISCUSSION</head><p>Here is our advice on implementing symmetric molecular dynamics in a modern molecular dynamics engine. The asymmetric unit should be integrated as usual. Make the nonasymmetric unit particles (images) be ghost particles; ghost particles are nonintegrated particles used in force-field calculations. The ghost particles' positions should be set using affine matrices defining the group transformations in fractional coordinates. These matrices can be obtained from our library or crystallography tables.</p><p>Pressure computed for the asymmetric unit is not meaningful, and NPT should be done using the algorithm described above that does not require computing pressure from a virial. The lattice vectors may be stored separately than the usual lattice vectors and are only used to set the ghost particle positions. The tensor transforms can be loaded from our library. Periodic boundary conditions should be disabled entirely if doing NPT.</p><p>The constraints for Wyckoff sites are implemented as Lagrange multiplier constraints. The terms can be computed analytically at each step using eq 10.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. CONCLUSIONS</head><p>We have formulated a symmetric molecular dynamics algorithm and implemented it. Results show that it can do NPT to enumerate metastable crystal structures. A reference implementation is available at <ref type="url">https://github.com/whitead/</ref> symd.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>https://doi.org/10.1021/acs.jctc.2c00401 J. Chem. Theory Comput. XXXX, XXX, XXX-XXX B</p></note>
		</body>
		</text>
</TEI>
