I have been working with lammps using class2 potential and I have found what i think is a bug in the code. In the improper part of the potential (improper_class2.cpp – line 716) the code says:
dthABC = thetaABC - aa_theta0_1[type];
dthCBD = thetaCBD - aa_theta0_2[type];
dthABD = thetaABD – aa_theta0_3[type];
But I think it should be:
dthABC = thetaABC - aa_theta0_1[type];
dthCBD = thetaCBD - aa_theta0_3[type];
dthABD = thetaABD – aa_theta0_2[type];
Is this right?