Dynamic Simulation of Switched Reluctance Motor Using Matlab and Fuzzy Logic

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Proceedings of the 14th International Middle East Power Systems Conference (MEPCON’10), Cairo University, Egypt, December 19-21,

2010, Paper ID 291.

Dynamic Simulation of Switched Reluctance Motor


using Matlab and Fuzzy Logic
M. Nagrial, J. Rizk and W. Aljaism
School of Engineering
University of Western Sydney,
Locked Bag 1797, Penrith South DC
NSW 1797 Australia
m.nagrial@uws.edu.au

incorporates an alternative way of thinking, which


Abstract-This paper presents simulation results for three
phase, 6/4 poles and four phase, 8/6 poles switched allows modelling complex systems using a higher level
reluctance motor (SRM). The main focus of this paper is to of abstraction, originating from our knowledge and
investigate the dynamic performance of switched experience. In 1965 Lotfi A. Zadeh published his
reluctance (SR) motors. This investigation is achieved seminal work "Fuzzy Sets” which described the
through simulation using MATLAB/SIMULINK and mathematics of fuzzy set theory, and by extension fuzzy
Fuzzy Logic Control (FLC). logic [11,12]. This theory proposed making the
Index Terms-Switched Reluctance Machines, Dynamic membership function (or the values false and true)
Simulation, Matlab , Simulink, Fuzzy Control. operate over the range of real numbers [0.0, 1.0]. New
operations for the calculus of logic were proposed, and
I. INTRODUCTION showed to be in principle at least a generalization of
classic logic. Many researchers extended the work and
The switched reluctance machine’s (SRM) principle applied to control problems [13-15]. SR motor is highly
of operation has been known for more than a century, nonlinear electromagnetic structure. Fuzzy logic control
under general name of the doubly salient variable is a powerful technique to study the simulation and
reluctance motor. However, an intensive research on control aspects. Many researchers have employed fuzzy
SRM began about thirty years ago, mainly due to the logic to study various aspects of SR motor drive
progress in power electronics and microprocessors. Its systems [16-22]. The authors have used fuzzy logic to
principal advantages are simple and robust construction, simulate 8/6 and 6/4 pole SR motors.
possibility to work at very high speeds, high mechanical
torque at low speeds, and simple power electronic drives II. MATLAB SIMULATION
[1-6].
Matlab / Simulink package is used to simulate the SR
Many electrical machine researchers are investigating motor and look up table of the torque τ (θ, I) is used to
the dynamic behaviour of switched reluctance motor represent the simulation. The torque is a function of
(SRM) by monitoring the dynamic response (torque and rotor position and current, which is extracted from the
speed), minimising the torque ripples, building different numerical data of the motor design by a finite elements
types of controllers to reduce the cost, to increase the method [23]. The look up table from Simulink library is
general performance of SRM and reliability. In the used to represent the developed torque in the 3 phase,
present study, the switched reluctance motor is 6/4 poles base SRM and 3 phase, 6/4 poles optimized
simulated to study the dynamic performance using SRM. The displacement angles are considered as a row
Matlab / Simulink environment. It is very useful and parameters (horizontal parameters), that varied between
powerful simulation tool and provides greater flexibility (0° to 45°), and the mmf is considered as column
to simulate various features of SR motors’s performance parameters (vertical parameters), which is varied
[7-10]. between (30 to 210 AT).

Fuzzy logic is a powerful problem-solving This simulation is based on equation (1), where T is
methodology with a myriad of applications in embedded the torque, Τ is the electromechanical torque, Τ is the
e l
control and information processing. Fuzzy logic load torque, and ω is the rotational velocity of the shaft,
provides a remarkably simple way to draw definite J moment of inertia. Figure 1 shows how to multiply the
conclusions from vague, ambiguous or imprecise developed torque table by moment of inertia (1/J), and
information. Fuzzy logic resembles human decision then through single and double integration, ω and θ
making with its ability to work from approximate data have been obtained.
and find precise solutions. Unlike classical logic that dω
T = Te - T = J (1)
requires a deep understanding of a system, exact 1
dt
equations, and precise numeric values, fuzzy logic

819
The output of integrator 4 is (ω) as shown in figure 4a
when the rotor moved from unaligned to aligned
positions for different mmfs. The output of integrator 3
is θ as shown in figure 4b when the rotor moved from
unaligned to aligned positions.

Figure 1: Block Diagram for 3 Phase, 6/4 Poles SRM (Base).

