Lattice Orient Vector error


When I use irrational numbers in my lattice orient command, I get some errors. For example, for this command: lattice fcc 3.615 orient x sqrt(3) 0 0 orient y 0 1 0 orient z 0 0 sqrt(3)
ERROR: Lattice orient vectors are not right-handed

But these are right-handed!

Any help is greatly appreciated. Thank you.

Warm regards,

You can't use sqrt(3) in the middle of this (or any) LAMMPS command.
It doesn't do math for you on arbitrary arguments. You can
do this

variable s equal sqrt(3)
lattice .... orient x $s 0 0 ...

See the variable doc page for more details.