Файл: Microcontroller based applied digital control (D. Ibrahim, 2006).pdf
ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 14.06.2025
Просмотров: 3265
Скачиваний: 1
38 SYSTEM MODELLING
The potential difference across a capacitor depends on the charge the plates hold, and is given by
vC = |
q |
(2.63) |
C . |
The relationship between the current through the capacitor and the voltage across it is given by
i = C |
dvC |
(2.64) |
||||
dt |
||||||
or |
||||||
vC = |
1 |
i dt . |
(2.65) |
|||
C |
||||||
The energy stored in a capacitor depends on the capacitance and the voltage across the capacitor and is given by
E = |
1 |
|
2 C vC2 . |
(2.66) |
Electrical circuits are modelled using Kirchhoff’s laws. There are two laws: Kirchhoff’s current law and Kirchhoff’s voltage law. To apply these laws effectively, a sign convention should be employed.
Kirchhoff’s current law The sum of the currents at a node in a circuit is zero, i.e. the total current flowing into any junction in a circuit is equal to the total current leaving the junction.
Figure 2.14 shows the sign convention that can be employed when using Kirchhoff’s current law. We can write
i1 + i2 + i3 = 0
for the circuit in Figure 2.14(a),
−(i1 + i2 + i3) = 0
for the circuit in Figure 2.14(b) and
i1 + i2 − i3 = 0
for the circuit in Figure 2.14(c).
Kirchhoff’s voltage law The sum of voltages around any loop in a circuit is zero, i.e. in a circuit containing a source of electromotive force (e.m.f.), the algebraic sum of the potential drops across each circuit element is equal to the algebraic sum of the applied e.m.f.s.
ii |
i3 |
ii |
i3 |
ii |
i3 |
|||||||||
i2 |
i2 |
i2 |
||||||||||||
(a) |
(b) |
(c) |
||||||||||||
Figure 2.14 Applying Kirchhoff’s current law
ELECTRICAL SYSTEMS |
39 |
R
vR
vL L
vC
C
Figure 2.15 Applying Kirchhoff’s voltage law
It is important to observe the sign convention when applying Kirchhoff’s voltage law. An example circuit is given in Figure 2.15. For this circuit we can write.
vR + vL + vC = 0.
Some examples of the modelling of electrical circuits are given below.
Example 2.8
Figure 2.16 shows a simple electrical circuit consisting of a resistor, an inductor and a capacitor. A voltage Va is applied to the circuit. Derive an expression for the mathematical model for this system.
Solution
Applying Kirchhoff’s voltage law, we can write
vR + vL + vC = Va |
|||||
or |
|||||
Ri + L |
di |
1 |
i dt = Va . |
(2.67) |
|
+ |
|||||
dt |
C |
||||
For the capacitor we can write
i = C dvC . dt
R
Va |
L |
|
C
Figure 2.16 Simple electrical circuit
40 SYSTEM MODELLING
Va
R |
i1 |
i2 |
i3
L C
Figure 2.17 Electrical circuit for the Example 2.9
Substituting this into (2.67), we obtain |
||||||
RC |
dvC |
+ LC |
d2vC |
+ vC = Va |
(2.68) |
|
dt |
dt 2 |
|||||
which can also be written as |
||||||
. |
||||||
LC v¨C + RC vC + vC = Va . |
(2.69) |
|||||
Example 2.9
Figure 2.17 shows an electrical circuit consisting of a capacitor, an inductor and a resistor. The inductor and the capacitor are connected in parallel. A voltage Va is applied to the circuit. Derive a mathematical model for the system.
Solution
Applying Kirchhoff’s current law, we can write
i1 = i2 + i3. |
(2.70) |
Now, the potential difference across the inductor and also across the capacitor is vC . Similarly, the potential difference across the resistor is Va − vC . Thus,
i |
i = |
Va − vC |
, |
(2.71) |
||||||||||||||
R |
||||||||||||||||||
i2 = C |
dvC |
, |
(2.72) |
|||||||||||||||
dt |
||||||||||||||||||
i3 = |
1 |
vC dt . |
(2.73) |
|||||||||||||||
L |
||||||||||||||||||
Combining (2.70)–(2.73) we obtain, |
||||||||||||||||||
Va − vC |
= |
C |
dvC |
+ |
1 |
v |
dt |
|||||||||||
L |
||||||||||||||||||
R |
dt |
C |
||||||||||||||||
or |
||||||||||||||||||
R |
dvC |
|||||||||||||||||
vC dt + RC |
+ vC = Va . |
|||||||||||||||||
L |
dt |
|||||||||||||||||
ELECTRICAL SYSTEMS |
41 |
||||||||||||||||||||
L2 |
|||||||||||||||||||||
R |
|||||||||||||||||||||
1 |
i1 1 |
i3 |
i4 |
2 i6 |
|||||||||||||||||
i2 |
|||||||||||||||||||||
i5 |
|||||||||||||||||||||
R2 |
|||||||||||||||||||||
Va |
L1 |
C |
|||||||||||||||||||
Figure 2.18 Circuit for Example 2.18
Example 2.10
Figure 2.18 shows an electrical circuit consisting of two inductors, two resistors and a capacitor. A voltage Va is applied to the circuit. Derive an expression for the mathematical model for the circuit.
Solution
The circuit consists of two nodes and two loops. We can apply Kirchhoff’s current law to the nodes. For node 1,
i1 + i2 + i3 = 0 |
|||||||||||||||||||||||||||||||||||||||||||||||
or |
|||||||||||||||||||||||||||||||||||||||||||||||
Va − v1 |
1 |
(0 |
v |
)dt |
1 |
(v |
v |
)dt |
0. |
||||||||||||||||||||||||||||||||||||||
R1 |
+ L 1 |
− |
+ L 2 |
− |
= |
||||||||||||||||||||||||||||||||||||||||||
1 |
2 |
1 |
|||||||||||||||||||||||||||||||||||||||||||||
Differentiating (2.74) with respect to time, we obtain |
|||||||||||||||||||||||||||||||||||||||||||||||
˙ |
˙ |
v1 |
v2 |
v1 |
|||||||||||||||||||||||||||||||||||||||||||
Va |
− |
V1 |
− |
+ |
− |
= 0 |
|||||||||||||||||||||||||||||||||||||||||
R1 |
R1 |
L1 |
L2 |
L 2 |
|||||||||||||||||||||||||||||||||||||||||||
or |
|||||||||||||||||||||||||||||||||||||||||||||||
˙ |
= |
˙ |
+ L |
1 |
+ |
L 2 v1 − L 2 . |
|||||||||||||||||||||||||||||||||||||||||
R1 |
R1 |
||||||||||||||||||||||||||||||||||||||||||||||
Va |
V1 |
1 |
1 |
v2 |
|||||||||||||||||||||||||||||||||||||||||||
For node 2, |
|||||||||||||||||||||||||||||||||||||||||||||||
i4 + i5 + i6 = 0 |
|||||||||||||||||||||||||||||||||||||||||||||||
or |
|||||||||||||||||||||||||||||||||||||||||||||||
1 |
(v |
1 − |
v |
)dt |
+ |
C |
d(0 − v2) |
+ |
0 − v2 |
. |
|||||||||||||||||||||||||||||||||||||
L 2 |
|||||||||||||||||||||||||||||||||||||||||||||||
2 |
dt |
R2 |
|||||||||||||||||||||||||||||||||||||||||||||
Differentiating (2.76) with respect to time, we obtain |
|||||||||||||||||||||||||||||||||||||||||||||||
v1 − v2 |
C v¨ |
v˙2 |
0 |
||||||||||||||||||||||||||||||||||||||||||||
− |
2 |
− |
R2 |
= |
|||||||||||||||||||||||||||||||||||||||||||
L 2 |
|||||||||||||||||||||||||||||||||||||||||||||||
which can be written as |
|||||||||||||||||||||||||||||||||||||||||||||||
C v¨2 + |
v˙2 |
− |
v1 |
+ |
v2 |
= 0. |
|||||||||||||||||||||||||||||||||||||||||
R2 |
L2 |
L 2 |
|||||||||||||||||||||||||||||||||||||||||||||
(2.74)
(2.75)
(2.76)
(2.77)
42 SYSTEM MODELLING
Equations (2.75) and (2.76) describe the operation of the circuit. These two equations can be represented in matrix form as
0 |
0 |
v¨1 |
1/ R1 |
0 |
v˙1 |
1/L 1 + 1/L 2 |
−1/L 2 |
v1 |
˙ |
. |
||||
R1 |
||||||||||||||
0 |
v¨2 |
v˙2 |
v2 |
Va |
||||||||||
C |
0 |
1/ R2 |
− |
1/L 2 |
1/L 2 |
0 |
||||||||
+ |
+ |
= |
||||||||||||
2.3 ELECTROMECHANICAL SYSTEMS
Electromechanical systems such as electric motors and electric pumps are used in most industrial and commercial applications. Figure 2.19 shows a simple d.c. motor circuit. The torque produced by the motor is proportional to the applied current and is given by
T = kt i, |
(2.78) |
where T is the torque produced, kt is the torque constant and i is the motor current. Assuming there is no load connected to the motor, the motor torque can be expressed as
dω |
|||||
T = I |
|||||
dt |
|||||
or |
|||||
I |
dω |
= kt i. |
(2.79) |
||
dt |
|||||
As the motor armature coil is rotating in a magnetic field there will be a back e.m.f. induced in the coil in such a way as to oppose the change producing it. This e.m.f. is proportional to the angular speed of the motor and is given by:
vb = ke ω, |
(2.80) |
where vb is the back e.m.f., ke is the back e.m.f. constant, and ω is the angular speed of the motor.
Using Kirchhoff’s voltage law, we can write the following equation for the motor circuit:
Va − vb = L |
di |
+ Ri, |
(2.81) |
||
dt |
|||||
i |
L |
R |
|||
Va |
d.c. motor |
||||
Figure 2.19 Simple d.c. motor