Since the torque is a function of rotor angle


displacement as shown in figure 2a and ampere turns a) b)
(AT) as shown in figure 2b, these two inputs are used to
feed the look up table. Figure 4: a) Speed (ω) versus Time, b) Angle θ versus Time for 3
Phase, 6/4 Poles Base SRM.

The same procedure is repeated to simulate another


design, termed as optimised design [23].

Figure 5a shows the simulation results for speed (ω)


of the optimized SRM when the rotor moved from
[0 5 10 17 23 27 30 35 40 45]
unaligned to aligned positions for different mmfs. Figure
5b shows the simulation results for angle (θ) versus time
of the 3 Phase, 6/4 Poles optimized SRM when the rotor
moved from unaligned to aligned positions for different
a) b) mmfs. It is obvious that the speed obtained from the 3
phase, 6/4 poles optimized SRM, is higher than the
Figure 2: a) Angle displacement, b) AT, Inputs of Look-up Table for 3
Phase, 6/4 Poles Base SRM. speed obtained for the 3 phase, 6/4 poles base SRM as
shown in figures 4 and 5 respectively. It can be
Figure 3 shows the two inputs (rotor displacement attributed to higher developed torque and hence higher
angle) and AT (ampere/turn) and the output is the speed in case of optimised design. Similarly figures 6
developed torque values allocated in the table. If the and 7 show the simulation of speed and angles for a 4-
rotor is in the aligned position (0°), which is shown in phase, 8/6 pole SRM designs. Figure 6 shows the results
the row parameters and the value of (AT) varies from 30 for a base design while figure 7 shows the results for an
to 210, which is shown in the column parameters, then optimised design of 8/6 pole SR motor.
the output (developed torque) is allocated in table
parameters.

Figure 3: Look-up table for 3 phase, 6/4 poles SRM.


a) b)

Figure 5: a) Speed (ω) versus Time, b) Angle θ versus Time for 3


Phase, 6/4 Poles Optimized SRM.

820
Table 1: Linguistic Data Base

E\DE NM NS ZE PS PM

NM NM NM NM NS ZE

NS NM NM NS ZE PS

ZE NM NS ZE PS PM

PS NS ZE PS PM PM
a) b) PM ZE PS PM PM PM
Figure 6: a) Speed (ω) versus Time, b) Angle θ versus Time (Base 4
Phase, 8/6 Poles SRM).

a) b)
Figure 7: a) Speed (ω) versus Time, b) Angle θ versus Time
(Optimized 4 Phase, 8/6 Poles SRM).

I. FUZZY LOGIC CONTROLLER


Figure 8 shows the basic structure of the fuzzy logic
controller (FLC). The controller uses fuzzy logic as a
process of mapping from a given input (crisp numerical
value) to an output (signal control u). This process has a
basic structure that involves a fuzzifier, an inference Figure 9: Elements of a Fuzzy Logic Controller.
engine, a knowledge base (rule data base), and a
deffuzzifier, which transforms fuzzy sets into real Table 2 shows the rule matrix for the FLC, The
numbers to provide control signals. Figure 9 shows the antecedents linguistic variables (eω, ceω) are
block diagram of the fuzzy logic controller. represented by the highlighted zones (row 1 and column
1) and the consequent linguistic variables are
represented by highlighted zones (all rows and columns
except 1s only). Both of them are represented by seven
triangular membership functions. Error-dot = d(error)/dt,
Speed error = ω - ω
ref actual

Figure 8: FLC Structure

Table 1 shows the five linguistic fuzzy sets. Let E and


DE be the red input labels corresponding to e signal and
its derivative. FLC output consists of a signal control u
named U (the green label). Let it be assumed that fuzzy
linguistic sets are already defined and the rules are as
follows:
Sample Rule: “IF (E is NS AND DE is NS) THEN U is
NM”. First step is to take E and DE and determine the
degree to which they belong to each of the appropriate
fuzzy sets via membership functions.

