tarea_14_practica_1

8
8/17/2019 tarea_14_practica_1 http://slidepdf.com/reader/full/tarea14practica1 1/8 %Analisis del 4R %Aplicacion de ley de Grashof %Dimensiones de los eslabones a1=35; a2=10; a3=30; a4=20; %Se opera la función para el análisis del sistema grashofd(a1, a2, a3, a4) El mecanismo es del tipo GRASHOF La barra de entrada es una MANIVELA %Determinado que el mecanismo es del tipo Grashof, se opera con la funcion para determinar los puntos muertos CB=angbal(a1, a2, a3, a4); PRIMER PUNTO MUERTO (grados): manivela: 29.9947 balancín: 91.0232 SEGUNDO PUNTO MUERTO (grados): manivela: 208.9550 balancín: 151.0450 Ángulo de oscilación del balancín: 60.0218 Relación de tiempo: 1.0116 %Los datos estan dentro de la variable CB disp(CB)  0.5235 1.5887 0  3.6470 2.6362 1.0476 %Convirtiendo valores de radianes a grados CB2=CB*180/pi CB2 =  29.9947 91.0232 0  208.9550 151.0450 60.0218 %Se calculan los parametros (k) de las ecuaciones de Freudestein k=coefk(a1, a2, a3, a4); disp(k)  3.5000 1.7500 2.0625 1.1667 3.0417 %se calculan los valores iniciales de los angulos del acoplador y balancin Te3=TETA3INI(a1,a2,a3,a4); { Cannot find an exact (case-sensitive) match for 'TETA3INI.m' The closest match is C:\Users\Kevin\Documents\MATLAB\TETA3INI.M To change the file extension, cd to the file's folder, type:  movefile TETA3INI.M TETA3INI.m_bad; movefile TETA3INI.m_bad  TETA3INI.m and then cd back. }

Upload: kronoz-kroz

Post on 06-Jul-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: tarea_14_practica_1

8/17/2019 tarea_14_practica_1

http://slidepdf.com/reader/full/tarea14practica1 1/8

%Analisis del 4R%Aplicacion de ley de Grashof%Dimensiones de los eslabonesa1=35; a2=10; a3=30; a4=20;%Se opera la función para el análisis del sistemagrashofd(a1, a2, a3, a4)El mecanismo es del tipo GRASHOFLa barra de entrada es una MANIVELA%Determinado que el mecanismo es del tipo Grashof, se opera con la funcion paradeterminar los puntos muertosCB=angbal(a1, a2, a3, a4);PRIMER PUNTO MUERTO (grados):manivela:

29.9947

balancín:91.0232

SEGUNDO PUNTO MUERTO (grados):manivela:208.9550

balancín:151.0450

Ángulo de oscilación del balancín:60.0218

Relación de tiempo:1.0116

%Los datos estan dentro de la variable CBdisp(CB)  0.5235 1.5887 0  3.6470 2.6362 1.0476

%Convirtiendo valores de radianes a grados

CB2=CB*180/pi

CB2 =

  29.9947 91.0232 0  208.9550 151.0450 60.0218

%Se calculan los parametros (k) de las ecuaciones de Freudesteink=coefk(a1, a2, a3, a4);disp(k)  3.5000 1.7500 2.0625 1.1667 3.0417

%se calculan los valores iniciales de los angulos del acoplador y balancin

Te3=TETA3INI(a1,a2,a3,a4);{Cannot find an exact (case-sensitive) match for 'TETA3INI.m'

The closest match is C:\Users\Kevin\Documents\MATLAB\TETA3INI.M

To change the file extension, cd to the file's folder, type:  movefile TETA3INI.M TETA3INI.m_bad; movefile TETA3INI.m_bad  TETA3INI.m and then cd back.

}

Page 2: tarea_14_practica_1

8/17/2019 tarea_14_practica_1

http://slidepdf.com/reader/full/tarea14practica1 2/8

