Professional Documents
Culture Documents
APPENDIX 1
SWING EQUATION
247
relative motion called swing equation is derived for easy modeling of power
system components.
The power angle
resultant air gap mmf Fsr, both rotating at synchronous speed. The angle
between the no-load generated emf E and the resultant stator voltage Esr is
also called as power angle. If the generator armature resistance and leakage
flux are neglected, the angle between E and terminal voltage V, denoted by ,
is considered as the power angle.
Consider a synchronous generator developing an electromagnetic
torque Te and running at the synchronous speed
sm.
If Tm is the driving
mechanical torque, then under steady state operation with losses neglected,
equation (1) is obtained.
Tm=Te
(A1.1)
(A1.2)
d2 m
J 2
dt
where
Ta
Tm
Te
(A1.3)
stationary reference axis on the stator. Since the rotor speed is important, the
248
where
sm
t+
sm,
that is
(A1.4)
d m
dt
d m
dt
ms
(A1.5)
d2 m
dt 2
d2 m
dt 2
(A1.6)
d2 m
dt 2
Tm
Te
(A1.7)
Multiplying (A1.7) by
d2 m
dt 2
Tm
m, results
in
Te
(A1.8)
d2 m
dt 2
Pm
Pe
(A1.9)
249
The quantity J
1
J
2
Wk
2
m
1
M
2
(A1.10)
or
2 Wk
(A1.11)
does
2 Wk
(A1.12)
sm
d2 m
M 2
dt
Pm
Pe
(A1.13)
p
2
and
(A1.14)
250
p
2
(A1.15)
p d2 m
M 2
2
dt
Pm
Pe
(A1.16)
Since power analysis is done in per unit system, the swing equation
is usually expressed in per unit. Dividing Equation (A1.16) by the base power
SB, and substituting for M from Equation (A1.12) results in
2 2 Wk d 2
p sm S B dt 2
Pm
SB
Pe
SB
(A1.17)
Wk
SB
(A1.18)
2 2H d 2
p sm dt 2
where Pm
(pu)
and Pe
Pm ( pu )
(pu)
(A1.19)
Pe ( pu )
sm
= (2/P)
s.
251
2H d 2
2
s dt
Pm ( pu )
(A1.20)
Pe ( pu )
2H d 2
f 0 dt 2
where,
Pm
(A1.21)
Pe
is in electrical radian. If
2H d 2
180f 0 dt 2
Pm
Pe
(A1.22)
during
252
APPENDIX 2
MATLAB FUNCTIONS-AN OVERVIEW
mfedit
253
ruleedit
ruleview
Dsigmf
trapmf
trimf
zmfZ
addmf
addrule
addvar
defuzz
newfis
rmmf
rmvar
setfis
showrule
writefis
fuzblock
sffis
ga
gaoptimget -
gaoptimset -
gatool
254
population type (Population Type) specifies the data type of the input to the
fitness function. Population type can be set to any one of the following:
Double Vector ('double Vector') -- Use this option if the individuals in the
population have type double.
Bit string ('bitstring') -- Use this option if the individuals in the population are
bit strings.
Custom ('custom') -- Use this option to create a population whose data type is
neither of the preceding.
Creation function (CreationFcn) -- Specifies the function that creates the
initial population for GA
Mutation function (MutationFcn) --This option is used to specify Mutation
function
Crossover function (CrossoverFcn) -- Specifies the function that performs
the crossover
Set options = gaoptimset('CreationFcn', @myfun); -- Get values of a genetic
algorithm options structure function
Population = myfun(GenomeLength, FitnessFcn, options) The input
arguments to the function are
Genomelength Number of independent variables for the fitness function
FitnessFcn -- Fitness function
options -- Options structure
The function returns Population, the initial population for the
genetic algorithm
Genomelength -- Number of independent variables for the fitness function
255
256
PSOparams -
PSO parameters
P(1)
if 0, no display
P(2)
P(3)
P(4)
P(5)
P(6)
P(7)
P(8)
P(9)
default = 1e-25
P(10)
P(11)
P(12)
0 = Common PSO
PSOseed, default=0
= 0 for initial random positions
= 1 for initial particles as user input
= Clerc's
257
MATLAB COMMANDS
matlab\general
matlab\ops
matlab\lang
matlab\elmat
matlab\specmat
Specialized matrices.
matlab\elfun
matlab\specfun
matlab\matfun
matlab\datafun
matlab\polyfun
matlab\graphics
matlab\color
matlab\sounds
matlab\strfun
matlab\iofun
matlab\demos
SIMULINK
SIMULINK is an interactive environment for modeling, analyzing
and simulating a wide variety of dynamic systems. It supports linear and
nonlinear systems, modeled in continuous time, sampled time, or a hybrid of
the two. SIMULINK provides a graphical user interface for constructing
block diagram models using drag and drop operations. A system configured
in terms of block diagram representation from library of standard
258
2.
3.
4.
5.
6.
2.
3.
259
4.
5.
6.
7.
8.
Set the start and stop times-the start time and stop time for the
simulation can be changed by entering new values in the start
time and stop time fields. The default start time is 0.0 seconds
and the default stop time is 10.0 seconds.
260
2.
3.
The output options area of the dialog box enables the control
of the output generated by simulation.
2.
261
ACTION
Applies the current parameter values and keeps the dialog box
open, during a simulation, the parameter values are applied
immediately.
Revert
Help
Close
To stop the simulation, choose stop from the simulation menu. The
keyboard shortcut for stopping a simulation is CTRL T. We can suspend the
running simulation by choosing pause from the simulation menu, when we
select pause, the menu item changes to continue. We can proceed with a
suspended simulation by choosing continue.
BLOCK DIAGRAM CONSTRUCTION
The easy-to-use pull down menus allows us to create a SIMULINK
block diagram, or open an existing file, perform the simulation, and make any
modifications. Basically one has to specify the model of the system (state
space, discrete, transfer functions, non-linear codes etc) the input (source) to
the system, and where the output (sink) of the simulation of the system will
262
go. When start putting blocks together into a model, add the blocks to the
model window before adding the lines that connect them.
Block diagram is constructed to represent the digital simulator of
the single and two area interconnected power system. It is clear from the
block diagram that each area has its own control on its operation. There are
three main blocks, namely, speed governor, turbine and power system. An
intelligent controller is incorporated in each block for obtaining zero steadystate error for the deviations of both the system frequency and tie-line power.
The block diagrams can be simulated for different load and regulation values
during the course of simulation.