Consider the planar linkage shown below the crank link with

Assignment Help Applications of MATLAB
Reference no: EM13374862

Consider the planar linkage shown below. The crank (link with length R) will turn counter-clockwise with constant angular velocity. The slider will experience a force of 100 N directed to the left. Your task is to write a program that calculates the required input torque and the magnitude of the pin reaction forces for two revolutions of the input link. You will then use your program to determine how changing the dimension H changes the average magnitude of the pin reaction forces at pins A, B and C (refer to the free-body diagram for the location of these pins).

866_Newtons method.png

The first task is to determine the coordinates Φ, s given θ. The constraint equations that must be satisfied are:

2472_Newtons method1.png

You are required to solve these equations using Newton's method. The next task is to solve for the time derivatives of Φ, given θ(constant). Equations (1) and (2) may be differentiated to obtain the following linear systems of equation in the unknowns. You may use the MATLAB "\" operator to solve these.

540_Newtons method2.png

897_Newtons method3.png

The next step is to draw the free-body diagrams and write the corresponding dynamic equations. Following is the free-body diagram. Note that we are neglecting friction on the slider.

1220_Newtons method4.png

The resulting dynamics equations may be cast in matrix form as

127_Newtons method5.png

where m1 = 10 kg, m2 = 25 kg, m3 = 10 kg and I2 = m2 L2/12

1344_Newtons method6.png

929_Newtons method7.png

You may use the MATLAB cross function to obtain the above cross products. Note that the accelerations are known functions of the derivatives of the three coordinates.

Turn in a brief report containing the following:

(i) title page
(ii) introduction and objectives
(iii) program design (choices for functions)
(iv) results including plots (labeled) of simulation results for the base case

105_Newtons method8.png

(v) include a plot displaying the average value of the magnitude of the pin reaction forces over the complete cycle vs. H for the range -0.7≤H≤0.7
(vi) discussion of results including conclusion for part (v)

Code:

m.file for kinemt
function [x,v,a] = kinemt(R,L,H,theta,xo,omega,alpha)
phi = xo(1);
s = xo(2);
% constraint equations
f(1) = R*cos(theta)+L*cos(phi)-s;
f(2) = R*sin(theta)+L*sin(phi)-H;
while f*f'>1.0e-8
Jac = [-L*sin(phi) -1;
L*cos(phi) 0];
dx = -Jac\f';
phi = phi+dx(1);
s = s+dx(2);
f(1) = R*cos(theta)+L*cos(phi)-s;
f(2) = R*sin(theta)+L*sin(phi)-H;
end
x = [phi,s]';
Jac = [-L*sin(phi) -1;
L*cos(phi) 0];
rhsv = [R*sin(theta)*omega -R*cos(theta)*omega]';
v = Jac\rhsv;
rhsa = [R*cos(theta)*omega^2+L*cos(phi)*v(1)^2;
R*sin(theta)*omega^2+L*sin(phi)*v(1)^2];
a = Jac\rhsa;
m.file for loader
function [system, rhs] = loader(R,L,H,theta,x,omega,alpha,v,a,PoA);
m1 = 10;
m2 = m1*L/R;
m3 = m1;
I2 = m2*L^2/12;
g = 10;
R1 = 0.5*R*[cos(theta) sin(theta) 0]';
omega1 = [0 0 omega]';
temp1 = cross(omega1, R1);
a1 = cross(omega1, temp1);
R2 = 0.5*L*[cos(x(1)) sin(x(1)) 0]';
omega2 = [0 0 v(1)]';
alpha2 = [0 0 a(1)]';
temp2 = cross(omega2,R2);
a2 = cross(omega2,temp2)+cross(alpha2,R2)+2*a1;
a3 = [a(2) 0 0]';
system = zeros(7);
rhs = zeros(7,1);
system(1,1) = 1;
system(1,3) = 1;
rhs(1) = m1*a1(1);
system(2,2) = 1;
system(2,4) = 1;
rhs(2) = m1*(a1(2)+g);
system(3,1) = 0.5*R*sin(theta);
system(3,2) = -0.5*R*cos(theta);
system(3,3) = -system(3,1);
system(3,4) = -system(3,2);
system(3,7) = 1;
system(4,3) = -1;
system(4,5) = 1;
rhs(4) = m2*a2(1);
system(5,4) = -1;
system(5,6) = 1;
rhs(5) = m2*(a2(2)+g);
system(6,3) = -0.5*L*sin(x(1));
system(6,4) = 0.5*L*cos(x(1));
system(6,5) = system(6,3);
system(6,6) = system(6,4);
rhs(6) = I2*a(1);
system(7,5) = -1;
rhs(7) = PoA+m3*a3(1);
main m.file for project
R = 0.5;
L = 1.25;
H = 0.25;
omega = 25;
alpha = 0;
PoA = 1000;
index = 0;
for H = -0.7:0.05:0.7
H
for k = 1:721
theta(k) = (k-1)*2*pi/360;
if k == 1
xo = [0 L+R]';
else
xo = [phi(k-1) s(k-1)]';
end
[x,v,a] = kinemt(R,L,H,theta(k),xo,omega,alpha);
phi(k) = x(1);
s(k) = x(2);
phid(k) = v(1);
sd(k) = v(2);
phidd(k) = a(1);
sdd(k) = a(2);
[system,rhs] = loader(R,L,H,theta(k),x,omega,alpha,v,a,PoA);
forces = system\rhs;
torq(k) = forces(7);
pin1(k) = sqrt(forces(1)^2+forces(2)^2);
pin2(k) = sqrt(forces(3)^2+forces(4)^2);
pin3(k) = sqrt(forces(5)^2+forces(6)^2);
end
index = index+1;
HH(index) = H
p1m(index) = max(abs(pin1));
p2m(index) = max(abs(pin2));
p3m(index) = max(abs(pin3));
p1a(index) = max(abs(pin1));
p2a(index) = max(abs(pin2));
p3a(index) = max(abs(pin3));
end
plot(HH,p1m,'r',HH,p2m,'g',HH,p3m,'b')
pause
plot(HH,p1a,'r',HH,p2a,'g',HH,p3a,'b')
pause
subplot(211)
plot(theta,phi)
subplot(212)

