fix addtorque command

Recently, I want to study the fix addtorque command.

I want to add a torque to rotate the spindle. So I write a few lines of the program about the addtorque command. But the spindle can’t rotate.

Thus, I want to receive some example files about the addtorque command so that I could imitate to write my own in.file.

Please as simple as possible, I am a new learner.

Thanks.

Recently, I want to study the fix addtorque command.

I want to add a torque to rotate the spindle. So I write a few lines of the
program about the addtorque command. But the spindle can’t rotate.

Thus, I want to receive some example files about the addtorque command so
that I could imitate to write my own in.file.

Please as simple as possible, I am a new learner.

if the examples in the fix addtorque documentation are not sufficient.
you'll be better off practicing LAMMPS with a simpler system.
the documentation is pretty straightforward and thus any problems with
it are a sign of having difficulties of understanding the flow of
control in LAMMPS inputs in general.
that is easier to understand, e.g. with fix addforce (which is
conceptually the same), and a much simpler system.
making examples simpler is not going to help. it can't really get any
simpler than what is already provided in the documentation.

axel.