Fix rigid

Hello, I’m new to Lammps and I have a problem with the fix rigid command. First of all I tried to run the example rigid in the example directory, but I have the error:
ERROR: Invalid fix style (…/modify.cpp:731)

I tried other examples and they works well, such as the example of crack etc. I don’t know if my Lammps version is well built or if the command fix rigid has some problem.
Have you ever had the same problem?
Is there any very simple script with the rigid command, that you know that works, I can try?
Thank you very much

Francesco Tavanti, Ph.D.

PhD student at the Department of Chemistry and Geology
Laboratory for Computational Material Chemistry (CompMaterChem)
Via Campi 183 - 41125 Modena, Italy
Room: MO-16-01-034
Mobile: +39 3336711500
E-mail: [email protected]…3753…
Alternative e-mail: [email protected]…24…

Fix rigid is part of the RIGID package. Please ser Making Lammps for how to include optional packages.


And lmp_machine -h
is your friend. It will show
you if your executable contains fix rigid or not.