Every diagram below was rendered by the library itself, as inline SVG.
Each to_svg() call is shown next to its output.
A block with four forces
fb = Freebody("Block", mass=10)
fb.addForce("Gravity", 98.1, Direction.down)
fb.addForce("Normal", 98.1, Direction.up)
fb.addForce("Applied", 50, Direction.right)
fb.addForce("Friction", 30, Direction.left)
fb.to_svg(show_net=True)
Hanging mass (equilibrium)
fb = Freebody("Hanging mass", mass=5, legend=LegendType.arrow)
fb.add_weight() # gravity = m*g, down
fb.addForce("Tension", 49.05, Direction.up)
fb.to_svg()
Resultant of two forces
fb = Freebody("Resultant (3-4-5)", mass=1)
fb.addForce("East", 3, Direction.right)
fb.addForce("North", 4, Direction.up)
fb.net_magnitude() # -> 5.0
fb.to_svg(show_net=True)
Crate on an inclined plane
fb = Freebody("Crate on ramp", mass=12,
sysType=SystemType.inclined_plane, incline=0.52)
fb.addForce("Weight", 117.7, Direction.down)
fb.addForce("Normal", 102, Direction.degrees(120))
fb.addForce("Friction", 58, Direction.degrees(30))
fb.to_svg()
Angled pull on a box
fb = Freebody("Angled pull", mass=8)
fb.add_weight()
fb.addForce("Normal", 78.5, Direction.up)
fb.addForce("Pull", 60, Direction.degrees(35))
fb.to_svg()