Dear Colleagues.

It might be overly simple question, but does anyone know how to construct a cylinder with arbitrary axis (like, (1,1,1)) ?

As far as I know, LAMMPS provides command on axis only parallel to coordinate axis.

thanks in advance.

Dear Colleagues.

It might be overly simple question, but does anyone know how to construct a cylinder with arbitrary axis (like, (1,1,1)) ?

As far as I know, LAMMPS provides command on axis only parallel to coordinate axis.

thanks in advance.

If you mean a cylinder of atoms at an orientation,

then see the lattice command and its orient option

to set the crystal orientation of the atoms themselves.

Then when you create_atoms you can do it in a region

which is a cylinder and the cylinder can be rotated to

some direction via the region rotate option.

Think of it in 2 steps. You are filling a geometric

volume and the filling is done by putting atoms

on lattice points where the lattice can also be

arbitrarily oriented.

Steve