%se calculan los valores iniciales de los angulos del acoplador y balancinTe3=TETA3INI(a1,a2,a3,a4);{Cannot find an exact (case-sensitive) match for 'TETA3INI.m'

The closest match is C:\Users\Kevin\Documents\MATLAB\TETA3INI.M

To change the file extension, cd to the file's folder, type:  movefile TETA3INI.M TETA3INI.m_bad; movefile TETA3INI.m_bad  TETA3INI.m and then cd back.

}Te3=teta3ini(a1,a2,a3,a4);{Cannot find an exact (case-sensitive) match for 'teta3ini.m'

The closest match is C:\Users\Kevin\Documents\MATLAB\TETA3INI.M

To change the file extension, cd to the file's folder, type:  movefile TETA3INI.M TETA3INI.m_bad; movefile TETA3INI.m_bad  TETA3INI.m and then cd back.

}Te3=teta3ini(a1,a2,a3,a4);{Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI inC:\Users\Kevin\Documents\MATLAB\TETA3INI.m

}Te3=TETA3INI(a1,a2,a3,a4);Te4=TETA4INI(a1,a2,a3,a4);%Se realiza el analisis del balancin y se eligen 16 fases para el analisisN=16;Sal=balancin(k,Te4,N);disp(Sal);  0 97.1808  22.5000 91.3329  45.0000 92.4337

  67.5000 98.8564  90.0000 108.5689  112.5000 119.8176  135.0000 131.1305  157.5000 141.0106  180.0000 147.9108  202.5000 150.8986  225.0000 150.2069  247.5000 146.4672  270.0000 140.2018  292.5000 131.4993  315.0000 120.4009  337.5000 107.8804

  360.0000 96.9215

%la primera columna representa la posicion de la barra de entrada (manivela)%Se analiza la barra acopladoraAco=acopla(k,Te3,N);disp(Aco)  0 41.4096  22.5000 33.2125  45.0000 25.9914  67.5000 20.8254

Page 3: tarea_14_practica_1

8/17/2019 tarea_14_practica_1

http://slidepdf.com/reader/full/tarea14practica1 3/8

  90.0000 17.5162  112.5000 15.7399  135.0000 15.4541  157.5000 16.9712  180.0000 20.7456  202.5000 26.8859  225.0000 34.5794  247.5000 42.4881  270.0000 49.2740  292.5000 53.5509  315.0000 53.9059  337.5000 49.6785  360.0000 41.9438

%La siguiente funcion realiza el analisis de la barra acopladora y balancinAng=desplaz2(a1,a2,a3,a4,N);{Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI inC:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('desplaz2', 'C:\Users\Kevin\Documents\MATLAB\desplaz2.m', 12)" style="font-weight:bold">desplaz2</a> (<a hre

f="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\desplaz2.m',12,0)">line 12</a>)t3i=teta3ini(a1,a2,a3,a4);}Ang=desplaz2(a1,a2,a3,a4,N);{Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('desplaz2', 'C:\Users\Kevin\Documents\MATLAB\desplaz2.m', 12)" style="font-weight:bold">desplaz2</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\desplaz2.m',12,0)">line 1

2</a>)t3i=teta3ini(a1,a2,a3,a4);}Ang=desplaz2(a1,a2,a3,a4,N);{Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('desplaz2', 'C:\Users\Kevin\Documents\MATLAB\desplaz2.m', 12)" style="font-weight:bold">desplaz2</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\desplaz2.m',12,0)">line 12</a>)

t3i=teta3ini(a1,a2,a3,a4);}Ang=desplaz2(a1,a2,a3,a4,N);{Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('desplaz2', 'C:\Users\Kevin\Documents\MATLAB\desplaz2.m', 12)" style="font-weight:bold">desplaz2</a> (<a hre

Page 4: tarea_14_practica_1

8/17/2019 tarea_14_practica_1

http://slidepdf.com/reader/full/tarea14practica1 4/8

f="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\desplaz2.m',12,0)">line 12</a>)t3i=teta3ini(a1,a2,a3,a4);}Ang=desplaz2(a1,a2,a3,a4,N);{Cannot find an exact (case-sensitive) match for 'teta4ini'

The closest match is: TETA4INI in C:\Users\Kevin\Documents\MATLAB\TETA4INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('desplaz2', 'C:\Users\Kevin\Documents\MATLAB\desplaz2.m', 13)" style="font-weight:bold">desplaz2</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\desplaz2.m',13,0)">line 13</a>)t4i=teta4ini(a1,a2,a3,a4);}Ang=desplaz2(a1,a2,a3,a4,N);Los ángulos del acoplador y el balancín son:  Teta 2 Teta 3 Teta 4  0 41.4096 97.1808  22.5000 33.2125 91.3329  45.0000 25.9914 92.4337  67.5000 20.8254 98.8564  90.0000 17.5162 108.5689

  112.5000 15.7399 119.8176  135.0000 15.4541 131.1305  157.5000 16.9712 141.0106  180.0000 20.7456 147.9108  202.5000 26.8859 150.8986  225.0000 34.5794 150.2069  247.5000 42.4881 146.4672  270.0000 49.2740 140.2018  292.5000 53.5509 131.4993  315.0000 53.9059 120.4009  337.5000 49.6785 107.8804  360.0000 41.4096 97.1808

%Se realizan las graficas de desplazamientografdes(Ang)%Se obtiene la curva de la barra acopladoraa5=20;Esl5=[a1,a2,a3,a4,a5];alfa=35;n=12;

%Se opera con la funcioncurvaco(Esl5,alfa,n){Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('curvaco', 'C:\Users\Kevin\Documents\MATLAB\curvaco.m', 22)" style="font-weight:bold">curvaco</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\curvaco.m',22,0)">line 22</a>)teta3=teta3ini(a1,a2,a3,a4);}a5=20;Esl5=[a1,a2,a3,a4,a5];

Page 5: tarea_14_practica_1

8/17/2019 tarea_14_practica_1

http://slidepdf.com/reader/full/tarea14practica1 5/8

alfa=35;n=12;%Se opera con la funcioncurvaco(Esl5,alfa,n){Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('curvaco', 'C:\Users\Kevin\Documents\MATLAB\curvaco.m', 22)" style="font-weight:bold">curvaco</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\curvaco.m',22,0)">line 22</a>)teta3=teta3ini(a1,a2,a3,a4);}curvaco(Esl5,alfa,n){Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('curvaco', 'C:\Users\Kevin\Documents\MATLAB\curvaco.m', 22)" style="font-weight:bold">curvaco</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\curvaco.m',22,0)">line 22</a

>)teta3=teta3ini(a1,a2,a3,a4);}curvaco(Esl5,alfa,n){Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('curvaco', 'C:\Users\Kevin\Documents\MATLAB\curvaco.m', 22)" style="font-weight:bold">curvaco</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\curvaco.m',22,0)">line 22</a>)

teta3=teta3ini(a1,a2,a3,a4);}curvaco(Esl5,alfa,n){Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('curvaco', 'C:\Users\Kevin\Documents\MATLAB\curvaco.m', 22)" style="font-weight:bold">curvaco</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\curvaco.m',22,0)">line 22</a>)teta3=teta3ini(a1,a2,a3,a4);

}curvaco(Esl5,alfa,n){Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('curvaco', 'C:\Users\Kevin\Documents\MATLAB\curvaco.m', 22)" style="font-weight:bold">curvaco</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\curvaco.m',22,0)">line 22</a

Page 6: tarea_14_practica_1

8/17/2019 tarea_14_practica_1

http://slidepdf.com/reader/full/tarea14practica1 6/8

>)teta3=teta3ini(a1,a2,a3,a4);}helpUtils.errorDocCallback('curvaco', 'C:\Users\Kevin\Documents\MATLAB\curvaco.m', 22)curvaco(Esl5,alfa,n){Cannot find an exact (case-sensitive) match for 'trazo'

The closest match is: TRAZO in C:\Users\Kevin\Documents\MATLAB\TRAZO.m

Error in <a href="matlab:helpUtils.errorDocCallback('curvaco', 'C:\Users\Kevin\Documents\MATLAB\curvaco.m', 23)" style="font-weight:bold">curvaco</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\curvaco.m',23,0)">line 23</a>)co=trazo(k,teta3,a2,a5,alfa,n);}curvaco(Esl5,alfa,n)%Aumentando el numero n para mejor definicion de curvan=50;curvaco(Esl5,alfa,n)

%Interponiendo curvas con diferentes intervalos nn=8;

curvaco1m(Esl5,alfa,n), hold on{Cannot find an exact (case-sensitive) match for 'trazo'

The closest match is: TRAZO in C:\Users\Kevin\Documents\MATLAB\TRAZO.m

Error in <a href="matlab:helpUtils.errorDocCallback('curvaco1m', 'C:\Users\Kevin\Documents\MATLAB\curvaco1m.m', 23)" style="font-weight:bold">curvaco1m</a> (<ahref="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\curvaco1m.m',23,0)">line 23</a>)co=trazo(k,teta3,a2,a5,alfa,n);}

curvaco(Esl5,alfa,n)%Se calculan velocidades retomando la posicion del mecanismo y con una w2=10rad/segVel=velocidad(a1,a2,a3,a4,10,16);{Undefined function 'velocidad' for input arguments of type 'double'.}Vel=velocidad(a1,a2,a3,a4,10,16);{Undefined function 'velocidad' for input arguments of type 'double'.}Vel=velocida(a1,a2,a3,a4,10,16);{Cannot find an exact (case-sensitive) match for 'velocida'

The closest match is: VELOCIDA in C:\Users\Kevin\Documents\MATLAB\VELOCIDA.m

}Vel=VELOCIDA(a1,a2,a3,a4,10,16);{Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('VELOCIDA', 'C:\Users\Kevin\Documents\MATLAB\VELOCIDA.m', 12)" style="font-weight:bold">VELOCIDA</a> (<a hre

Page 7: tarea_14_practica_1

8/17/2019 tarea_14_practica_1

http://slidepdf.com/reader/full/tarea14practica1 7/8

f="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\VELOCIDA.m',12,0)">line 12</a>)t3i=teta3ini(a1,a2,a3,a4);}Vel=VELOCIDA(a1,a2,a3,a4,10,16);{Cannot find an exact (case-sensitive) match for 'omega3'

The closest match is: OMEGA3 in C:\Users\Kevin\Documents\MATLAB\OMEGA3.m

Error in <a href="matlab:helpUtils.errorDocCallback('VELOCIDA', 'C:\Users\Kevin\Documents\MATLAB\VELOCIDA.m', 23)" style="font-weight:bold">VELOCIDA</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\VELOCIDA.m',23,0)">line 23</a>)ome3=omega3(a2,a3,desp,w2);}

Vel=VELOCIDA(a1,a2,a3,a4,10,16);Los valores para las barras son:  teta2 teta3 teta4 omega3 omega4  0 41.4096 97.1808 -4.0000 -4.0000  22.5000 33.2125 91.3329 -3.6606 -1.0945  45.0000 25.9914 92.4337 -2.6782 1.7766  67.5000 20.8254 98.8564 -1.7731 3.7182

  90.0000 17.5162 108.5689 -1.0617 4.7690  112.5000 15.7399 119.8176 -0.4377 5.1190  135.0000 15.4541 131.1305 0.2496 4.8264  157.5000 16.9712 141.0106 1.1418 3.8357  180.0000 20.7456 147.9108 2.2221 2.2225  202.5000 26.8859 150.8986 3.1515 0.4613  225.0000 34.5794 150.2069 3.5676 -1.0030  247.5000 42.4881 146.4672 3.3716 -2.1786  270.0000 49.2740 140.2018 2.5613 -3.2626  292.5000 53.5509 131.4993 1.1096 -4.3801  315.0000 53.9059 120.4009 -0.9162 -5.3867  337.5000 49.6785 107.8804 -2.9876 -5.6007  360.0000 41.9438 96.9215 -4.0000 -4.0000

%Se realiza la grafica de velocidadesGRAFBALV(Vel)%Se realiza la grafica para el acoplador (w3)GRAFACOV(Vel)%Se realiza el analisis de aceleracion para el 4RAce=ACELERA(a1,a2,a3,a4,10,16);{Cannot find an exact (case-sensitive) match for 'ACELERA.m'

The closest match is C:\Users\Kevin\Documents\MATLAB\ACELERA.M

To change the file extension, cd to the file's folder, type:  movefile ACELERA.M ACELERA.m_bad; movefile ACELERA.m_bad ACELERA.m and then c

d back.

}Ace=ACELERA(a1,a2,a3,a4,10,16);{Cannot find an exact (case-sensitive) match for 'ACELERA.m'

The closest match is C:\Users\Kevin\Documents\MATLAB\ACELERA.M

To change the file extension, cd to the file's folder, type:  movefile ACELERA.M ACELERA.m_bad; movefile ACELERA.m_bad ACELERA.m and then c

Page 8: tarea_14_practica_1

8/17/2019 tarea_14_practica_1

http://slidepdf.com/reader/full/tarea14practica1 8/8

d back.

}Ace=ACELERA(a1,a2,a3,a4,10,16);{Cannot find an exact (case-sensitive) match for 'teta3ini'

The closest match is: TETA3INI in C:\Users\Kevin\Documents\MATLAB\TETA3INI.m

Error in <a href="matlab:helpUtils.errorDocCallback('ACELERA', 'C:\Users\Kevin\Documents\MATLAB\ACELERA.m', 12)" style="font-weight:bold">ACELERA</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\ACELERA.m',12,0)">line 12</a>)t3i=teta3ini(a1,a2,a3,a4);}Ace=ACELERA(a1,a2,a3,a4,10,16);{Cannot find an exact (case-sensitive) match for 'alfa3a'

The closest match is: ALFA3A in C:\Users\Kevin\Documents\MATLAB\ALFA3A.m

Error in <a href="matlab:helpUtils.errorDocCallback('ACELERA', 'C:\Users\Kevin\Documents\MATLAB\ACELERA.m', 28)" style="font-weight:bold">ACELERA</a> (<a href="matlab: opentoline('C:\Users\Kevin\Documents\MATLAB\ACELERA.m',28,0)">line 28</a

>)alf3=alfa3a(a2,a3,a4,vel,w2);}Ace=ACELERA(a1,a2,a3,a4,10,16);Los valores para las barras son:  teta2 teta3 teta4 omega3 omega4 alfa3 alfa4  0 41.4096 97.1808 -4.0000 -4.0000 -7.0553 63.4980  22.5000 33.2125 91.3329 -3.6606 -1.0945 21.5681 80.7811  45.0000 25.9914 92.4337 -2.6782 1.7766 25.4300 61.9326  67.5000 20.8254 98.8564 -1.7731 3.7182 20.3426 36.9593  90.0000 17.5162 108.5689 -1.0617 4.7690 16.4181 17.1602  112.5000 15.7399 119.8176 -0.4377 5.1190 16.0273 0.7995  135.0000 15.4541 131.1305 0.2496 4.8264 19.6404 -16.0550

  157.5000 16.9712 141.0106 1.1418 3.8357 25.8544 -34.2800  180.0000 20.7456 147.9108 2.2221 2.2225 27.5629 -45.6363  202.5000 26.8859 150.8986 3.1515 0.4613 18.1039 -42.0263  225.0000 34.5794 150.2069 3.5676 -1.0030 2.8481 -32.8837  247.5000 42.4881 146.4672 3.3716 -2.1786 -12.6642 -27.9407  270.0000 49.2740 140.2018 2.5613 -3.2626 -28.5427 -27.8824  292.5000 53.5509 131.4993 1.1096 -4.3801 -45.0432 -28.5786  315.0000 53.9059 120.4009 -0.9162 -5.3867 -55.9052 -19.6875  337.5000 49.6785 107.8804 -2.9876 -5.6007 -44.4798 14.3108  360.0000 41.4096 97.1808 -4.0000 -4.0000 -7.0553 63.4980

%Se realizan las graficas para el analisis completoGRAFBALA(Ace)

diary off