O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

Part I For the given slider crank mechanism- create a computer program (1).docx

Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Próximos SlideShares
MATLAB Scripts - Examples
MATLAB Scripts - Examples
Carregando em…3
×

Confira estes a seguir

1 de 2 Anúncio

Part I For the given slider crank mechanism- create a computer program (1).docx

Baixar para ler offline

Part I
For the given slider crank mechanism, create a computer program (either with MATLAB or Microsoft Excel) to meet the following criteria:
Run your program/spreadsheet with the following initial conditions:
Solution
plot the postion velocity and accleration for conn rod and piston using follwing code
function [Vp,Ap,Wcr,Acr]=slider(l,b)
n=60;%rpm
w=2*pi*n/60;% angular velocity
l=6;% conneting rod length
b=2;% crank lenth
c=l/b;
theta=0:0.1:2*pi; % crank orientation
Vp= b*w*(sin(theta)+(sin(2*theta)/(2*c))); % slider velocity
Ap= b*w^2*(cos(theta)+(cos(2*theta)/c)); % slider accleration
Wcr= w*cos(theta)/c; % connecting rod velocity
Acr= w^2*sin(theta)/c; % connecting rod accleration
% thetaCR=(180-theta-atan(b/l));
Xp = b*(cos(theta)-c + sqrt(c^2-(sin(theta).*sin(theta)))); % postion of slider
figure(1)
plot(theta,Xp)
xlabel(\'theta2\')
ylabel(\'position of piston\')
figure(2)
plot(theta,Vp)
xlabel(\'theta2\')
ylabel(\'velocity of piston\')
figure(3)
plot(theta,Ap)
xlabel(\'theta2\')
ylabel(\'accleration of piston\')
figure(4)
plot(theta,Wcr)
xlabel(\'theta2\')
ylabel(\'angular velocity of conneting rod\')
figure(5)
plot(theta,Acr)
xlabel(\'theta2\')
ylabel(\'angular accleration of conneting rod\')
max(Xp)
max(Ap)
max(Vp)
end
## graph 1, 2 gives ang velocity and angular accleration of connecting rod
3,4,5 gives position, velocity and accleration of slider respectively.
max postion of piston =8 in
max velocity of piston =105.27 in/sec
max accleraion of piston =13.18 in /sec^2
you can find the jpg image files for problem here
https://drive.google.com/folderview?id=0BwqCw_0WgOYPR2FFcWJQck82UlU&usp=sharing
.

Part I
For the given slider crank mechanism, create a computer program (either with MATLAB or Microsoft Excel) to meet the following criteria:
Run your program/spreadsheet with the following initial conditions:
Solution
plot the postion velocity and accleration for conn rod and piston using follwing code
function [Vp,Ap,Wcr,Acr]=slider(l,b)
n=60;%rpm
w=2*pi*n/60;% angular velocity
l=6;% conneting rod length
b=2;% crank lenth
c=l/b;
theta=0:0.1:2*pi; % crank orientation
Vp= b*w*(sin(theta)+(sin(2*theta)/(2*c))); % slider velocity
Ap= b*w^2*(cos(theta)+(cos(2*theta)/c)); % slider accleration
Wcr= w*cos(theta)/c; % connecting rod velocity
Acr= w^2*sin(theta)/c; % connecting rod accleration
% thetaCR=(180-theta-atan(b/l));
Xp = b*(cos(theta)-c + sqrt(c^2-(sin(theta).*sin(theta)))); % postion of slider
figure(1)
plot(theta,Xp)
xlabel(\'theta2\')
ylabel(\'position of piston\')
figure(2)
plot(theta,Vp)
xlabel(\'theta2\')
ylabel(\'velocity of piston\')
figure(3)
plot(theta,Ap)
xlabel(\'theta2\')
ylabel(\'accleration of piston\')
figure(4)
plot(theta,Wcr)
xlabel(\'theta2\')
ylabel(\'angular velocity of conneting rod\')
figure(5)
plot(theta,Acr)
xlabel(\'theta2\')
ylabel(\'angular accleration of conneting rod\')
max(Xp)
max(Ap)
max(Vp)
end
## graph 1, 2 gives ang velocity and angular accleration of connecting rod
3,4,5 gives position, velocity and accleration of slider respectively.
max postion of piston =8 in
max velocity of piston =105.27 in/sec
max accleraion of piston =13.18 in /sec^2
you can find the jpg image files for problem here
https://drive.google.com/folderview?id=0BwqCw_0WgOYPR2FFcWJQck82UlU&usp=sharing
.

Anúncio
Anúncio

Mais Conteúdo rRelacionado

Semelhante a Part I For the given slider crank mechanism- create a computer program (1).docx (20)

Mais de carold11 (20)

Anúncio

Mais recentes (20)

Part I For the given slider crank mechanism- create a computer program (1).docx

  1. 1. Part I For the given slider crank mechanism, create a computer program (either with MATLAB or Microsoft Excel) to meet the following criteria: Run your program/spreadsheet with the following initial conditions: Solution plot the postion velocity and accleration for conn rod and piston using follwing code function [Vp,Ap,Wcr,Acr]=slider(l,b) n=60;%rpm w=2*pi*n/60;% angular velocity l=6;% conneting rod length b=2;% crank lenth c=l/b; theta=0:0.1:2*pi; % crank orientation Vp= b*w*(sin(theta)+(sin(2*theta)/(2*c))); % slider velocity Ap= b*w^2*(cos(theta)+(cos(2*theta)/c)); % slider accleration Wcr= w*cos(theta)/c; % connecting rod velocity Acr= w^2*sin(theta)/c; % connecting rod accleration % thetaCR=(180-theta-atan(b/l)); Xp = b*(cos(theta)-c + sqrt(c^2-(sin(theta).*sin(theta)))); % postion of slider figure(1) plot(theta,Xp) xlabel('theta2') ylabel('position of piston') figure(2) plot(theta,Vp) xlabel('theta2') ylabel('velocity of piston')
  2. 2. figure(3) plot(theta,Ap) xlabel('theta2') ylabel('accleration of piston') figure(4) plot(theta,Wcr) xlabel('theta2') ylabel('angular velocity of conneting rod') figure(5) plot(theta,Acr) xlabel('theta2') ylabel('angular accleration of conneting rod') max(Xp) max(Ap) max(Vp) end ## graph 1, 2 gives ang velocity and angular accleration of connecting rod 3,4,5 gives position, velocity and accleration of slider respectively. max postion of piston =8 in max velocity of piston =105.27 in/sec max accleraion of piston =13.18 in /sec^2 you can find the jpg image files for problem here https://drive.google.com/folderview?id=0BwqCw_0WgOYPR2FFcWJQck82UlU&usp=sharing

×