Lab 2 PDF
Lab 2 PDF
OBJECTIVE:-
•To understand the behavior and characteristics of SIMPOWER SYSTEM.
INTRODUCTION:-
SimPower Systems™ provides component libraries and analysis tools for modeling and
simulating electrical power systems. The libraries offer models of electrical power components,
including three-phase machines, electric drives, and components for applications such as flexible
AC transmission systems (FACTS) and renewable energy systems. Harmonic analysis,
calculation of total harmonic distortion (THD), load flow, and other key electrical power system
analyses are automated. SimPower Systems models can be used to develop control systems and
test system-level performance. You can parameterize your models using MATLAB® variables
and expressions, and design control systems for your electrical power system in Simulink®. You
can add mechanical, hydraulic, pneumatic, and other components to the model using Simscape™
and test them together in a single simulation environment. To deploy models to other simulation
environments, including hardware-in-the-loop (HIL) systems, SimPower Systems supports C-
code generation.
• Phasor solution
The Powergui block is necessary for simulation of any Simulink model containing
SimPowerSystems blocks. It is used to store the equivalent Simulink circuit that represents the
state-space equations of the model.
When using this block in a model, you must follow these rules:
• Place the Powergui block at the top level of diagram for optimal performance. You can
place it anywhere inside subsystems for your convenience; its functionality will not be affected.
Use this block to generate a three-phase sinusoidal voltage with time-varying parameters. You
can program the time variation for the amplitude, phase, or frequency of the fundamental
component of the source. In addition, two harmonics can be programmed and superimposed on
the fundamental signal.
Positive-sequence:
The amplitude in volts RMS phase-to-phase, the phase in degrees, and the frequency in hertz of
the positive-sequence component of the three voltages.
Time variation:
Specify the parameter for which you want to program the time variation. Select None if you do
not want to program the time variation of the source parameters. Select Amplitude if you want to
program the time variation of the amplitude. Select Phase if you want to program the time
variation of the phase. Select Frequency if you want to program the time variation of the
frequency.
The time variation applies to the three phases of the source except when the Type of variation
parameter is set to Table of amplitude-pairs. In that case you can apply a variation to phase A
only.
Type of variation:
Specify the type of variation that is applied to the parameter specified by the Time variation of
parameter. Select Step to program a step variation. Select Ramp to program a ramp variation.
Select Modulation to program a modulated variation. Select Table of amplitude-pairs to program
a series of step changes of amplitudes at specific times.
The Table of amplitude-pairs option is not available when the Time variation of parameter is set
to Frequency.
Step magnitude:
This parameter is visible only if the Type of Variation parameter is set to Step.
Specify the amplitude of the step change. The variation of amplitude is specified in pu of the
positive-sequence amplitude.
Rate of change
This parameter is visible only if the Type of Variation parameter is set to Ramp.
Specify the rate of change, in volt/seconds. The rate of change of voltage is specified in (pu of
the positive-sequence voltage)/second.
This parameter is only visible if the Type of variation parameter is set to Modulation.
Specify the frequency of the modulation for the source parameter specified in the Time variation
of parameter.
Variation timing(s):
Specify the time, in seconds, when the programmed time variation takes effect and the time
when it stops.
Specify the active power that you want generated by the source, in watts. This parameter is
available if you specify Generator type as PV or PQ.
Specify the reactive power that you want generated by the source, in vars. This parameter is
available only if you specify Generator type as PQ.
The Three-Phase Breaker block implements a three-phase circuit breaker where the opening and
closing times can be controlled either from an external Simulink signal (external control mode),
or from an internal control timer (internal control mode).
The Three-Phase Breaker block uses three Breaker blocks connected between the inputs and the
outputs of the block. You can use this block in series with the three-phase element you want to
switch. See the Breaker block reference pages for details on the modeling of the single-phase
breakers.
If the Three-Phase Breaker block is set in external control mode, a control input appears in the
block icon. The control signal connected to this input must be either 0 or 1, 0 to open the
breakers, 1 to close them. If the Three-Phase Breaker block is set in internal control mode, the
switching times are specified in the dialog box of the block. The three individual breakers are
controlled with the same signal.
The initial status of the breakers. The initial status is the same for the three breakers. Depending
on the initial status, the icon shows a closed contact or an open contact.
Switching of phase A:
If selected, the switching of phase A is activated. If not selected, the breaker of phase A stays in
its initial status specified in the Initial status of breakers parameter.
Switching of Phase B:
If selected, the switching of phase B is activated. If not selected, the breaker of phase B stays in
its initial status specified in the Initial status of breakers parameter.
Switching of phase C:
If selected, the switching of phase C is activated. If not selected, the breaker of phase C stays in
its initial status specified in the Initial status of breakers parameter.
Transition times(s):
The Transition times(s) parameter is not visible in the dialog box if the External control of
switching times parameter is selected.
Specify the vector of switching times when using the Three-Phase Breaker block in internal
control mode. At each transition time the selected breakers opens or closes depending to their
initial state.
If selected, adds a fourth input port to the Three-Phase Breaker block for an external control of
the switching times of the breakers. The switching times are defined by a Simulink signal (0-1
sequence).
The internal breaker resistances, in ohms (Ω). The Breaker resistance Ron parameter cannot be
set to 0.
Snubbers resistance Rp:
The snubber resistances, in ohms (Ω). Set the Snubber resistance Rp parameter to inf to eliminate
the snubbers from the model.
The snubber capacitances, in farads (F). Set the Snubber capacitance Cp parameter to 0 to
eliminate the snubbers, or to inf to get resistive snubbers
Voltage measurement:
Select no if you do not want to measure three-phase voltage. Select phase-to-ground if you want
to measure the phase-to-ground voltages. Select phase-to-phase if you want to measure the
phase-to-phase voltages.
Use a label:
If selected, the voltage measurements are sent to a labeled signal. Use a From block to read the
voltages. The Goto tag of the From block must correspond to the label specified by the Signal
label parameter. If not selected, the voltage measurements are available via the Vabc output of
the block.
Signal label:
Task 1: (5 marks)
Using Simpower system tool and implement the single phase system as shown in figure below
OUTPUT
Task 2: Plot Voltage and Current in a single graph by using Mux for comparison
(5 marks)