Cylinder_rotation_in_lammps

I have started learning MD simulation and stuck with a rotation problem.

I have started learning MD simulation and stuck with a rotation problem.

I want to rotate a cylinder by a certain angle. I have gone though LAMMPS command but failed to solve it.

Here is my code:

#create 1st NW

region NW1 cylinder y 0.0 12.0 12.0 -24.0 24.0 side in

create_atoms 1 region NW1

group e1 region NW1

#create 2nd NW

region NW2 cylinder x 0.0 -13.0 12.0 -24.0 24.0 side in

create_atoms 1 region NW2

group e2 region NW2

So I want to rotate the NW2 cylinder by 25 degree. The axis of rotation vector should contain (0,0,-1) and (0,0,-25) points (I am quite sure on that)

LAMMPS has a “displace_atoms” command which allows to perform rotations, if i remember correctly. please see the manual for details.

axel.