[lammps-users] Using lattice command for HCP

Dear LAMMPS Users,
 I have a problem with setting up a HCP lattice by the lattice custom command. the positions of atoms and also the transition vectors(lattice parameters) of the structure are below: ( they belong to the pure Ti )

  Ti 0.00000000 1.71473030 2.36000000
 Ti 1.48500000 0.85736515 0.00000000
 Ti 0.00000000 1.71473030 0.00000000
 Ti 1.48500000 0.85736515 2.36000000
 Tv 2.97000000 0.00000000 0.00000000
 Tv -1.48500000 2.57209545 0.00000000
 Tv 0.00000000 0.00000000 4.72000000

 I have used this command :    lattice custom 2.95 a1 2.95 0.0 0.0 a2 -1.475 2.55 0.0 a3 0.0 0.0 4.686 &
  basis 0.0 1.703 1.171 basis 1.475 0.851 3.514
 but I got an error " illegal lattice command ".
Thanks and regards
saurav kumar
Masters student
NIT Jamshedpur

An error of “Ilegal command” means that your input does not conform to the documented requirements of the corresponding commands.
Either the syntax is not correct or the values are not within the required format or value ranges.
To resolve this, you have to carefully study the documentation and correct your input accordingly.