qxd
11/17/2005
6:07 PM
Page 48
, 42005
MATLAB
4.
,
Simulink
SimPowerSystems.
1, 2 3.
,
. . .
kaf21@aanet.ru
. 1.
Asynchronous Machine
48
() , ,
. Ideal Switch.
, .
(Asynchronous Machine)
: , .
A, B .
, b .
Tm
. m , 21 : , , ,
, .
SimPowerSystems Machines Measurement Demux.
( ) ( ).
.
(dq-) .
(
) (. 1):
Rotor typ [ ] :
Squirrel-Cage
;
Wound .
Reference frame [ ]
:
Rotor ,
Stationary ,
Synchronous .
Nom. power, L-L volt. and frequency [Pn(VA), Un(V),
fn(Hz)] Pn (), Un () fn ().
Stator [Rs(Ohm) Lls(H)] Rs ()
Ls () .
Rotor [Rr(Ohm) Llr'(H)] Rs ()
Ls () .
Mutual inductance Lm(H) ().
Inertia, friction factor and pairs ofpoles [J(kg*m^2)
F(N*m*s) p] J(*^2), F(**) p.
Initial conditions [s th(deg)isa,isb,isc(A) phA,phB,phC
(deg)] .
, :
s ;
th (.);
isa, isb, isc ();
phA, phB, phC
(.).
Powergui (. ).
Machines Measurement Demux
:
.
www.finestreet.ru
SE#6(4).qxd
11/17/2005
6:07 PM
Page 49
, 42005
.
. 2.
:
Machine type .
:
Simplified synchronous
;
Synchronous ;
Asynchronous ;
Permanent magnet synchronous .
. .
Rotor currents [ ira irb irc ]
.
Rotor currents [ ir_q ir_d ]
q d.
Rotor f luxes [ phir_q phir_d ]
q d.
Rotor voltages [ vr_q vr_d ] q d.
Stator currents [ ia, ib, ic ] A .
Stator currents [ is_q is_d ] A q d.
Stator f luxes [ phis_q phis_d ]
q d.
Stator voltages [ vs_q vs_d ] V
q d.
Rotor speed [ wm ] rad/s .
Electromagnetic torque [Te] N.m .
Rotor angle [ thetam ] rad
.
.
1.
-
. 2.
Machines Measurement Demux
www.finestreet.ru
. 3.
. [1].
:
220*sqrt(2)
50 120, 0 120.
3*750 VA,
(. 1).
. 3.
SimPowerSystems:
AC Voltage Source (
Electrical Sources),
Asynchronous Machine SI Units (
Machines), Machines Measurement
Demux ( Measurements),
Ideal Switch ( Power Electronics),
Ground ( Connectors).
m ,
( Terminator Sinks Simulink) (. 3).
: Simulink
Library Browser
File/New/Model.
.
Simulink, SimPowerSystems
Electrical Sources
( ),
.
drag-anddrop.
Pulse
Generator,
g .
,
, . 1.
Pulse Generator 1 ,
3
50%
. Scope ( Sinks
Simulink),
m Machines
Measurement Demux, A
B
Voltage Measurement
Measurements ( ). .
Stop time, 3 ,
Max step size ( auto) Simulation/Simulation parameters
. 4.
Rotor speed [wm],
Electromagnetic
torque [Te] ()
()
49
SE#6(4).qxd
11/17/2005
6:07 PM
Page 50
, 42005
.
. 4. , 1,5 , . .
.
. 5. LC- R
LC-, - (. 5).
u1 .
u2 .
, u1 u2
, :
1. ,
d2u2/dt2 (. 6).
du2/dt.
u2.
2.
(1),
du2/dt, u2
u1, . u1 , .
, u2 1 du2/dt 1 (. 6). , (1),
d2u2/dt2.
A1 d2u2/dt2,
.
3. (1), , t.
, . 6 6.
1, 1, 1 , . 6.
, (1).
Simulink ,
,
.
,
, . 6.
2.
LC- .
: 10 , 100 0,5.
10 , 20
0,5 .
. 7 ,
u1 u2 . , , 1,
,
.
Integrator (. 1).
.
External reset ( ).
. :
none ( );
rising (
);
falling ( );
either
;
level ( , 0).
(1)
(1) u2
. , .
Simulink\Sources
Pulse Generator
Simulink\Math Operations
Gain
Gain1 1
Gain2 2
Gain 108
Gain1 108
Gain2 2103
Simulink\Math Operations
Sum
List of signs |+
Simulink\Continuous
Integrator
Simulink\Sinks
Scope
. 6.
50
www.finestreet.ru
SE#6(4).qxd
11/17/2005
6:07 PM
Page 51
, 42005
. 7.
LC- () ()
2
Simulink\Sources
Pulse Generator
Amplitude (V) 1,
Period (s) 0.00001,
Pulse Width ( %) 50
SimPowerSystems\Electrical Sources
DC Voltage Source
Amplitude (V) 10
SimPowerSystems\Power Electronics
Mosfet Mosfet
SimPowerSystems\Power Electronics
Diode
Simulink\Sinks
Terminator
SimPowerSystems\Elements
10 , L=0, C=inf;
0,5 , R=0, C=inf;
20 , R=0, L=0.
SimPowerSystems\Measurements
Voltage Measurement
Simulink\Sinks
Scope
. . 8. (. 8) . ,
()
.
.
0,8 . .
.
,
. 7,
powerinit. .
Powerinit SPS-
: .
:
powerinit('sys','look') sys.
powerinit('sys','reset')
sys.
powerinit('sys','steady')
sys ,
.
powerinit('sys','set',p) sys,
p.
,
powerinit('sys','look').
powerinit('sys','setb',state,value) value state sys.
2.
-
. 8.
,
()
()
51
SE#6(4).qxd
11/17/2005
6:07 PM
Page 52
, 42005
. ,
Conv_LC:
powerinit('Conv_LC','look');
Current values of Initial states:
Uc_C = -5.5511e-016
Il_L = 0
Uc_snubber Diode = 1.1102e-015
Uc_snubber Mosfet = 10
) 1 ( ).
, , , (
)
.
min max ,
.
,
, :
powerinit('Conv_LC','setb','Uc_C',5)
, 5 ,
.
(. 9) , 5 . ,
( ) -
.
, .
N ; k ;
u2N ; u2max u2min ,
= min = max . u2max =
= u2N +(N min)/k u2min = u2N +(N max)/k.
. ,
, .
.
S- SPS--
, . ,
.
Edit/Create subsystem
.
Subsystem ()
Simulink ( Ports and Subsystem).
,
.
File/Save as
. 10
Conv_OS. 3.
Conv_OS/Subsystem
(. 10) ,
4.
In,
u2. Simulink (. 10),
(. 10) SimPowerSystems, .
,
Out1 ,
.
u2 5
. 9.
( )
. - , LC,
(
). , 0minmax1. ,
0 ( -
52
SimPowerSystems\Electrical Sources
DC Voltage Source
Amplitude (V) 10
SimPowerSystems\Power Electronics
Mosfet Mosfet
SimPowerSystems\Power Electronics
Diode
Simulink\Sinks
Terminator
SimPowerSystems\Elements
10 , L=0, C=inf;
0,5 , R=0, C=inf;
20 , R=0, L=0.
SimPowerSystems\Measurements
Voltage Measurement
Simulink\Sinks
Simulink\Signls Routing
Mux
Number of inputs 2
Simulink\Sources
Repeating Sequence
Simulink\Math Operations
Gain
Gain 10
Simulink\Math Operations
Sum
List of signs |+
Simulink\Math Operations
Relational operator
Simulink\Signls Routing
Mux
Number of inputs 2
Simulink\Discontinuities
Saturation
Simulink\Sources
Constant
Constant1
Constant value 5;
Constant value 0.5
Simulink\Sources
In
Simulink\Sinks
Out
www.finestreet.ru
SE#6(4).qxd
11/17/2005
6:07 PM
Page 53
, 42005
. 10. () ()
Sum. Gain ( k ),
, ( )
N = 0.5
Sum1. N
Saturation. -
Relational operator ( )
Repeating Sequence .
() . . 4.
Mux. ,
. u2 .
,
, u2
.
Stop time
150-6,
Max step size 0.2-7. Simulation/Simulation
parameters .
,
(. 11). (. 11),
,
, . 11.
,
, . u2.
,
, Saturation,
.
Warning: Block diagram 'Conv_OS' contains 1 algebraic loop(s).
(: 'Conv_OS' 1 ().
, -
. .
. , Memory Discrete Simulink.
(. 12) .
Powergui
. Powergui
Simulink Library
Browser SimPowerSystems
. (. 10,
). .
www.finestreet.ru
53
SE#6(4).qxd
11/17/2005
6:07 PM
Page 54
, 42005
. 12.
Memory
Powergui
:
:
;
;
;
;
, , , ;
Simulink LTI-Viewer;
() ;
;
;
.
. 13.
:
Hide messages during analysis .
MATLAB
.
Phasor simulation .
. Frequency.
Frequency (Hz) (). . .
Discretize electrical model
. .
Sample time.
54
() ,
- () ,
.
,
TS.
.
.
: T1 = 1 T0 = 0,1 .
[2].
(. 14) 5.
. Step, .
. 13.
Conv_OS () ()
www.finestreet.ru
SE#6(4).qxd
11/17/2005
6:07 PM
Page 55
, 42005
. 14. () PID- ()
5
Simulink\Sources
Step
Final values 1
Simulink\Math Operations
Gain Gain1 1
Gain 10
Gain 10
Simulink\Math Operations
Sum
List of signs |+
Simulink\Signls Routing
Mux
Number of inputs 2
Sample time 0.1
Simulink\Discrete
ZeroOrder Hold
Simulink\Continuous
Integrator
Simulink\ Continuous
Transfer Fcn
Numerator [1]
Denominator [0.1 1]
Simulink\Sinks
Scope
(. . 5),
1. Zero-Order Hold
.
Sample time, 0,1. Transfer Fcn Numerator Denominator,
, S . (. 14).
Integrator . Scope
.
(. 15).
(
) ( ) ,
( ,
),
. ,
30%.
0,01, 3%.
-.
Simulink Library Browser. Simulink
Library: Simulink,
Blocksets & Toolboxes / Simulink Extras /
Additional Linear.
PID Controller
, www.finestreet.ru
(. 14).
Proportional ( ), Integral ( ), Derivative (
). 10, 0
0,8. 0,1.
.
() 1.
(. 15). ,
30% 18%,
2 (
. 15).
- .
4.
1. Simulink
SimPowerSystems
:
. 15.
() PID- ()
55
SE#6(4).qxd
11/17/2005
6:07 PM
Page 56
, 42005
, ;
,
, ;
,
.
2.
-.
3.
-
56
.
4. SimPowerSystems
Simulink
.
5.
powerinit, Powergui.
6.
- ,
, .
1. . .. // Exponenta
PRO. . 2003. 4.
2. - . ., . .
Simulink //
Exponenta PRO. .
2004. 2.
www.finestreet.ru