821
Table 2: The Rule Matrix Δω Δt
J = τ ⇒ Δω = τ
Δt J
Δt 0.0013
ceω = τ = * 1.5 = 20
J 0.01 ∗10 −2
Δt = 0.0013, J = 0.01 *10 −2 , τ = 1.5.
∆t is the interruption time, J is the moment of inertia, τ
is the developed torque in Nm and maximum absolute
value for the ∆I universe was obtained by trial and
ref
error. The initial limits for the universes after some
manual changes of the antecedents (eω, ceω) and
consequent (∆I ) are:
ref
Fuzzy logic controller generates current reference
eω = -850, 850 rad/sec;
changes (∆I ) based on speed error eω and its changes
ref ceω = -20, 20 rad/sec/sec;
ceω. eω has its minimal value when the motor speed has ∆I = -1.5, 1.5 A.
ref
its nominal value, 850 rad/sec, and is inverted to –850
Figure 11 shows the membership function for the
rad/sec, so according figure 8, the value of error:
antecedent, the second input is the change in the speed
eω = ω - ω (2)
ref actual error.
Then the speed error equals:
eω = (-850) - (850) = - 1700 rad/sec. Fis Variable Membership function plots
The maximum value, +1700, is obtained as shown in
figure 10
Membership function plots
Fis Variable

ew O/P

ew O/P

cew

cew

Input variable (cew)

Input variable (ew) Figure 11: Change of Speed Error (ceω)

Figure 12 shows the membership function for


