Can you provide the Matlab code for given problem?
Write a code to produce a simulation of the mechanism motion using the equation written in red in the file.
Problem Description:
Consider a shaft BP which has a pinned joint at point ‘B' and is connected to a slider at end ‘P'. The slider at ‘P' is capable of sliding freely in the slot of shaft AE. The shaft BP is moving by a constant angular speed ‘ω'. Mass of the slider is ‘m' and coefficient of friction between slider and rod AE isμ_k.As a result of rotation of BP, the slider ‘P' exhibit a reciprocating motion in the slot of AE thus causing angular motion to shaft AE. The angular velocity and angular acceleration of shaft AE and required activation torque at joint-B are found for different values of θ.
S No
|
Parameter
|
Value
|
1
|
Distance AB (b)
|
30 in
|
2
|
Length of arm BP (d)
|
15 in
|
3
|
Mass of slider (m)
|
1 lbm
|
4
|
Constant Angular velocity of BP
|
6 rad/sec
|
5
|
Coefficient of friction between follower and rod AE
|
0.25
|
The Geometry of of the Mechanism.
Attachment:- mech.rar