MATLAB_Урок2.pdf
-
Upload
donald-cunningham -
Category
Documents
-
view
10 -
download
0
Transcript of MATLAB_Урок2.pdf
-
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.
, 22005
MATLAB 2. SimPowerSystems
, . . .
, . SimPowerSystems . 1.
32 www.finestreet.ru
SE#4(2).qxd 5/11/2005 7:22 PM Page 32
-
- - - - (- ). , - ode45 SPS- - - .
SimPowerSystems
MATLAB, - Simulink Library Browser (. 1). Simulink, () , SimPowerSystems + .
. 1 , SimPowerSystems :1. Connectors .2. Electrical Sources -
.3. Elements .4. Extra Library -
.5. Machines .6. Measurements -
.7. Power Electronics -
. ,
Powergui - . -
- - .
(Electrical Sources)
- (. 2).
- (DC Voltage Source)
: - .
( ):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) - ().
, 22005
33www.finestreet.ru
. 1. Simulink SimPowerSystems
. 2. Electrical Sources
SE#4(2).qxd 5/11/2005 7:22 PM Page 33
-
. , -. Phase (deg) (). - , - -. Initial frequency (Hz) (). , - -. Measurements -. , Multimeter - Scope. : None ; Voltage -
. -
-.
(ControlledCurrent Source)
: , - .
: Initialize -. - - , . Source type . - . - , . : AC ; DC .
Initial amplitude () - (). . -, .Phase (deg) (). -, - . Initial frequency (Hz) (). , - . Measurements - . , - Multimeter Scope. : None ; Current -
.
-.
3-PhaseSource - 3-Phase Programmable VoltageSource - - - , , . - , .
(Elements)
- Library:powerlib2/Elements (. 3, - Elements SimPowerSystems) Simulink Library Browser( , - - - ). - , -- , . .
RLC- (Series RLCBranch)
: , - , -.
( - ): 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 RLCBranch)
: , - , -.
: Resistance R (Ohms) - (). -. inf (-). - . Inductance L (H) (). -. inf (). - - . Capacitance C (F) (). . - - . .Measurements . , -
, 22005
34 www.finestreet.ru
. 3. Simulink Library: powerlib2/Elements
SE#4(2).qxd 5/11/2005 7:22 PM Page 34
-
Multimeter - Scope. - : None ; Branch voltage ; Branch current ; Branch voltage and current
. Multimeter
: Ib ; Ub .
, RLC-Series RLC Load RLC- ParallelRLC Load, , -. - . .
(Measurements)
- - Measurements (. 4), - - SimPowerSystems.
(Current Measurement):
, - (). - , - Simulink-.
: Output signal . . , Powergui (Phasorsimulation). - : Magnitude ( ); Complex ; Real-Imag , -
- ;
Magnitude-Angle , - . (Voltage
Measurement)
: . - , - Simulink.
: Output signal - . . , Powergui - (Phasor simulation). : Magnitude ( ); Complex ; Real-Imag , -
- ;
Magnitude-Angle , . (Multimeter)
: SimPowerSystem, - - Measurements - (. 5).
: Available Measurements ( ), -. -, - Measurements( ). - Update, - . Selected Measurements - ( ). -, -
Multimeter. - - ( ): >>
; Up -
; Down -
; Remove
; +/ -
.Output signal . -
. - , - Powergui - (Phasor simulation). - : Magnitude ( ); Complex ; Real-Imag , -
- ;
Magnitude-Angle , - .
- Current Measurement VoltageMeasurement. - , . -, , - .
- SimPowerSystems - . 6 ( - Power Electronics), . 7 (- Machines) . 8 ( Connectors).
, 22005
35www.finestreet.ru
. 4. Measurements
. 5. Multimeter
. 6. Power Electronics
SE#4(2).qxd 5/11/2005 7:22 PM Page 35
-
SimPowerSystems.
SPS-
SPS-. : Simulink LibraryBrowser (. 1) File/New/Model . - .
1. .
: - 10 ; - 2; 20 .
- Simulink, SimPowerSystems - Electrical Sources ( - ). - Electrical Sources(. 2). - - DC Voltage Source (. 9). , -
- RLC- Series RLC Branch( Elements), - Voltage Measurement (Measurements) Display Sinks ( -), Simulink. -, - 1 (. 9).
- Series RLC Branch 1 90. - , Format/RotateBlock (Flip-Block - 180). - , - . - .
, 22005
36 www.finestreet.ru
. 7. Machines
. 8. Connectors
)
)
). 9. (), () SPS- ()
SE#4(2).qxd 5/11/2005 7:22 PM Page 36
-
-. - , . , - . - ( ) (. 9)., - . Voltage Measurement , - .
. - Series RLC Branch. - - (. 10). - 10 , 0 inf (), None, Multimeter . Ok, - (. 9). Series RLC Branch 1, .
DC Voltage Source - - ( 10 , . 10). - VoltageMeasurement , Display - Format Short Long. Short. , ode45
, - 10 - 5 (. 9).
2. - RL- - ( ).
: 50 ; RL- - 4 , 0,5 .
, , (. 11), - 50 ( DC VoltageSource), 4 , - 0,5 Series RLC Branch -. - . - Current Measurement, , + - . i - Scope. - , - RL-. - ( ) - . - Series RLCBranch, , .
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' prop-erties: axis 1 ( ) - - Y.
, powerinit MATLAB - n m, powerimit. - :
??? Undefined function or variable 'powerimit'
( 'powerimit').
, - , :
??? Error using ==> powerinit
Not enough input arguments
( , - ).
- ., -
, 22005
37www.finestreet.ru
)
). 10. RLC- Series RLCBranch () DC Voltage Source ()
)
)
). 11. (), () ()
SE#4(2).qxd 5/11/2005 7:22 PM Page 37
-
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 VoltageSource ( . 12), PulseGenerator ( . 12), Breaker ( - . 12). CurrentMeasurement, 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, -- . - -
. , - (. 12) RC--, Snubber.
. (. 12): Breaker resistance
Ron (Ohm)
(). Initial state(0 for 'open',1 for 'closed') - (0 , 1 -). Snubber resistance Rs (Ohm) - (). Snubbercapacitance Cs(F) (). Switching times (s) (). -, - -. , -
, 22005
38 www.finestreet.ru
. 12. RL- (), AC_Volage_Source (),Breaker (), Pulse Generator (), () ()
)
)
)
)
)
)
SE#4(2).qxd 5/11/2005 7:22 PM Page 38
-
, - [0.005 0.01 0.02 0.03] -, 0,005 0,02 , - 0,01 0,03 . Sampletime of the internal timer Ts (s) - . External controlof 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 ( MathOperations) Simulink, - ControlledVoltage Source ( Electrical Sources), Parallel RLC Branch (Elements), VoltageMeasurement ( Measurements) - SimPowerSystems, - Scope Mux ( Signal Routing) Simulink. - . 13, - Parallel RLCBranch Controlled VoltageSource. , - - , -, L connector ( Connectors).
- , . 13. - Controlled Voltage Source -
(. 13). SignalGenerator - (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). - (-) , , - , -. .
, 22005
39www.finestreet.ru
)
)
)
. 13. (), Controlled Voltage Source (),Signal Generator (), Mux () ()
) )
SE#4(2).qxd 5/11/2005 7:22 PM Page 39
-
2:1. SimPowerSystems -
, 7 , - - -;
() -;
; .2. Simulink
SimPowerSystems , , - , -
, .
3. -, - - - (Connectors).
4. SPS- - , -.
5. SPS- - -
- ( ).
6. - - - - .
7. MATLAB - - , , - .
, 22005
40 www.finestreet.ru
) ). 14. : T connector (a) Neutral ().
SE#4(2).qxd 5/11/2005 7:22 PM Page 40