controltheorylib.mech_vis.springdamper
- springdamper = <function springdamper>[source]
Combines a spring and a damper between two points.
- Parameters:
start (np.ndarray) – Start point of the combined element.
end (np.ndarray) – End point of the combined element.
num_coils (int) – Number of coils in the spring.
type (str) – Spring type (“zigzag” or “helical”).
width (float) – Common width for both spring (2 * coil_width) and damper.
fluid_color (Color) – Fill color of the damper’s fluid.
inline (bool) – If True, overlap spring and damper. If False, place them side by side.
**kwargs (dict) – Additional stroke/fill options.
- Returns:
Combined spring and damper.
- Return type:
VGroup