Forums
Hi all,
I'm new to LIGGGHTS. I want make a particle spin in the simulation.
At first, the atom_style in my simulation is granular. Under these circumstances, I set the angular velocity via "velocity......setAngular......" , and the terminal give a feedback:
"set Angular requires the atom property 'angmom' as defined by atom_style ellipsoid. (../velocity.cpp:426)"
Then I use atom_style "ellipsoid", but the terminal give a feedback this time:
"Fix wall/gran (id boxwalls_x1): requires atom attributes radius, omega, torque (../fix_wall_gran.cpp:107)"
I don't know how to solve it.
Can anybody tell me how to make a particle spin in the simulation?
Thanks.
Use the 'set' command
Use the
setcommand with the optionsomegax, omegay, omegazto set the angular velocity. Alternatively, set the angular velocity upon insertion via the fix insert* commands. You cannot use the 'ellipsoid' style with the granular contact models, just 'granular' or 'sphere'.