Figure 10: Speed Error (eω) consequent linguistic variable. (∆I ) is the output of the
ref
FLC.
error-dot = d(error)/dt. (3)
The changes of speed error (ceω) and according to
equation (3) can be written in another form:
ceω = eω(k+1) - eω(k) (4)
= eω(k+1) - eω(k)
= (ωref – ω(k)) – (ωref – ω(k – 1))
= - (ω(k) – ω(k-1) = -∆ ω
Substituting equation (2) and (4) into equation (1);

T = Te - T1 = J (1)
dt

822
Fis Variable Figure 14 shows the surface viewer for FLC for
Membership function plots
switched reluctance motor. Two inputs (eω, ceω) are
represented by the x-axis, while the output is represented
by the y-axis.

ew O/P

cew

Output current

Figure 12: Member Function for Output.

Figure 13 shows (∆I ) generation by FLC, as soon as


ref
any antecedent’s linguistic variables change or both (eg.
eω or ceω or both) during the process, then the output Figure 14: Surface Viewer for 3 Phase, 6/4 Poles SRM Fuzzy Logic
(∆I ) changes accordingly. The results appear at the Controller.
ref
bottom of the third columns.
Figures 15 and 16 show the dynamic response of
SRM when there is a change in load and in speed
reference. At first, 0.1 Nm load is applied to this motor,
at 0.27s, the load is increased to 1 Nm, requiring higher
torque. At 0.61 s, the speed reference is decreased to 80
rads and in consequence the current decreases during
deceleration.
200
180
160
140
Speed (rad/sec)

120
100
80
60
40
20
0
0 0.1 0.26 0.3 0.5 0.61 0.7 0.8 1

Time (sec)
I/P I/P O/P Figure 15: Dynamic response of speed versus time for 3 Phase,
6/4 Poles SRM
Figure 13: Rules Viewer for 3 Phase, 6/4 Poles SRM Fuzzy Logic
Controller.

823
[8]. P. Chancharoensook, and M.F. Rahman, “Dynamic modeling
of a four-phase 8/6 switched reluctance motor using current
and torque look-up tables” IECON 02, IEEE 2002 28th Annual
Conference Volume 1, 5-8 Nov. 2002 Page(s): 491 - 496
[9]. G. Ramasamy, R.V. Rajandran,and N.C.Sahoo, “Modeling of
Current Reference (A)

Switched Reluctance Motor Drive System using Matlab /


Simulink for Performance Analysis of Current Controllers”
International Conference on Power Electronics and Drives
Systems, PEDS 2005.Volume 2, Nov. 2005 ,pp 892 – 897
[10]. S. Song, and W. Liu “A Novel Method for Nonlinear
Modeling and Dynamic Simulation of a Four-phase Switched
Reluctance Generator System Based on MATLAB /
SIMULINK”2nd IEEE Conference on Industrial Electronics
and Applications, 2007. ICIEA 2007. 23-25 May 2007
Page(s):1509 – 1514
[11]. L.A. Zadeh, "Fuzzy sets," Info. & Ctl., Vol. 8, 1965, pp. 338-
353.
[12]. L.A. Zadeh, "Fuzzy algorithms," Info. & Ctl., Vol. 12, 1968,
pp. 94-102.
Figure 16: Current response versus time for 3 Phase, 6/4 Poles SRM [13]. N. Sugeno, "Fuzzy Measures and Fuzzy Integrals: A Survey",
(M.M. Gupta, G.N. Sardis, and B.R. Gaines, Editors) Fuzzy
Automata and Decision Processes, New York 1977.
Time (sec) [14]. R. Yager, "On a General Class of Fuzzy Connectives", Fuzzy
VI. CONCLUSIONS Sets and Systems, 1980.
[15]. E.H. Mamdani, and S. Assilian, "An Experiment in Linguist
MATLAB-SIMULINK package is employed to study Synthesis with Fuzzy Logic Controller". International Journal
the dynamic response of SR motors while the torque is of Man-Machine Studies, vol. 7, 1975
computed from finite element analysis and used as input [16]. A. Derdiyok, N. Inanc, V. Ozbulur, and M.O. Bilgic,
for dynamic response studies. The dynamic response of “Improving performance of switched reluctance motor by
fuzzy logic controller” International Journal of Robust and
speed for an optimum design SRM is much improved Nonlinear Control, v 9, n 5, Apr, 1999, p 307-317
compared with non-optimum (base) design. Fuzzy logic [17]. S. Bolognani, and M. Zigliotto, “Fuzzy logic control of a
control (FLC) is also employed and generated current switched reluctance motor drive” IEEE Transactions on
reference variations, based on speed error and its Industry Applications, Volume 32, Issue 5, Sep/Oct 1996,
Page(s):1063 – 1068
changes. FLC has performed well for the speed control [18]. A.D. Cheok, and N. Ertugrul “Use of fuzzy logic for
of SRM, overcoming its nonlinearities. modeling, estimation, and prediction in switched reluctance
motor drives” IEEE Transactions on Industrial Electronics,
REFERENCES Vol.46, Issue 6, Dec 1999 Page(s):1207 – 1224.
[19]. N.C. Sahoo, S.K. Panda,and P.K. Dash, “Fuzzy logic based
current modulator for torque ripple minimization in switched
[1]. P.J. Lawrenson , J.M. Stephenson, P.T. Blenkinson, J. Corda
reluctance motors” Electric Machines and Power
and N.N. Fulton, “Variable-Speed Switched Reluctance
Systems, Vol. 27, n 2, Feb, 1999, pp.181-194
Motors”, IEE Proc., vol. 127, July 1980.
[20]. T. Lachman, T.R. Mohamad, and P.T. Christopher,”Dynamic
[2]. T.E.J.Miller, and M. McGilp," Non-Linear Theory of the
modelling of a 3-phase 6:4 switched reluctance motors using
Switched Reluctance Motor for Rapid Computer-Aided
fuzzy logic technique” TENCON 2004. 2004 IEEE Region 10
Design", IEE Proceedings B 137, pp.337-347, Nov 1990.
Conference Volume 3, 21-24 Nov. 2004 Page(s): 452 - 455
[3]. J. Rizk, M.Nagrial and A. Hellany, “Design optimisation of
[21]. S. Paramasivam, and R. Arumugam, “Hybrid fuzzy controller
switched reluctance motors” Australian Journal of Electrical &
for speed control of switched reluctance motor drives” Energy
Electronic Engineering, Australia, vol. 1, no. 1, pp. 33-39,
Conversion and Management, v 46, n 9-10, June, 2005, p
2004
1365-1378.
[4]. T.J.E. Miller “Switched Reluctance Motors and their Control”
[22]. C. Elmas, and M.A. Akcayol, i “PC based educational tool for
Oxford Science Publication, England, 1993.
a switched reluctance drive with fuzzy logic” International
[5]. R. Krishnan “Switched Reluctance Motor Drives: Modelling,
Journal of Electrical Engineering Education, v 40, n 3, July,
Simulation, Analysis, Design, and Applications” CRC Press,
2003, p 208-219.
USA 2001.
[23]. W. Aljaism, M. Nagrial, and J. Rizk ““Switched Reluctance
[6]. C.M. Ong “Dynamic Simulations of Electric Machinery using
Motor Optimal Performance With Variable Stator Pole
Matlab / Simulink” Prentice-Hall, Englewood Cliffs, NJ, USA,
Arc/Pole Pitch Ratio” Proc. The second International
1998.
Conference on Modeling, Simulation and Applied
[7]. F. Soares, and P.J. Costa Branco “Simulation of a 6/4 switched
Optimization (ICMSAO 2007),Abu Dhabi, UAE, March 24-
reluctance motor based on Matlab / Simulink environment”
27, 2007
IEEE Transactions on Aerospace and Electronic Systems,
Volume 37, Issue 3, Jul 2001 Page(s):989 – 1009

824

You might also like