Simpower Task.doc

Embed Size (px)

Citation preview

  • 7/30/2019 Simpower Task.doc

    1/9

    MATLAB SimPower System Tutorial by Engr. Saima Ali 1

    SimPower System Tutorial

    By: Saima Ali, Lecturer EE Department

    __________________________________________________________________

    Task 1:

    Analysis of steady-state operation of a linear electrical circuit

    This example illustrates use of the Powergui and Impedance Measurement blocks to analyze the steady-stateoperation of a linear electrical circuit.

    This linear system consists of 3 states (2 inductor currents and 1 capacitor voltage),2 inputs (Vs, Is) and 2 outputs (Current and Voltage Measurement). An Impedance Measurement block is used to compute the impedance versus frequency of the circuit.

    Demonstration:

    1. Use the Powergui block to find the steady-state 60Hz and 300 Hz components of voltage and current phasors.The values of the 3 states (phasors and initial values) can be also obtained from the powergui block.

    2. Open the scope and start the simulation from the Simulation/Start menu.Notice that the simulation starts in steady-state.

    3. Using the Powergui block, select Impedance vs. Frequency Measurement. A new window opens.

    4. The measurement will be performed for the specified frequency range vector [0: 2:1000] (0 to 1000 Hz bysteps of 2 Hz). Click on the Display button. The impedance is displayed in a graphic window.

    Notice the series resonance at 300 Hz corresponding to the tuned frequency of the filter.

    Task 2:

    IEEE HERTZ COMSATS Inst. Of Info Technology, Abbottabad (www.hertz.ciit.net.pk)

  • 7/30/2019 Simpower Task.doc

    2/9

    MATLAB SimPower System Tutorial by Engr. Saima Ali 2

    Transient Analysis of a Linear Circuit:

    Circuit Description:

    This circuit is a simplified model of a 230 kV three-phase power system. Only one phase of the transmission system isrepresented.

    The equivalent source is modeled by a voltage source (230 kV rms/sqrt(3) or 187.8 kV peak, 60 Hz) in series with itsinternal impedance (Rs Ls) corresponding to a 3-phase 2000 MVA short circuit level and X/R = 10. (X =230e3^2/2000e6 = 26.45 ohms or L = 0.0702 H, R = X/10 = 2.645 ohms).

    The source feeds a RL load through a 150 km transmission line. The line distributed parameters (R = 0.035ohm/km, L =0.92 mH/km, C = 12.9 nF/km) are modeled by a single pi section (RL1 branch 5.2 ohm; 138 mH and two shuntcapacitances C1 and C2 of 0.967 uF).

    The load (75 MW - 20 MVAR per phase) is modeled by a parallel RLC load block.A circuit breaker is used to switch the load at the receiving end of the transmission line. The breaker which is initiallyclosed is opened at t = 2 cycles,then it is reclosed at t = 7 cycles. Current and Voltage Measurement blocks provide signals for visualization purpose.

    Demonstration:

    1. Simulation using a continuous solver

    Start the simulation and observe line voltage and load current transients during load switching and note thatthe simulation starts in steady-state. Use the zoom buttons of the oscilloscope to observe the transientvoltage at breaker reclosing.

    2. Using the Powergui to obtain steady-state phasors and set initial states

    Open the Powergui block and select "Steady State Voltage and Currents" to measure the steady-statevoltage and current phasors.

    Using the Powergui select now "Initial States Setting" to obtain the initial state values (voltage acrosscapacitors and current in inductances).

    Now, reset all the initial states to zero by clicking the "to zero" button and then "Apply" to confirm changes.Restart the simulation and observe transients at simulation starting. Using the same Powergui window, youcan also set selected states to specific values.

    3. Discretizing your circuit and simulating at fixed steps

    The Powergui block can also be used to discretize your circuit and simulate it at fixed steps. Open the Powergui. Select Discretize electrical model" and specify a sample time of 50e-6 s. Thestate-space model will now be discretized using trapezoidal fixed step integration. The precision ofresults is now imposed by the sample time.

    IEEE HERTZ COMSATS Inst. Of Info Technology, Abbottabad (www.hertz.ciit.net.pk)

  • 7/30/2019 Simpower Task.doc

    3/9

  • 7/30/2019 Simpower Task.doc

    4/9

    MATLAB SimPower System Tutorial by Engr. Saima Ali 4

    Figure 3.1. The powerlib library

    Figure 3.2

    a.powerguib. Electrical Sources: Choose AC Voltage Source

    c. Elements: Choose Parallel RLC Load, Ground (copy 4 times), Linear Transformerd. Measurements: Current Measurement, Voltage Measuremente. From the Simulink Commonly Used Blocks: Scope (copy once)

    When all the blocks are dragged, the new model window will appears as shown in Figure 3.3.Next, we perform the following steps:a. We double-click the Linear Transformer block and on the Block Parameters window we

    uncheck the Three windings transformer option. The transformer now appears as a twowinding transformer.

    b. We double-click the Parallel RLC Load and on the Block Parameters window we set theCapacitive reactive power Qc to zero. The block now is reduced to a parallel RL block.We rotate this block with Format>Rotate Block>Counterclockwise.

    c. We interconnect the blocks and we rename them as shown in the model in Figure 3.4.

    d. The parallel 40 KW / 30 KVAR load is assumed to be a pf = 0.8 lagging load.

    Figure 3.3. The blocks for the model

    IEEE HERTZ COMSATS Inst. Of Info Technology, Abbottabad (www.hertz.ciit.net.pk)

  • 7/30/2019 Simpower Task.doc

    5/9

    MATLAB SimPower System Tutorial by Engr. Saima Ali 5

    Figure 3.4

    By default, the calculations are performed using the pu method but the parameters will automatically be converted if wechange from pu to SI or vice versa. The Block Parameters for the transformer block are in pu values are shown in Figure3.5.

    Figure 3.5. The Block Parameters dialog box for the transformer of the model in Figure 3.4

    Before we issue the Simulation Start command for the model in Figure 3.4, we click Simulation>ConfigurationParameters>Solver, and we select the ode23b(stiff/TRBDF2) parameter.After the simulation command is executed theScope 1 and Scope 2 blocks display the waveforms in Figures 3.6 and 3.7 respectively, noting that amplitudes are in

    peak values, i.e., Peak = RMS 2 .

    IEEE HERTZ COMSATS Inst. Of Info Technology, Abbottabad (www.hertz.ciit.net.pk)

  • 7/30/2019 Simpower Task.doc

    6/9

    MATLAB SimPower System Tutorial by Engr. Saima Ali 6

    Figure 3.6. Waveform for the primary winding current

    Figure 3.7. Waveform for the voltage across the load

    The SimPowerSystems/Measurements library includes the Multimeterblock which is now added to the model and thenew model is shown in Figure 3.8. We double click the Multimeter block and we observe that the left pane in the dialog

    box in Figure 3.9 displays 6 Available Measurements and as Ub (Parallel RLC Load), Uw1 and Uw2 (Primary andSecondary Winding Voltages), Iw1 and Iw2 (Primary and Secondary Winding Currents), and Imag (MagnetizationCurrent). The last 5 measurement are displayed because in the Block Parameters dialog box for the Linear Transformer

    block in Figure 3.5, in the Measurementsparameter we selected the All voltages and currents option.

    IEEE HERTZ COMSATS Inst. Of Info Technology, Abbottabad (www.hertz.ciit.net.pk)

  • 7/30/2019 Simpower Task.doc

    7/9

    MATLAB SimPower System Tutorial by Engr. Saima Ali 7

    Figure 3.8. The model for Example 9.13 with the added Multimeter block

    In the Multimeter dialog box in Figure 3.9, the Available Measurements in the left pane were highlighted to beselected, and were copied to the Selected Measurementspane on the right side by clicking the >> icon. The dialog boxwas then updated by clicking the Update button, and with the Plot selected measurements parameter selected, theSimulation Start command was issued producing the plots of the selected measurements shown in Figure 3.10, and weobserved that the number inside the Multimeterblock was changed to .As we have seen, with the use of the Multimeterblock it was not necessary to use the Scope 1and Scope 2 blocks sincethe primary current and the load voltage waveforms are also shown in Figure 3.10.

    Figure 3.9. The Multimeter block dialog box

    IEEE HERTZ COMSATS Inst. Of Info Technology, Abbottabad (www.hertz.ciit.net.pk)

  • 7/30/2019 Simpower Task.doc

    8/9

    MATLAB SimPower System Tutorial by Engr. Saima Ali 8

    Figure 3.10. Waveforms for the six measurements provided by the Measurements block in Figure 3.8

    Task 4:

    Time Domain and Frequency Domain Testing of a Single Phase Line:

    Circuit Description:

    A 200 km line is connected on a 1 kV, 60 Hz infinite source. The line is deenergized and then reenergized after 2 cycles.The simulation is performed simultaneously with two different line models:

    - Distributed parameter line- PI section line consisting of two 100 km sections.

    Currents at the sending end and voltages at the receiving end are compared for the two line models.

    Impedance Measurement blocks are connected at the open end of both lines in order to compare their frequencyresponses.

    IEEE HERTZ COMSATS Inst. Of Info Technology, Abbottabad (www.hertz.ciit.net.pk)

  • 7/30/2019 Simpower Task.doc

    9/9

    MATLAB SimPower System Tutorial by Engr. Saima Ali 9

    Demonstration

    1. Steady-state

    Open the Powergui block and select 'Steady-State Voltages and Currents' to display the voltage and currentphasors.

    Observe that the values obtained with the two models are the same.

    2. Time domain comparison

    Open the two scopes and start the simulation.

    Observe the difference in current and voltage waveforms at breaker opening and reclosing.

    Note the sharp edges of the distributed parameter model (in yellow).

    These voltage and current steps which are due to travelling wave reflections at line ends are filtered by thePI model.

    3. Frequency domain comparison

    Open the Powergui block and select Impedance vs Frequency Measurement'. A new window appears, listing the two Impedance Measurement blocks Z_Dist and Z_PI connected to your

    circuit. Note also that parameters are set to compute impedance in the 0:2000 Hz frequency range

    by steps of 2 Hz. Using the 'CTRL' key, select both Z_Dist and Z_PI in the upper right window.

    Then, click on the Display button. The two impedances are computed and displayed on thesame graph.

    Note that the distributed parameter line shows a succession of poles and zeros equallyspaced, every 486 Hz.

    The first pole occurs a 243 Hz , corresponding to frequency f = 1 / (4*T), where :

    T = travelling time = length*sqrt(L*C) = 200*sqrt(2.137e-3*12.37e-9) = 1.028 ms

    The PI section line only shows two poles because it consists of two PI sections.

    Impedance comparison shows that a two-PI line gives a good approximationof the distributed line for the 0-350 Hz frequency range.

    IEEE HERTZ COMSATS Inst. Of Info Technology, Abbottabad (www.hertz.ciit.net.pk)