Crankshaft Rod Piston System

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Crankshaft-Rod-Piston System

Developed in Wolfram Mathematica


In[814]:= teta = {};
Forq = 0, q <= 360, q ++, AppendToteta, q * Pi 180;
para cada aade al final nmero pi
n = Length[teta];
longitud
L1 = 0.9 * Sqrt[2];
raz cuadrada
L2 = 1.5;
w1 = 4;
VB = {};
W2 = {};
AB = {};
Alf2 = {};
Fore = 1, e n, e ++, tet = teta[[e]];
para cada
senalf = L1 * Sin[tet] L2;
seno
cosalf = Sqrt[1 - senalf ^ 2];
raz cuadrada
ra = L1 * {Cos[tet], Sin[tet]};
coseno seno
rb = L2 * {- cosalf, senalf};
va = w1 * {- ra[[2]], ra[[1]]};
k = {{1, - rb[[2]]}, {0, rb[[1]]}};
vbw2 = Inverse[k].va;
matriz inversa
vb = vbw2[[1]];
w2 = vbw2[[2]];
aa = - w1 ^ 2 * ra;
abalf2 = Inverse[k].aa;
matriz inversa
ab = abalf2[[1]];
alf2 = abalf2[[2]];
AppendTo[VB, vb];
aade al final
AppendTo[W2, w2];
aade al final
AppendTo[AB, ab];
aade al final
AppendTo[Alf2, alf2]
aade al final
teta = 180 * teta Pi;
nmero pi
Par1 = {teta, VB};
Par2 = {teta, W2};

Printed by Wolfram Mathematica Student Edition


2 Crankshaft-Rod-Piston System.nb

Par3 = {teta, AB};


Par4 = {teta, Alf2};
Fig1 = Transpose[Par1];
transposicin
Fig2 = Transpose[Par2];
transposicin
Fig3 = Transpose[Par3];
transposicin
Fig4 = Transpose[Par4];
transposicin
ListPlot[Fig1, Joined True, PlotLabel "Piston Velocity",
representacin de unido verd etiqueta de representacin
AxesLabel {"Crankshaft angular position (Degrees)", "Velocity (m/s)"},
etiqueta de ejes
Ticks {{0, 90, 180, 270, 360}, Automatic}, ImageSize Large]
marcas automtico tamao de i grande
ListPlot[Fig2, Joined True, PlotLabel "Rod Angular Velocity",
representacin de unido verd etiqueta de representacin
AxesLabel {"Crankshaft angular position (Degrees)", "Angular velocity (rad/s)"},
etiqueta de ejes
Ticks {{0, 90, 180, 270, 360}, Automatic}, ImageSize Large]
marcas automtico tamao de i grande
ListPlotFig3, Joined True, PlotLabel "Piston Aceleration",
representacin de unido verd etiqueta de representacin
AxesLabel "Crankshaft angular position (Degrees)", "Aceleration (m/s 2 )",
etiqueta de ejes
Ticks {{0, 90, 180, 270, 360}, Automatic}, ImageSize Large
automtico tamao de i grande
ListPlotFig4, Joined True, PlotLabel "Rod Angular Aceleration", AxesLabel
unido verd etiqueta de representacin etiqueta de ejes
"Crankshaft angular position (Degrees)", "Angular aceleration (rad/s 2 )",
Ticks {{0, 90, 180, 270, 360}, Automatic}, ImageSize Large
automtico tamao de i grande

Piston Velocity
Velocity (m/s)

Out[834]=
Crankshaft angular position (Degrees)
90 180 270 360

-5

Printed by Wolfram Mathematica Student Edition


Crankshaft-Rod-Piston System.nb 3

Rod Angular Velocity


Angular velocity (rad/s)

1
Out[835]=
Crankshaft angular position (Degrees)
90 180 270 360

-1

-2

-3

Piston Aceleration
Aceleration (m/s2 )

30

20

Out[836]=
10

Crankshaft angular position (Degrees)


90 180 270 360

-10

-20

Rod Angular Aceleration


Angular aceleration (rad/s2 )

20

10

Out[837]=

Crankshaft angular position (Degrees)


90 180 270 360

-10

-20

In[861]:= Clear["Global`*"]
borra

Printed by Wolfram Mathematica Student Edition

You might also like