MATHEMATICA FEATURED EXAMPLE
A Mechanical System with Algebraic Constraints
This mass-spring-damper system includes a rigid bar that can prevent the motion of the second mass.
| In[96]:= |
Obtain a StateSpaceModel representation:
| In[98]:= |
Use OutputResponse to simulate the system both when the bar is locked and unlocked:
| In[99]:= |
| Out[99]= | Play Animation ▪![]() |




