Mechanics Tutorials¶
These tutorials are designed to showcase the functionality of the sympy.physics.mechanics
module through
detailed examples and step-by-step instructions. We demonstrate how to model various mechanical systems,
derive equations of motion, and solve dynamic problems using Kane’s and Lagrange’s method.
Each example includes clear explanations, mathematical formulations, and code to illustrate key concepts.
- Duffing Oscillator with a Pendulum
- A rolling disc
- Multi Degree of Freedom Holonomic System
- Nonminimal Coordinates Pendulum
- A four bar linkage
- Linearized Carvallo-Whipple Bicycle Model
- Atwood Machine Example
- Define Variables
- Inertial Frame and Pulley Center
- Positions and Velocities of the Two Masses
- Create WrappingCylinder for the Pulley
- Determine Tangent Points \(T_1\) and \(T_2\)
- WrappingPathway Over the Cylinder
- Compute Segment Lengths and Verify Inextensible Rope
- Define Gravity Forces on Each Mass
- Collect All Loads for Kane’s Method
- Kinematic Differential Equation
- Formulate and Solve via Kane’s Method
- Numeric Check
- Conclusion
- References