Quantcast
Channel: Active questions tagged molecular-dynamics - Matter Modeling Stack Exchange
Viewing all articles
Browse latest Browse all 138

How to rotate a periodic structure in LAMMPS?

$
0
0

I want to rotate a periodic structure like this one

enter image description here

by a 10 degrees around a z-axis (perpendicular to the plane) that goes through the center of the simulation box.

After writing this in LAMMPS,

variable xc equal "lx/2."variable yc equal "ly/2."variable zc equal "lz/2."displace_atoms all rotate ${xc} ${yc} ${zc} 0 0 1 10 units box

I get the following:

enter image description here

which is easier to see if I replicate it:

enter image description here

From this, I understand that the rotate command in LAMMPS rotates the atoms in the simulation box.

How to make a rotation that as if an infinite plane is rotated, and only a finite simulation box is cut out of this plane? Is it possible to make such rotation after which the boundaries are still periodic?


Viewing all articles
Browse latest Browse all 138

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>