Professional Documents
Culture Documents
1. MATHEMATICAL MODEL
The mathematical model of RLC circuit is based on the Kirkoffs second law.
vR t Ri t
(1)
di t
dt
(2)
dvc t
dt
(3)
vL t L
i t C
The Kirckoffs second law gives the relationship between voltages in the circuit.
vR t vL t vC t u t
(4)
d 2vC
dv
LC 2 RC C vC u
dt
dt
(5)
dvc
i
dt
(6)
di
Ri vc u
dt
(7)
L
or
d vc
dt i
1
L
1
C vc 0
R i 1
(8)
If we denote x1=vC, and xi=i, as state variables and y1=vC, and y2=I, as ouput
variables, the state differential equation can be written as
d x1
dt xw
1
L
1
0
C x1
u
1
R x
w
L
(9)
y1
1 0 x1
y 0 1 x
w
2
0
0 u
(10)
or in a compact form
x&= Ax + Bu
(11)
y = Cx + Du
(12)
3. TRANSFER FUNCTION
The Laplace transformation for a function of time, f(t), is:
F s f t e st dt L f t
0
(13)
s i
and .
If we apply the Laplace transformation to equation (5) we obtain
LCVC s 2 RCVC s VC U
(14)
G s
VC s
1
2
U s LCs RCs 1
(15)
b
s as b
(16)
n2
s 2 2n s n2
(17)
G s
b
where
or
1
LC
, and
R
L
G s
Where:
n b
1
LC
2 b 2 LC
is the damping ratio;
a
Vin Au t
Where:
u t 1
t0
u t 0
t0
for
, and
for
;
A is the amplitude of input signal, and has a positive value.
(18)
Vout s
Vout
Vout
(19)
A
A
b
G s
2
s
s s as b
K1 K 2 s K3
s s 2 as b
(20)
K1 K 2 s 2 K1a K3 s K1b
(21)
s s 2 as b
sa
1
2
s s as b
(22)
Vout s A
Vout A
Vout A
Vout s A
a
2
2
a
a2
a
s b
s
2
4
(23)
a a
s
2 2
2
a
a 2
s b
2
4
a
2
2
a
a
s b
2
4
a
2
b
a 2
b
4
b
a
a
s
4
2
2
(24)
a
2
a2
4
a
t
a a2 t
Vout t A 1 e 2 cos t
e sin t
2
(25)
(26)
;
L 2H
;
C 20 F
.
Having above values we can calculate the parameters of equation (26) as
a
R 200
100 H
L
2
;
1
1
b
25000 H 1 F 1
6
LC 2 20 10
a2
1
R2
1
200 2
2
The following graph shows that using Simulink to solve differential equation gives the
same result as using transfer function or plot time response.
n b
1
25000 158.11Hz
LC
(27)
RC
100
0.316
2 LC 2 25000
(28)
a
2 b
To evaluate the time response of the RLC circuit we have to calculate some specific
parameters.
The peak time, Tp, is the time required to reach the first, or maximum, peak.
Tp
n 1
3.14
158.11 1 0.316
0.0209 s
(29)
The percent overshoot, %OS, is the amount that the waveform overshoots the steadystate, or final, value at peak time, expressed as a percentage of steady-state value.
%OS e
1 2
100 35.12%
(30)
Settling time is the time required for the transients damped oscilation to reach and stay
within 2% of steady-state value.
Ts
4
0.08s
n
6. PID CONTROLLER
7. IMPROVEMENT OF OVERSHOOT AND SETTLING TIME
(31)