100% Guaranteed Results


EE2703 – Assignment 6: The Laplace Transform Solved
$ 29.99
Category:

Description

5/5 – (1 vote)

Jineeth N [EE20B051]
1 Introduction
In this assignment, we will analyze Linear Time-Invariant systems using scipy library in python. Our analysis will be mostly based on polynomial transfer functions
2 Tasks
2.1 Forced oscillatory system
2.1.1 Impulse response
The system is characterized by given differential equation
d2x
+ 2.25x = f(t)
dt2
f(t) is defined as, (1)
f(t) = cos(ωt) ∗ exp(−at)u(t)
The laplace transform of input signal is, (2)
(3)
In the above equation ’a’ represents decay value. We will consider two different values 0.5, 0.05 for a and analyze the impulse response
# The python code snippet for Q.1
X1 = sp.lti([1, 0.5], polymul([1, 1, 2.5], [1, 0, 2.25])) t1, x1 = sp.impulse(X1, None, linspace(0, 50, 500))
# The plot x(t) vs t for Q.1 plt.figure(0) plt.plot(t1, x1) plt.title(“Decay = 0.5”) plt.xlabel(“t”) plt.ylabel(“x(t)”) plt.grid()
# The python code snippet for Q.2
X2 = sp.lti([1, 0.05], polymul([1, 0.1, 2.2525], [1, 0, 2.25])) t2, x2 = sp.impulse(X2, None, linspace(0, 50, 500))
# The plot of x(t) vs t for Q.2
plt.figure(1) plt.plot(t2, x2) plt.title(“Decay = 0.05”) plt.xlabel(“t”) plt.ylabel(“x(t)”) plt.grid(True)

Figure 1: Output for different frequencies

Figure 2: Output for different frequencies
2.1.2 Responses for various frequencies
Now we will vary the frequency of the input signal from 1.4 to 1.6 and analyze the output response of the system using scipy.lsim function
H = sp.lti([1], [1, 0, 2.25]) l = 1.4 r = 1.6 for w in arange(l, r, 0.05): t = linspace(0, 80, 500) f = np.cos(w * t) * np.exp(-0.05 * t) t, x, svec = sp.lsim(H, f, t)
# The plt.plot of x(t) for various frequencies vs time.
plt.figure(2) plt.plot(t, x, label=”w = ” + str(w)) plt.title(“x(t) for various frequencies”) plt.xlabel(“t”) plt.ylabel(“x(t)”) plt.legend() plt.grid(True)

Figure 3: Output for different frequencies
2.2 Coupled spring problem
In this problem we have two differential equations and two variables to solve for. The equations are
d2x
+ (x − y) = 0 (4)
dt2 d2y
+ 2(y − x) = 0 (5) dt2
With initial condition as x(0) = 1 On solving both equations we get,
(6)
(7)
t4 = linspace(0, 20, 500)
X4, Y4 = sp.lti([1, 0, 2], [1, 0, 3, 0]), sp.lti([2], [1, 0, 3, 0]) t4, x4 = sp.impulse(X4, None, t4) t4, y4 = sp.impulse(Y4, None, t4)
# The plot of x(t) and y(t) vs t for Q.4
plt.figure(3) plt.plot(t4, x4, label=”x(t)”) plt.plot(t4, y4, label=”y(t)”) plt.title(“x(t) and y(t)”) plt.xlabel(“t”) plt.ylabel(“functions”) plt.legend() plt.grid(True)

Figure 4: Solutions of coupled spring equations
2.3 Two port RLC Circuit
2.3.1 Bode plot of Steady State Transfer function
We now consider the case of an RLC Filter with the transfer function as shown.
(8)
2.3.2 Output voltage for given input signal
The input is of the form
x(t) = cos(103t) − cos(106t) (9)
# The python code snippet for Q.6
t6 = arange(0, 25e-3, 1e-7) vi = cos(1e3 * t6) – cos(1e6 * t6) t6, vo, svec = sp.lsim(H5, vi, t6)
# The plot of Vo(t) vs t for large time interval. plt.figure(6) plt.plot(t6, vo) plt.title(“The Output Voltage for large time interval”) plt.xlabel(“t”) plt.ylabel(“V_o(t)”) plt.grid(True)
# The plot of Vo(t) vs t for small time interval. plt.figure(7) plt.plot(t6[0:350], vo[0:350]) plt.title(“The Output Voltage for small time interval”) plt.xlabel(“t”) plt.ylabel(“V_o(t)”) plt.grid(True)

Figure 5: Bode tranfer of transfer function in RLC circuit

Figure 6: Bode tranfer of transfer function in RLC circuit
3 Conclusion
The ripple in the signal in small time interval plot is because of the high frequency component. But the ripples are not visible in large time interval because the presence of low frequency component of which amplitude remained almost unchanged and dominated high frequency signal.

Figure 7: Output voltage for t<20msec

Figure 8: Output voltage for t<10µsec

Reviews

There are no reviews yet.

Be the first to review “EE2703 – Assignment 6: The Laplace Transform Solved”

Your email address will not be published. Required fields are marked *

Related products