Tarea 19 Control de Vibraciones

You might also like

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

Clear[x, t, xSol1, Ec1, Ec1s, m1, c1, k1]

Ec1 = m1 x ''[t] + c1 x '[t] + k1 x[t] ⩵ P[t]

LaplaceTransform[Ec1, t, s]
Ec1s = LaplaceTransform[Ec1, t, s] /. {LaplaceTransform[x[t], t, s] → X1s,
LaplaceTransform[P[t], t, s] → Ps, x[0] → 0, x '[0] → 0}

Clear[X1s]
Sol1 = Solve[Ec1s, X1s]
X1s = X1s /. Sol1[[1]]
X1s
G1s =
Ps
1
s2 + 2 ζ ωn s + ωn2
ωe
XSol1 = G1s * /. {m1 → 1, c1 → 0.5, k1 → 1, ωe -> 10}
s2 + ωe2
xSol1 = InverseLaplaceTransform[XSol1, s, t] // Expand
Plot[xSol1, {t, 0, 25}, PlotRange → All]
ωe
r= /. {ωe → 10, ωn → 1}
ωn
c1
ζ= /. {m1 → 1, c1 → 0.5, k1 → 1, ωe -> 10}
4 m1 k1

1 1
Ampl = /. {m1 → 1, c1 → 0.5, k1 → 1, ωe -> 10}
k1
1 - r2 2 + 2 ζ r2

P1t = 1 - ⅇ-0.5 t  Sin[10 t]


Plot[P1t, {t, 0, 40}]

P1s = LaplaceTransform[P1t, t, s]

X1sSol = G1s P1s /. {m1 → 1, c1 → 0.5, k1 → 1, ωe -> 10}

x1Sol = InverseLaplaceTransform[X1sSol, s, t]
Plot[x1Sol, {t, 0, 40}, PlotRange → All(*,WorkingPrecision→20*)]

Considerando una masa añadida


Ec2 = m1 x1 ''[t] + c1 + c2 x1 '[t] + k1 + k2 x1[t] - k2 x2[t] - c2 x2 '[t] ⩵ P[t]
Ec3 = - k2 x1[t] - c2 x1 ''[t] + m2 x2 ''[t] + c2 x2 '[t] + k2 x2[t] ⩵ 0
2 Trea 19 Control de Vibraciones.nb

Clear[X1s, X2s]
SistEcS =
LaplaceTransform[{Ec2, Ec3}, t, s] /. {LaplaceTransform[x1[t], t, s] -> X1s,
LaplaceTransform[x2[t], t, s] -> X2s, LaplaceTransform[P[t], t, s] -> Ps,
x1[0] -> 0, x1 '[0] -> 0, x2[0] -> 0, x2 '[0] -> 0}

Sol2 = Solve[SistEcS, {X1s, X2s}]

X1sSol = X1s /. Sol2[[1]]


X2sSol = X2s /. Sol2[[1]]

X1sSol
G1s = // Simplify
Ps
X2sSol
G2s = // Simplify
Ps
G1s /. {c1 → 0, c2 → 0}
G2s /. {c1 → 0, c2 → 0}

MatM = {{m1, 0}, {0, m2}}


MatK = {{k1 + k2, - k2}, {- k2, k2}}

MatDin = Inverse[MatM].MatK;
MatDin // MatrixForm

Eigensystem[MatDin]

{{λ1, λ2}, {vect1, vect2}} = Eigensystem[MatDin]

ω1 = λ1
ω2 = λ2

G1s /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe → 10} /. {k2 → 1, m2 → 0.01}


G2s /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe → 10} /. {k2 → 1, m2 → 0.01}

X1sSol = G1s P1s /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe -> 10} /. {k2 → 50, m2 → 0.05}
X2sSol = G2s P1s /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe -> 10} /. {k2 → 50, m2 → 0.05}

x1Sol = InverseLaplaceTransform[X1sSol, s, t]
x2Sol = InverseLaplaceTransform[X2sSol, s, t]

Plot[x1Sol, {t, 0, 100}, WorkingPrecision → 20]


Plot[x2Sol, {t, 0, 100}, WorkingPrecision → 20]

