Вы находитесь на странице: 1из 7

ECE 1010 ECE Problem Solving I

Differential Equations and Lumped Element Circuits


Introduction

Chapter 8 of the text discusses the numerical solution of ordinary differential equations. Differential equations and in particular linear constant coefficient differential equations (LCCDEs), are very important to electrical engineers. Electrical engineering (EE) majors take an entire semester of differential equations. First semester EE majors have had little or no exposure to differential equations. To motivate the future study of differential equations this short overview chapter will describe how LCCDEs appear in the solution of lumped element circuits problems.

The Time Domain Response of RLC Circuits


A lumped element circuit is composed of an interconnection of resistors, capacitors, and inductors

Chapter 8: Introduction

81

ECE 1010 ECE Problem Solving I

The voltagecurrent terminal relationships for these elements are shown below Resistor v R ( t ) = Ri R ( t ) 1 i R ( t ) = --- v R ( t ) R di L ( t ) v L ( t ) = L ------------dt t 1 -v ( ) d iL ( t ) = L L iR ( t ) vR ( t ) + R

Inductor

+ vL ( t ) iL ( t ) L

dv C ( t ) i C ( t ) = C --------------dt t 1 --vC ( t ) = i ( ) d C C

Capacitor

+ vC ( t ) iC ( t ) C

When an RLC electrical network is configured to have a single input and single output (SISO)

x( t) voltage (current)

RLC Network

y(t) voltage (current)

Chapter 8: The Time Domain Response of RLC Circuits

82

ECE 1010 ECE Problem Solving I

Assuming the network is composed of n reactive elements, that is the number of inductors plus the number of capacitors is n, it can be shown that the output y ( t ) and input x ( t ) are related via an nthorder LCCDE d y( t) y( t) - + an 1 d --------------------- + + a0 y ( t ) a n -------------n n1 dt dt d x(t) x(t) - + bn 1 d --------------------- + + b0 x ( t ) = b n -------------n n1 dt dt Example: An RLC lowpass filter R vi ( t ) + i(t)
n n1 n n1

(8.1)

L C vo ( t )

Using the terminal relationships defined above we can write that di ( t ) 1 v i ( t ) = Ri ( t ) + L ----------- + --C dt Note that dv o ( t ) i ( t ) = C -------------dt (8.3)

i ( ) d

(8.2)

Chapter 8: The Time Domain Response of RLC Circuits

83

ECE 1010 ECE Problem Solving I

Following substitution of (8.3)into (8.2) we obtain d vo ( t ) dv o ( t ) - + LC ----------------- + vo ( t ) v i ( t ) = RC -------------2 dt dt or LCv o'' ( t ) + RCv o' ( t ) + v o ( t ) = v i ( t ) (8.5)
2

(8.4)

To solve (8.5) numerically we can use the MATLAB function lsim(SYS,U,T) (control system toolbox, also in student edition)
LSIM(SYS,U,T) plots the time response of the LTI system SYS to the input signal described by U and T. The time vector T consists of regularly spaced time samples and U is a matrix with as many columns as inputs and whose ith row specifies the input value at time T(i). For instance, t = 0:0.01:5; u = sin(t); lsim(sys,u,t) simulates the response of SYS to u(t) = sin(t) during 5 seconds.

The input SYS is a system object that can be created to correspond to (8.5) using the MATLAB function tf(b,a) (control system toolbox, also in student edition) The vectors a and b are of the form
a = [an an-1 an-2 ... a0]; b = [bn bn-1 bn-2 ... b0];

For the RLC circuit considered here


a = [LC RC 1]; b = [1];

Chapter 8: The Time Domain Response of RLC Circuits

84

ECE 1010 ECE Problem Solving I

The waveform in vector U can be any time varying function represented in sampled form Test inputs can be generated using the MATLAB function GENSIG (control system toolbox, also in student edition)
GENSIG Periodic signal generator for time response simulations with LSIM. [U,T] = GENSIG(TYPE,TAU) generates a scalar signal U of class TYPE and period TAU. The following classes are supported: TYPE = 'sin' --sine wave TYPE = 'square' --square wave TYPE = 'pulse' --periodic pulse GENSIG returns a vector T of time samples and the vector U of signal values at these samples. All generated signals have unit amplitude. [U,T] = GENSIG(TYPE,TAU,TF,TS) further specifies the time duration TF of the signal and the spacing TS of the time samples in T.

Consider the system response for R = 1 ohm, L = 5 henries, and C = 3 farads We will apply a squarewave with a 200 second period for 500 seconds
[u,t] = gensig('square',200,500,1); R=1; L=5; C=3; lsim(tf([1],[C*L C*R 1]),u,t) % A labeled output plot is automatically generated

Chapter 8: The Time Domain Response of RLC Circuits

85

ECE 1010 ECE Problem Solving I

Linear Simulation Results


1.4

1.2

vo ( t )

R=1; L=5; C=3

0.8

Amplitude

0.6

0.4

0.2

-0.2

-0.4

50

100

150

200

250

300

350

400

450

500

Time (sec.)

By increasing the resistance the overshoot can be reduced, but the risetime is increased

Chapter 8: The Time Domain Response of RLC Circuits

86

ECE 1010 ECE Problem Solving I

Linear Simulation Results


1.2

vo ( t )
1

R=2; L=5; C=3

0.8

Amplitude

0.6

0.4

0.2

-0.2

50

100

150

200

250

300

350

400

450

500

Time (sec.)

Chapter 8: The Time Domain Response of RLC Circuits

87

Вам также может понравиться