moment_of_force() - mkraska/meclib GitHub Wiki

M: moment_of_force( [px, py], f, fname, rname)

Returns the moment of the "force" object about point p

  • M moment about z (counterclockwise positive).
  • [px, py] point of reference, given as a numeric co-ordinate list
  • f object of type "force"
  • fname (algebraic expression) size of the force (usually taken from the "names" input field).
  • rname (algebraic expression) grid unit length

The force vector is computed from startpoint and endpoint. The vector is then normalized and multiplied by fname. The radius vector is computed from the start point and the reference point and multiplied by rname.

The moment is then computed as the cross product of both vectors.

Helper function for Feedback for Free Body Diagrams

Source