Reference no: EM13374862

Questions Cloud

Part 1 george ltd manufactures two types of coils used in : part 1 george ltd manufactures two types of coils used in electric motors. the two types are nbspc20 and d40. they both
Part a international standards on auditing isa have been : part a international standards on auditing isa have been approved by the international auditing and assurance board
Answer based upon your knowledge of economics and class : answer based upon your knowledge of economics and class notes on differenes in wages and discrimination make and wage
Develop an employee benefit program that attracts and : develop an employee benefit program that attracts and maintains the right people at the right time to supply a
Consider the planar linkage shown below the crank link with : consider the planar linkage shown below. the crank link with length r will turn counter-clockwise with constant angular
Welcome to the quality and clinical governance learning : welcome to the quality and clinical governance learning support material. we hope you will enjoy studying this module
Marlow beale amp burn 2010 suggested that the lack of : marlow beale amp burn 2010 suggested that the lack of information the lack of appropriate tools and the need for
Reading 1what was the russian revolution aboutwhat kind of : reading 1what was the russian revolution about?what kind of factors did bring it to existence and make it
Section anbspuse your kills to analyze compare criticize : section anbspuse your kills to analyze compare criticize evaluate and justify the answers in a process to solve the

Reviews

Write a Review

Applications of MATLAB Questions & Answers

  Problem consider a trapezoidal piece of polymer film as

problem consider a trapezoidal piece of polymer film as shown below. the parallel sides of the trapezoid are insulated

  In a shell-and-tube heat exchanger one fluid passes through

in a shell-and-tube heat exchanger one fluid passes through a central tube while another fluid flows through an outer

  1 we want to find the integral of a function at an

1. we want to find the integral of a function at an arbitrary location x from the origin.nbsp thuswhere ix0 is the

  Write a matlab function speed planetary n emesh first last

write a matlab function speed planetary n emesh first last arm that computes the speed of a given link in a

  1 this problem is intended to demonstrate some problems

1. this problem is intended to demonstrate some problems that can arise from the finite precision of numerical

  Create the following graph which contains a piecewise

create the following graph which contains a piecewise function where a line exists in the first interval a parabola in

  1 given the following actual cpu burst for a tasknbsp 6 4 6

1. given the following actual cpu burst for a tasknbsp 6 4 6 4 13 13 13 and an initial best guess at the burst as 10

  Problem 1nbsp use matlab to answer the following system of

problem 1.nbsp use matlab to answer the following system of linear equations2x y 3z 1 2x 6y 8z 3 6x 8y 18z 5

  Implementation in matlab under windows to open a named pipe

implementation in matlab under windows to open a named pipe and to read data from the pipe an other program writes into

  P1 write the commands that will create the following matrix

p1 write the commands that will create the following matrix. you can use only special matrix commandsp2 two cars

  1 let pnx be the lagrange interpolating polynomial of

1. let pnx be the lagrange interpolating polynomial of degree at most n that satis?es pnxi yi i 0 1 2 . . . n.write

  Q1 filter function form is y myfilterxba where x is

q1 filter function form is y myfilterxba where x is input y is output and a and b are the iir and fir

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd