Está en la página 1de 14

clear

clc
r=1.77;
l=6.1950;

landa=r/l
rpm=800
w=(rpm*2*pi)/60

t2=0:0.0001*pi/180:720*pi/180;%
aa=l-((r^2)/(4*l))
x=aa+r*(cos(t2)+(r/(4*l))*cos(2*t2));
xx=r*(1-cos(t2))+l*(1-sqrt(1-landa.^2*(sin(t2)).^2));
figure(1)
plot(t2*180/pi,x)
grid
title('DESPLAZAMIENTO DEL PISTON')
xlabel('Theta2')
ylabel('X')
legend('LANDA 1.77/6.1950')
%v=-r*w*(sin(t2)+(r)/(2*l)*sin(2*t2));%Norton
v=w*r*sin(t2)*(1+(landa*cos(t2))/(sqrt(1-landa.^2*sin(t2).^2)));
B=3.4;
Ap=(pi/4)*B^2;
Pg=[0.1050
0.0428
0.0430
0.0431
0.0432
0.0433
0.0436
0.0441
0.0447
0.0456
0.0468
0.0483
0.0501
0.0522
0.0547
0.0575
0.0606
0.0641
0.0679
0.0719
0.0761
0.0805
0.0848
0.0890
0.0931
0.0968
0.1000
0.1028
0.1051
0.1068
0.1081
0.1090
0.1096
0.1101
0.1105
0.1107
0.1110
0.1112
0.1114
0.1115
0.1117
0.1118
0.1120
0.1121
0.1122
0.1123
0.1124
0.1125
0.1126
0.1127
0.1128
0.1128
0.1129
0.1130
0.1130
0.1131
0.1131
0.1132
0.1132
0.1133
0.1133
0.1134
0.1134
0.1135
0.1135
0.1135
0.1136
0.1136
0.1136
0.1137
0.1137
0.1137
0.1137
0.1138
0.1138
0.1138
0.1138
0.1138
0.1139
0.1139
0.1139
0.1139
0.1139
0.1139
0.1139
0.1140
0.1140
0.1140
0.1140
0.1140
0.1140
0.1140
0.1140
0.1140
0.1140
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1141
0.1140
0.1140
0.1140
0.1140
0.1140
0.1140
0.1140
0.1140
0.1140
0.1139
0.1139
0.1139
0.1139
0.1139
0.1139
0.1138
0.1138
0.1138
0.1138
0.1137
0.1137
0.1137
0.1137
0.1136
0.1136
0.1136
0.1135
0.1135
0.1134
0.1134
0.1134
0.1133
0.1133
0.1132
0.1132
0.1131
0.1131
0.1130
0.1130
0.1129
0.1128
0.1128
0.1127
0.1127
0.1126
0.1126
0.1125
0.1125
0.1124
0.1124
0.1124
0.1123
0.1123
0.1123
0.1123
0.1123
0.1123
0.1124
0.1124
0.1125
0.1125
0.1126
0.1126
0.1127
0.1128
0.1130
0.1131
0.1132
0.1134
0.1136
0.1138
0.1140
0.1143
0.1145
0.1148
0.1151
0.1154
0.1157
0.1161
0.1164
0.1168
0.1172
0.1176
0.1181
0.1185
0.1190
0.1195
0.1201
0.1206
0.1212
0.1218
0.1224
0.1230
0.1237
0.1244
0.1251
0.1258
0.1266
0.1274
0.1282
0.1290
0.1299
0.1308
0.1317
0.1327
0.1337
0.1347
0.1358
0.1369
0.1381
0.1392
0.1405
0.1417
0.1430
0.1443
0.1457
0.1472
0.1486
0.1502
0.1517
0.1534
0.1550
0.1568
0.1586
0.1604
0.1623
0.1643
0.1664
0.1685
0.1707
0.1729
0.1752
0.1776
0.1801
0.1827
0.1854
0.1881
0.1910
0.1939
0.1970
0.2002
0.2034
0.2068
0.2103
0.2140
0.2178
0.2217
0.2257
0.2300
0.2343
0.2389
0.2436
0.2485
0.2535
0.2588
0.2643
0.2700
0.2759
0.2821
0.2885
0.2952
0.3022
0.3094
0.3170
0.3248
0.3331
0.3416
0.3506
0.3599
0.3697
0.3799
0.3906
0.4017
0.4134
0.4256
0.4385
0.4519
0.4659
0.4807
0.4962
0.5124
0.5295
0.5474
0.5663
0.5861
0.6070
0.6290
0.6521
0.6765
0.7023
0.7294
0.7581
0.7883
0.8202
0.8540
0.8897
0.9275
0.9674
1.0097
1.0545
1.1019
1.1521
1.2053
1.2617
1.3215
1.3848
1.4519
1.5230
1.5983
1.6781
1.7624
1.8517
1.9459
2.0455
2.1503
2.2607
2.3767
2.4983
2.6255
2.7581
2.8960
3.0387
3.1857
3.3366
3.4904
3.6461
3.8027
3.9586
4.1123
4.2621
4.4059
4.6253
5.0457
5.4299
5.7292
6.0019
6.2727
6.5399
6.7972
7.0382
7.2525
7.4395
7.5950
7.7163
7.8016
7.8501
7.8622
7.8391
7.7827
7.6955
7.5807
7.4413
7.2808
7.1026
6.9100
6.7062
6.4940
6.2761
6.0549
5.8326
5.6109
5.3913
5.1753
4.9637
4.7575
4.5574
4.3637
4.1770
3.9973
3.8249
3.6597
3.5018
3.3510
3.2072
3.0702
2.9398
2.8159
2.6981
2.5862
2.4799
2.3791
2.2834
2.1926
2.1064
2.0247
1.9472
1.8736
1.8037
1.7374
1.6745
1.6147
1.5579
1.5039
1.4526
1.4038
1.3573
1.3131
1.2711
1.2310
1.1928
1.1564
1.1217
1.0886
1.0570
1.0268
0.9979
0.9704
0.9440
0.9188
0.8947
0.8716
0.8495
0.8283
0.8080
0.7885
0.7698
0.7519
0.7347
0.7182
0.7023
0.6870
0.6724
0.6583
0.6447
0.6317
0.6191
0.6070
0.5954
0.5841
0.5733
0.5629
0.5528
0.5432
0.5338
0.5248
0.5161
0.5077
0.4995
0.4917
0.4841
0.4768
0.4697
0.4629
0.4563
0.4499
0.4437
0.4378
0.4320
0.4264
0.4210
0.4157
0.4107
0.4057
0.4010
0.3964
0.3919
0.3876
0.3834
0.3794
0.3755
0.3717
0.3680
0.3644
0.3610
0.3577
0.3544
0.3513
0.3483
0.3453
0.3425
0.3397
0.3370
0.3345
0.3320
0.3295
0.3272
0.3249
0.3227
0.3206
0.3186
0.3166
0.3147
0.3128
0.3110
0.3093
0.3076
0.3060
0.3045
0.3030
0.3015
0.3002
0.2988
0.2976
0.2963
0.2952
0.2940
0.2930
0.2919
0.2909
0.2900
0.2891
0.2883
0.2875
0.2867
0.2860
0.2853
0.2847
0.2841
0.2835
0.2830
0.2825
0.2821
0.2817
0.2814
0.2810
0.2808
0.2805
0.2803
0.2802
0.2800
0.2799
0.2798
0.2796
0.2795
0.2794
0.2793
0.2791
0.2789
0.2787
0.2784
0.2780
0.2775
0.2770
0.2764
0.2757
0.2749
0.2739
0.2728
0.2716
0.2703
0.2688
0.2672
0.2654
0.2635
0.2614
0.2591
0.2567
0.2541
0.2513
0.2484
0.2453
0.2420
0.2386
0.2350
0.2313
0.2274
0.2234
0.2192
0.2149
0.2105
0.2060
0.2013
0.1966
0.1918
0.1869
0.1820
0.1770
0.1720
0.1670
0.1620
0.1570
0.1521
0.1472
0.1425
0.1379
0.1334
0.1291
0.1251
0.1213
0.1177
0.1144
0.1115
0.1089
0.1067
0.1049
0.1034
0.1023
0.1016
0.1012
0.1010
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1009
0.1010
0.1010
0.1010
0.1010
0.1010
0.1010
0.1010
0.1010
0.1011
0.1011
0.1011
0.1011
0.1011
0.1011
0.1012
0.1012
0.1012
0.1012
0.1013
0.1013
0.1013
0.1013
0.1014
0.1014
0.1014
0.1015
0.1015
0.1016
0.1016
0.1016
0.1017
0.1017
0.1018
0.1018
0.1019
0.1020
0.1020
0.1021
0.1022
0.1022
0.1023
0.1024
0.1025
0.1026
0.1027
0.1028
0.1029
0.1030
0.1032
0.1033
0.1035
0.1037
0.1038
0.1040
0.1042
0.1045
0.1047
0.1050
0.1053
0.1056
0.1059
0.1063
0.1067
0.1071
0.1076
0.1082
0.1087
0.1094
0.1101
0.1109
0.1117
0.1127
0.1137
0.1148
0.1160
0.1174
0.1188
0.1204
0.1221
0.1239
0.1259
0.1279
0.1299
0.1320
0.1341
0.1362
0.1381
0.1398
0.1412
0.1422
0.1427
0.1427]*10^2;%presión del gas

Fg=Pg*Ap;
t22=(0:1:720)'*pi/180;
Tg=Fg.*((r/l).*sin(t22).*(1+(r.^2)/(2.*l.^2).*sin(t22).^2)).*(l-
(r.^2)/(4.*l)+r.*(cos(t22)+r./(4.*l).*cos(2.*t22)));
Tg1=Fg.*r.*sin(t22).*(1+(r/l).*cos(t22));
figure(2)
plot(t2*180/pi,v,'r')
grid
title('VELOCIDAD DEL PISTON')
xlabel('Theta2')
ylabel('V')
legend('LANDA 0.2857 ')
a=-r*w^2*(cos(t2)+r/l*cos(2*t2));
figure(3)
plot(t2*180/pi,a)
grid
title('ACELERACIÓN DEL PISTON')
xlabel('Theta2')
ylabel('A')
legend('LANDA 0.2857')
figure(4)
plot(t22*180/pi,Tg,t22*180/pi,Tg1,'Linewidth',2)
grid
title('Torque del Gas')

figure(5)
plot(t22*180/pi,Pg,'Linewidth',2)
grid
title('Presion del GAS VS ángulo de giro del cigueñal')

También podría gustarte