fix addtorque

Submitted by K.cheng on Sun, 04/12/2015 - 10:42

Hello,
When i use the command "fix...addtorque" to add torque to one particle, it happens an error " invalid fix style: "addtorque" " . Did anybody encountered this kind of situation?

thanks

ckloss's picture

ckloss | Mon, 04/13/2015 - 11:13

fix addtorque is not enabled by default, it's in the USER-MISC packgage that you have to explicity install (and then recompile)

Christoph

K.cheng | Mon, 04/13/2015 - 14:40

Dear Christoph
thanks very much for your reply. You are a great help! Now , i think i know what went wrong. but where can i find USER-MISC package and how to install it ? i an new at this and maybe my question sounds pretty silly.please teach me .
thank you
K.cheng

Daniel Queteschiner | Tue, 04/14/2015 - 14:17

The USER-MISC package is the folder USER-MISC in the src directory. Read section "2.3 Making LAMMPS with optional packages" in the LIGGGHTS manual to learn how to include optional packages.

K.cheng | Tue, 04/14/2015 - 15:58

I used command " make yes-user-misc" then use " make g++" ,but at last "error g++" was displayed on the screen . and command " addtorque " is still invalid

richti83's picture

richti83 | Wed, 04/15/2015 - 22:18

what error do you get ? sounds to me that g++ or mpicxx isn't setup properly

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

K.cheng | Thu, 04/16/2015 - 04:29

I encountered an error " the keyword 'addtorque' is invalid" when I used the command " fix addtorque". A friend told me that this command is invalid by default. Then I try to install it by using " make yes-user-misc , make g++". But the same error still existed.You told me to use " make fedora" instead,but it also did not work

richti83's picture

richti83 | Thu, 04/16/2015 - 08:29

are you aware that linux is case sensitive ? it should be make yes-USER-MISC.
On the other hand, you can copy the files fix_addtorque.h and .cpp from folder src/USER-MISC/ to /src/ and recompile with make fedora.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact