set quaternions

i use ellipsoid particles.can i set quaternions from a file or from a particular snapshot in a dump file?

i use ellipsoid particles.can i set quaternions from a file or from a particular snapshot in a dump file?

i use ellipsoid particles.can i set quaternions from a file or from a
particular snapshot in a dump file?

​the former. please see the manual.​

can you explain a little ? what is former? i couldn’t find former in manual.

i use ellipsoid particles.can i set quaternions from a file or from a particular snapshot in a dump file?

​the former. please see the manual.​

can you explain a little ? what is former? i couldn't find former in
manual.

​you asked about two things: 1) reading from a file, 2) reading from a
snapshot of a dump

1) is the former, 2) the latter

1) is possible with a data file. the syntax of such a data file is
explained at great detail in the manual.

axel. ​

no . my question is about quaternions. i don’t know how set quaternions from a file. i know how can i set position and velocity with a file. but for quaternions i couldn’t find anything in manual.

can you explain a little ? what is former? i couldn’t find former in manual.

​you asked about two things: 1) reading from a file, 2) reading from a snapshot of a dump

  1. is the former, 2) the latter

  2. is possible with a data file. the syntax of such a data file is explained at great detail in the manual.

axel. ​

You can also set quaternions via the set command.

Steve

in set command i just know set with numbers that wrote it there. for example:

set group all quat 0 0 1 0
but here i have lots of particle that each of them has certain quaternions number. how can set quaternions from a file with set command??

You can also set quaternions via the set command.

Steve

no . my question is about quaternions. i don't know how set quaternions
from a file. i know how can i set position and velocity with a file. but
for quaternions i couldn't find anything in manual.

​this is getting annoying. the fact that you are not able to find it,
doesn't mean it is not there. it simply means, that you are not searching
well. if you don't manage to become better at reading the LAMMPS
documentation, you should stop using it. since this is a *key* thing that
you will have to do over and over again.​

​there *is* a section about ellipsoids in the documentation for the
read_data command that describes the data file format in great detail.

​axel.​

in set command i just know set with numbers that wrote it there. for
example:

*set* group all *quat* 0 0 1 0
but here i have lots of particle that each of them has certain quaternions
number. how can set quaternions from a file with set command??

​by using common sense. if you keep refusing to show some mental
flexibility, you will not get happy here.

a) there are multiple ways how you can use the "set" command, including for
individual atoms.

b) you can just write a little script that outputs all those set commands
for you to a file and use the "include" command to read that file. the
effect is equivalent to reading a data file, but it is less convenient.

in the end, you need to be a bit more creative and make and effort. what
the manual provides are often only pieces to the solution for a particular
problem, and it is *your* job to put them together.

​axel.​