Vous êtes sur la page 1sur 11

2014

Mecanismo Biela Manivela

UNIVERSIDAD CATOLICA DE SANTA MARIA

FACULTAD DE CIENCIAS E INGENIERIAS FISICAS Y


FORMALES

PROGRAMA PROFESIONAL

INGENIERIA MECANICA ELECTRICA

Curso :Diseño de Mecanismos


Tema: Mecanismo Biela Manivela
Alumno: CHILIN
METODO ANALITICO
I PROCEDIMIENTO DE SOLUCION, PROGRAMACION

clear all
clc
disp(' ');
disp(' &&&& DISEÑO DE MECANISMOS &&&&');
disp(' &&&& MECANISMO BIELA MANIVELA &&&&');
disp(' ');
disp(' MENU ');
disp(' 1: Velocidad Angular Constante ');
disp(' 2: Aceleracion Angular Constante ');
disp(' 3: Escape ');
al = input (' Seleccione Alternativa: ');
disp(' ');
switch al

case 1

bi=input(' ¿ Longitud de la biela (m)? bi = ');


ma=input(' ¿ Longitud de la manivela ma (m) = ');
th1=input(' ¿ Velocidad Angular constante (°)? th1= ');
th2ra=0;
thse = [1:3:180];
[long,col]=size(thse);

for i=1:0.1:long

thra =thse*pi/180;
th1ra =th1*pi/180;
ph=asin((bi/ma)*sin(thra));
x=bi*cos(thra)+ma*cos(ph)-(bi+ma);
ph1=(bi*th1ra/ma)*(cos(thra)./cos(ph));
x1=-bi*sin(thra)*th1ra-ma*sin(ph).*ph1;
ph2=(-bi*sin(thra)*th1ra^2+bi*cos(thra)*th2ra+ma*sin(ph).*ph1.^2)./(ma*cos(ph));
x2=-bi*cos(thra)*th1ra^2-bi*sin(thra)*th2ra-ma*cos(ph).*ph1.^2-ma*sin(ph).*ph2;

end

subplot(411);plot(thse,x,'gx');
xlabel('ANGULO');ylabel('POSICION');grid on;
subplot(412);plot(thse,x1,'rx');
xlabel('ANGULO');ylabel('VELOCIDAD');grid on;
subplot(413);plot(thse,x2,'bx');
xlabel('ANGULO');ylabel('ACELERACION');grid on;
subplot(414);plot(thse,x,'g',thse,x1,'r',thse,x2,'b');grid on;

figure
subplot(411);plot(thse,ph,'g+');
xlabel('ANGULO');ylabel('phi');grid on;
subplot(412);plot(thse,ph1,'r+');
xlabel('ANGULO');ylabel('phi1');grid on;
subplot(413);plot(thse,ph2,'b+');
xlabel('ANGULO');ylabel('phi2');grid on;
subplot(414);plot(thse,ph,'g',thse,ph1,'r',thse,ph2,'b');grid on;

case 2
bi=input(' ¿ Longitud de la biela (m)? bi = ');
ma=input(' ¿ Longitud de la manivela ma (m) = ');
th1=input(' ¿ Velocidad Angular (°)? th1= ');
th2=input(' ¿Aceleracion angular constante (°)? th2= ');

thse =[1:3:180];
[long,col]=size(thse);
for i=1:0.1:long

thra =thse*pi/180;
th1ra =th1*pi/180;
th2ra=th2*pi/180;

ph=asin((bi/ma)*sin(thra));
x=bi*cos(thra)+ma*cos(ph)-(bi+ma);
ph1=(bi*th1ra/ma)*(cos(thra)./cos(ph));
x1=-bi*sin(thra)*th1ra-ma*sin(ph).*ph1;
ph2=(-bi*sin(thra)*th1ra^2+bi*cos(thra)*th2ra+ma*sin(ph).*ph1.^2)./(ma*cos(ph));
x2=-bi*cos(thra)*th1ra^2-bi*sin(thra)*th2ra-ma*cos(ph).*ph1.^2-ma*sin(ph).*ph2;

end

subplot(411);plot(thse,x,'gx');
xlabel('ANGULO');ylabel('POSICION');grid on;
subplot(412);plot(thse,x1,'rx');
xlabel('ANGULO');ylabel('VELOCIDAD');grid on;
subplot(413);plot(thse,x2,'bx');
xlabel('ANGULO');ylabel('ACELERACION');grid on;
subplot(414);plot(thse,x,'g',thse,x1,'r',thse,x2,'b');grid on;

figure
subplot(411);plot(thse,ph,'g+');
xlabel('ANGULO');ylabel('phi');grid on;
subplot(412);plot(thse,ph1,'r+');
xlabel('ANGULO');ylabel('phi1');grid on;
subplot(413);plot(thse,ph2,'b+');
xlabel('ANGULO');ylabel('phi2');grid on;
subplot(414);plot(thse,ph,'g',thse,ph1,'r',thse,ph2,'b');grid on;

case 3
disp(' Saliendo.');

otherwise

disp(' ¡ Error !');

end

Vous aimerez peut-être aussi