Вы находитесь на странице: 1из 9

SE#4(2).

qxd

5/11/2005

7:22 PM

Page 32

, 22005

MATLAB
2. SimPowerSystems
,
.
SimPowerSystems
.
1.

,
. . .

kaf21@aanet.ru

32


SimPowerSystems
SimPowerSystems ( MATLAB 6.1 Power System Blockset)
.
Simulink SimPowerSystems,
MATLAB,

, ,
.
SimPowerSystems ,
( S-), ( SPS-)
. , SimPowerSystems, Simulink,
.
, , . ,
SimPowerSystems ,
, , MATLAB. SimPowerSystems
Simulink.
SPS- S-. (drag-and-drop )
. ,
SPS- .
1. SPS- ( SimPowerSystems
2.3 ) , -

,
( ).
2.
(),
. -
( ),
, Connectors SPS.
3. Simulink SimPowerSystems .
S- SPS- , .
4. Powergui,
powerinit.
5.
(. 1):
ode15s ( 1 5)
;
ode23s

,
, , ode15s;
ode23t ,
;
ode23tb
, ;
, ode23t.
www.finestreet.ru

SE#4(2).qxd

5/11/2005

7:22 PM

Page 33

, 22005

(
). , ode45
SPS-
.

.

(Electrical Sources)

(. 2).


SimPowerSystems
MATLAB,

Simulink Library Browser (. 1).

Simulink,
() ,
SimPowerSystems +
.

. 2.
Electrical Sources

(DC Voltage Source)

. 1.
Simulink
SimPowerSystems

. 1 ,
SimPowerSystems
:
1. Connectors .
2. Electrical Sources .
3. Elements .
4. Extra Library .
5. Machines .
6. Measurements .
7. Power Electronics .
,
Powergui . www.finestreet.ru

: .
(

):
Amplitude (V) ().
. Measurments .
,
Multimeter Scope. :
None ;
Voltage .
, .
(AC Voltage Source)

: .
: Amplitude (V)
(). . Phase (deg)
(). . Frequency (Hz) ().


. Sample time .

. Measurments . , Multimeter
Scope.
:
None ;
Voltage .
.

(AC Current Source)

: .
: Amplitude () (). . Phase (deg) (). .
Frequency (Hz) (). . Sample time
.
. Measurments . , Multimeter
Scope.
:
None ;
Current .

.

(Controlled Voltage Source)

.
: , .
: Initialize . ,
. Source type .
. ,
.
:
AC ;
DC .
Initial amplitude (V) ().

33

SE#4(2).qxd

5/11/2005

7:22 PM

Page 34

, 22005
.
, . Phase (deg) (). , . Initial frequency (Hz)
(). , . Measurements . ,
Multimeter Scope.
:
None ;
Voltage .
.
(Controlled
Current Source)

: , .
: Initialize . ,
. Source type .
. , .
:
AC ;
DC .
Initial amplitude () ().
. , .
Phase (deg) (). , . Initial frequency (Hz)
(). ,
. Measurements . , Multimeter
Scope.
:
None ;
Current .

.
3-Phase
Source 3-Phase Programmable Voltage
Source , ,
. ,
.

34


(Elements)
Library:
powerlib2/Elements (. 3, Elements
SimPowerSystems)
Simulink Library Browser
( ,
- ). , - , . .
RLC- (Series RLC
Branch)

: , , .
(
): Resistance R (Ohms)
(). . , .
. Inductance L (H) (). .

.
.
Capacitance C (F) (). .
inf
().
.
Measurements .

, Multimeter Scope. :
None ;
Branch voltage ;
Branch current ;
Branch voltage and current
.
Multimeter
:
Ib ;
Ub .
RLC- (Parallel RLC
Branch)

: , , .
: Resistance R (Ohms) (). .

inf (). . Inductance L (H)
(). .

inf (). . Capacitance C (F) ().
. .
.
Measurements .
, -

. 3. Simulink Library: powerlib2/Elements

www.finestreet.ru

SE#4(2).qxd

5/11/2005

7:22 PM

Page 35

, 22005
Multimeter Scope. :
None ;
Branch voltage ;
Branch current ;
Branch voltage and current
.
Multimeter
:
Ib ;
Ub .
, RLC-
Series RLC Load RLC- Parallel
RLC Load,
, .
.
.

(Measurements)
Measurements (. 4), SimPowerSystems.

Magnitude-Angle ,
.
(Voltage
Measurement)

:
. , Simulink.
: Output signal . .

, Powergui
(Phasor simulation).
:
Magnitude ( );
Complex ;
Real-Imag , ;
Magnitude-Angle ,

.
(Multimeter)

:
SimPowerSystem, Measurements (. 5).

Multimeter. ( ):
>>
;
Up ;
Down ;
Remove
;
+/ .
Output signal . . , Powergui (Phasor simulation).
:
Magnitude ( );
Complex ;
Real-Imag , ;
Magnitude-Angle ,
.

Current Measurement Voltage
Measurement. ,
. ,
, .
SimPowerSystems . 6 ( Power Electronics), . 7 ( Machines)
. 8 ( Connectors).

. 4.

Measurements

(Current Measurement)
:
, (). , Simulink-.
: Output signal
. .
,
Powergui
(Phasor
simulation). :
Magnitude ( );
Complex ;
Real-Imag , ;

www.finestreet.ru

. 5.
Multimeter

: Available Measurements
( ), . , Measurements
( ).
Update,
. Selected Measurements ( ). , -

. 6.

Power Electronics

35

SE#4(2).qxd

5/11/2005

7:22 PM

Page 36

, 22005
SPS-

RLC- Series RLC Branch