Fac1 = Abs[G1s /. {c1 → 0, c2 → 0} /. {m1 → 1, c1 → 0.5, k1 → 1, ωe -> 10} /.


{k2 → 50, m2 → 0.5} /. s → ωe ⅈ]
Fac2 = Abs[G2s /. {c1 → 0, c2 → 0} /. {m1 → 1, c1 → 0.5, k1 → 1, ωe -> 10} /.
{k2 → 50, m2 → 0.5} /. s → ωe ⅈ]

Plot[Fac1, {ωe, 0, 20}(*,PlotRange→All*)]


Plot[Fac2, {ωe, 0, 20}]
Trea 19 Control de Vibraciones.nb 3

LogLogPlotFac1, ωe, 100 , 103 


LogLogPlotFac2, ωe, 100 , 103 

TransferFunctionModel[
G1s /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe → 10} /. {k2 → 1, m2 → 0.01}, s]
TransferFunctionModel[
G2s /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe → 10} /. {k2 → 1, m2 → 0.01}, s]

BodePlot[TransferFunctionModel[
G1s /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe → 10} /. {k2 → 1, m2 → 0.01}, s]]
BodePlot[TransferFunctionModel[
G2s /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe → 10} /. {k2 → 1, m2 → 0.01}, s]]

{{λ1, λ2}, {vect1, vect2}} = Eigensystem[


MatDin /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe -> 10} /. {k2 → 50, m2 → 0.5}]

ω1 = λ1
ω2 = λ2

Asintota1 = ParametricPlot[{ω1, y}, {y, 0, 10}, PlotStyle → {Red, Dashed}]


Asintota2 = ParametricPlot[{ω2, y}, {y, 0, 10}, PlotStyle → {Red, Dashed}]

Graf1 = Plot[Fac1, {ωe, 0.1, 20}, PlotRange → {- 0.25, 0.25}, PlotStyle → Blue]

Show[Graf1, Asintota1, Asintota2]

Graf2 = Plot[Fac2, {ωe, 0, 20}, PlotRange → {- 0.25, 0.25}, PlotStyle → Cyan]

Show[Graf2, Asintota1, Asintota2]

ListAnimateTable
k2
PlotAbsG1s /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe -> 10} /. m2 →  /. s → ωe ⅈ,
100
{ωe, 0, 20}, {k2, 0.00001, 20, 0.1}

ListAnimateTable
k2
PlotAbsG2s /. {c1 → 0, c2 → 0} /. {m1 → 1, k1 → 1, ωe -> 10} /. m2 →  /. s → ωe ⅈ,
100
{ωe, 0, 20}, {k2, 0.1, 20, 0.1}

ListAnimateTable
k2
PlotAbsG1s /. {c1 → 0.05, c2 → 0.03} /. {m1 → 1, k1 → 1, ωe -> 10} /. m2 →  /.
100
s → ωe ⅈ, {ωe, 0, 20}, {k2, 0.00001, 200}

ListAnimateTable
k2
PlotAbsG2s /. {c1 → 0.05, c2 → 0.03} /. {m1 → 1, k1 → 1, ωe -> 10} /. m2 →  /.
100
s → ωe ⅈ, {ωe, 0, 20}, {k2, 0.00001, 20}
4 Trea 19 Control de Vibraciones.nb

Plot
k2
AbsG1s /. {c1 → 0.05, c2 → 0.03} /. {m1 → 1, k1 → 1, ωe -> 10} /. m2 →  /. k2 → 3 /.
100
s → ωe ⅈ, {ωe, 0, 20}
k2
PlotAbsG2s /. {c1 → 0.05, c2 → 0.03} /. {m1 → 1, k1 → 1, ωe -> 10} /. m2 →  /.
100
k2 → 3 /. s → ωe ⅈ, {ωe, 0, 20}
ωe
(*P1s= *)
s2 +ωe2

X1sSol =
k2
G1s P1s /. {c1 → 0.05, c2 → 0.03} /. {m1 → 1, k1 → 1, ωe -> 10} /. m2 →  /. k2 → 3
100
k2
X2sSol = G2s P1s /. {c1 → 0.05, c2 → 0.03} /. {m1 → 1, k1 → 1, ωe -> 10} /. m2 →  /.
100
k2 → 3

x1Sol = InverseLaplaceTransform[X1sSol, s, t]
Plot[x1Sol, {t, 0, 50}, WorkingPrecision → 10]
x2Sol = InverseLaplaceTransform[X2sSol, s, t]
Plot[x2Sol, {t, 0, 50}, WorkingPrecision → 10]

You might also like