Assignment #1 Name Class Roll No. Course Instructor Syed Jazib Hasan 2-B EE-1563 ENA Dr. Imtiaz Hussain Table of Contents : 1.1 Introduction : .................................................................................................................................... 3 1.1a Introduction to Second Order Circuits : ........................................................................................... 3 1.1b Response of a Parallel RLC Circuit : ............................................................................................... 3 1.1c Unit Step Function : .......................................................................................................................... 4 1.2 Problem Statement : ........................................................................................................................... 5 1.2a Solution Plan :................................................................................................................................... 5 1.3 Solution .............................................................................................................................................. 6 1.4 GNU Octave ....................................................................................................................................... 9 Plot : ....................................................................................................................................................... 10 Values : (Zoomed View) ........................................................................................................................ 10 1.5 Multisim ........................................................................................................................................... 11 1.1 Introduction : This section focuses on the fundamentals required to understand the problem statement that follows. A brief introduction on Second Order Circuits , Response of a Parallel RLC Circuit and Unit Step Function are included. 1.1a Introduction to Second Order Circuits : A second-order circuit is an electrical circuit that contains two energy storage elements, typically capacitors and/or inductors. These circuits are commonly used in electronics and electrical engineering to model a wide range of physical systems. Second-order circuits are characterized by a second-order differential equation that describes the circuit's behavior over time. In this section we are going to focus on the Parallel RLC Circuit Configuration. A parallel RLC circuit is an electrical circuit that consists of a resistor (R), an inductor (L), and a capacitor (C) that are connected in parallel to each other. In this circuit configuration, each component is connected to the same two nodes, and the voltage across each component is the same. 1.1b Response of a Parallel RLC Circuit : The response of a second order circuit is how it behaves when it receives an input signal. A parallel RLC circuit can be modelled by a second order differential equation of the form : π2 π£ 1 ππ£ 1 + + π£=0 2 ππ‘ π πΆ ππ‘ πΏπΆ This differential equation yields the response π£(π‘) of the circuit for a general time t. Now the response of the RLC circuit is mainly of three types and depend upon the comparison of the neper frequency (α) and the natural frequency (π0 ) of the circuit where : α = 1 2RC and π0 = 1 √πΏπΆ In case where α < π0 , we have a underdamped response which is of the form : π£(π‘) = π −πΌπ‘ (π΄πππ (ππ π‘) + π΅π ππ(ππ π‘)) Now if we apply an external voltage or current source to excite the system , we get a Step Response. The step response of an RLC circuit is the behavior of the circuit in response to a sudden change in input voltage, such as a step function. The response depends on the values of the resistance, inductance, and capacitance in the circuit. In such a case , the complete response of the circuit becomes : π£(π‘) = π£π‘ (π‘) + π£π π (π‘) Where : π£π‘ (π‘) is the transient response and is of the form discussed above. π£π π (π‘) is the steady-state response of the circuit. 1.1c Unit Step Function : A unit step function is a mathematical function that has a value of zero for all negative inputs, and a value of one for all non-negative inputs. It is denoted as u(t) or Θ(t), where t is the input variable. In mathematical notation : 0, u(π‘) = { 1, π₯<0 π₯>0 1.2 Problem Statement : 1.2a Solution Plan : Find the inductor current i and capacitor voltage v at time t = 0− . Find the inductor current i and capacitor voltage v at time t = 0+ . ππ£ Find ππ‘ at t = 0+ , by using KCL and finding ππ Calculate α and π0 for t > 0 and determine π£π‘ (π‘). 1.3 Solution For t = π− , the circuit is in the state shown : The circuit is in steady state. To evalualte π£(0− ) , we find the voltage drop at R2 (π£π 2 ). Since π£π 2 = π£(0− ) , π£(0− ) = 100 × 103 150 × 103 × 3 = 2π Finding π(0− ) : π(0− ) = Now for t = π+ : 5 = 10 ππ΄ 500 Since the capacitor voltage can not change abruptly , π£(0− ) = π£(0+ ) = 2π . Similarly since the inductor current can not change abruptly , π(0− ) = π(0+ ) = 10 ππ΄ To find ππ£(0+ ) ππ‘ , ππ£(0+ ) ππ = ππ‘ πΆ To find ππ , we apply KCL at the blue node : −π1 − π3 − ππ − π(0+ ) = 0 ππ = −π3 − π1 − π(0+ ) ππ = − 2 3 − − 0.01 500 150 × 103 ππ = −0.014 π΄ Hence , ππ£(0+ ) −0.014 = = −ππππ π½/π ππ‘ 10 × 10−6 To find the natural response of the Parallel RLC Circuit , we calculate α and ω0 . α = 1 = 100 ππ/π 2 × 500 × 10 × 10−6 π0 = 1 √2 × 10 × 10−6 = 223.6 πππ/π Since α < ω0 ,we have an under-damped case here , the solution to which is of the form discussed in the introductory section of this document. The general solution is : π£(π‘) = π −πΌπ‘ (π΄πππ (ππ π‘) + π΅π ππ(ππ π‘)) π Since ππ = √π0 2 − πΌ 2 , ππ = √223.62 − 1002 = 200 πππ/π Substituting this and the value of α in our general solution we have : π£(π‘) = π −100π‘ (π΄πππ (200π‘) + π΅π ππ(200π‘)) π To find the particular solution we use our initial conditions we worked out previously. Using π£(0+ ) = 2π : π −100(0) (π΄πππ (200(0)) + π΅π ππ(200(0))) = 2 A = 2 Using ππ£(0+ ) ππ‘ = 1400 π/π : ππ£(π‘) = π −100π‘ [−400π ππ(200π‘) + 200π΅πππ (200π‘)] + π −100π‘ [−200πππ (200π‘) − 100π΅π ππ(200π‘)] ππ‘ ππ£(0+ ) = 200π΅ − 200 = −1400 ππ‘ B = −6 The particular solution is : π(π) = π−ππππ (ππππ(ππππ) − ππππ(ππππ)) π½ π(π) at t= 1ms : π£(0.001) = π −100(10 −3 ) (2πππ (200 × 10−3 ) − 6π ππ(200 × 10−3 )) π―(π. πππ) = π. πππ π t at π(π) = 0 : 2πππ (200π‘) − 6π ππ(200π‘) = 0 tan(200t) = ππ = 1 3 π π πππ§−π( ) = π. ππ π¦π¬ πππ π 1.4 GNU Octave 1.4a Code t = linspace(0, 0.05, 10000000); v = exp(-100*t) .* (2*cos(200*t) - 6*sin(200*t)); plot(t, v); xlabel('Time (s)'); ylabel('Voltage (V)'); hold on xval = 1e-3; yval = 0.6950211577; plot(xval, yval, 'ro') text(xval, yval, sprintf('(%.0f ms, %.9f V)', xval*1e3, yval), 'HorizontalAlignment', 'right') xval = 1.608752772e-3; yval = 0; plot(xval, yval, 'go') text(xval, yval, sprintf('(%.9f s, %.1f V)', xval, yval), 'HorizontalAlignment', 'right') hold off 1.4b Explanation 1- A one dimensional vector t has been created using the linspace() function with start value = 0 , end value = 0.05 and spacing = 10000000 2- v = exp(-100*t) .* (2*cos(200*t) - 6*sin(200*t)) is the voltage function. 3- plot() function plots the voltage-time function. 4- hold on keyword holds the plot so that further plots are added. 5- Two points are further plotted using the plot() function and specifying the xval and yval of the points. 6- hold off keyword releases the plot so that no further plots are added. 1.4c Simulation Results Plot : Values : (Zoomed View) v(t) at t = 1 ms ππ 1.5 Multisim 1.4a Circuit Schematics 1.4a Result