( Elements), Voltage Measurement (
Measurements) Display
Sinks ( ), Simulink. , 1 (. 9).
Series RLC Branch 1
90. ,
Format/Rotate
Block
(
Flip-Block 180). , .


.


SPS-. :
Simulink Library
Browser (. 1) File/New/Model
. .
1.

.
: 10 ; 2; 20 .
Simulink,
SimPowerSystems Electrical Sources ( ). Electrical Sources
(. 2). DC Voltage Source (. 9).
, -

. 7.

Machines

. 8.

Connectors



SimPowerSystems.

36

)
. 9. (), () SPS-
()

www.finestreet.ru

SE#4(2).qxd

5/11/2005

7:22 PM

Page 37

, 22005
. ,
. ,
. (
) (. 9).
, .
Voltage Measurement
, .
. Series RLC Branch.
(. 10). 10 , 0
inf (),
None,
Multimeter .
Ok,
(. 9).
Series RLC Branch 1,
.
DC Voltage Source (
10 , . 10). Voltage
Measurement ,
Display

Format
Short
Long. Short.
,
ode45

)
. 10.
RLC- Series RLC
Branch ()
DC Voltage Source ()

www.finestreet.ru

, 10 5 (. 9).
2. RL-
( ).
:
50 ; RL- 4 ,
0,5 .
,
, (. 11), 50 ( DC Voltage
Source), 4 , 0,5 Series RLC Branch
. . Current Measurement,
,
+ . i Scope. , RL-.
( ) . Series RLC
Branch,
, .
RL- = L/R = 0,125 ,
0,675 ( 5). (. 1) Simulation/Simulation Parametrs.
Simulation Parametrs
Stop time 1 .

File/Save as DC_Regim_Perechod1,

(. 11).
powerinit.
(
help powerinit). powerinit ('DC_Regim_Perechod1','reset'),
'DC_Re gim_Perechod1'
'reset'
.
Enter, .
Scope (. 11 11).
,
. ,

(. 1). ,
Axes properties (
), 'Scope' properties: axis 1 ( ) Y.

)
. 11. (),
()
()

,
powerinit MATLAB n m,
powerimit. :
??? Undefined function or variable 'powerimit'
( 'powerimit').

, , :
??? Error using ==> powerinit
Not enough input arguments

( , ).
.
,

37

SE#4(2).qxd

5/11/2005

7:22 PM

Page 38

, 22005
Current Measurement
Scope. :
Warning: Output port 1 of block 'DC_Regim_Perechod1/Current
Measurement' is not connected.
Warning: Input port 1 of block 'DC_Regim_Perechod1/Scope' is not
connected.

(: / 1 '' ).
, MATLAB

. , . .
.
3. RL- .
:

100 50 ;
0,15 70% 0,02
( , );
RL- 0,5 0,01 . Breaker ( Elements SimPowerSystem).
(. 12) AC Voltage
Source ( . 12),
Pulse
Generator (
. 12), Breaker ( . 12).
Current
Measurement, Scope
Series RLC Branch, . , Pulse Generator Sources Simulink.
, : ,
Stop time. , .
Simulation/Simulation Parametrs
Simulation Parametrs. , ode15s. , 0,15 , Stop time 0,3 .
0,02
10 ,
Max step size 0,002 c. RL- Pulse Generator (. 12 12).


Breaker, - . -

38

.

,
(. 12)
RC-,
Snubber.
.
(. 12): Breaker resistance
Ron (Ohm)

)
. 12. RL-
(),
AC_Volage_Source (),
Breaker (), Pulse Generator (),

() ()

(). Initial state


(0 for 'open',1 for 'closed') (0 , 1 ). Snubber resistance Rs (Ohm) (). Snubber
capacitance Cs(F)
(). Switching times (s)
(). , . , www.finestreet.ru

SE#4(2).qxd

5/11/2005

7:22 PM

Page 39

, 22005
, [0.005 0.01 0.02 0.03] ,
0,005 0,02 , 0,01 0,03 . Sample
time of the internal timer Ts (s) . External control
of switching times .

.
,
,
. Measurements .
:
None ;
Branch voltage
;
Branch current ;
Branch voltage and current
.

Breaker (. . 12). , RL- ,
.
4. RC- , .
:
50 60 ; 15 ;
0,01 , 25 ,

1 .
Signal Generator
Constant ( Sources) Sum ( Math
Operations) Simulink, Controlled
Voltage Source ( Electrical Sources),
Parallel RLC Branch (
Elements), Voltage
Measurement ( Measurements) SimPowerSystems, Scope
Mux ( Signal Routing)
Simulink.
. 13, Parallel RLC
Branch Controlled Voltage
Source. , , ,
L connector ( Connectors).
,
. 13. Controlled Voltage Source www.finestreet.ru

)
)
. 13. (), Controlled Voltage Source (),
Signal Generator (), Mux () ()

(. 13). Signal
Generator (square), 50 , 60
(. 13). Mux Number of inputs 2 Display option signals,
,
(. 13). Sum
|++.

Stop times 0,08 c,
Max step size 0,001 c.
. 13. ,
, . ,
, , -

,


.
Connectors
(. 14), , . 13. T connector ( . 14
),

L connector, .

Neutral (. 14).
() , , , .
.

39

SE#4(2).qxd

5/11/2005

7:22 PM

Page 40

, 22005

)
. 14. : T connector (a) Neutral ().

2:
1. SimPowerSystems , 7 , ;
() ;
;
.
2. Simulink
SimPowerSystems
,
, ,
-

40

,
.
3. ,

(Connectors).
4. SPS-
,
.
5. SPS- -

(
).
6.
.
7. MATLAB ,


, .

www.finestreet.ru

Вам также может понравиться