-
- Downloads
Fix torque based constraints for negative moments.
The constraint magnetic field that is calculated based on the torque is now muliplied by the sign of the magnetic moment in the local frame of reference. The torque has to be understood as an energy related to a change in the direction of the local frame of reference. This can differ from the direction of the magnetic moment by a sign. For the constraint fields, the energy related to a change of the direction of the moment is needed, so this sign has to be put at this point. (This is probably somewhat confusing, I'll add a better explanation and probably some sketch to the documentation of these features.)