Programming, Analysis and Simulation Using Matlab-For Electrical Engineering
Programming, Analysis and Simulation Using Matlab-For Electrical Engineering
Programming, Analysis and Simulation Using Matlab-For Electrical Engineering
Presented by:
P.R.Mankad
Electrical Engineering Department,
Shri S’ad Vidya Mandal Institute of Technology, Bharuch
What is Matlab?
3
What is Simulink?
Simulink is a software package that enables you to
model, simulate, and analyze systems whose outputs
change over time.
Such systems are often referred to as dynamic
systems.
Simulink can be used to explore the behavior of a
wide range of real-world dynamic systems, including
electrical circuits, shock absorbers, braking systems,
and many other electrical, mechanical, and
thermodynamic systems.
4
What Is Simulink?
For modeling, Simulink provides a graphical user
interface (GUI) for building models as block
diagrams, using click-and-drag mouse operations.
Using scopes and other display blocks, you can see the
simulation results while the simulation is running.
8
Modeling Dynamic Systems
Simulink provides a library browser that allows you
to select blocks from libraries of standard blocks and
a graphical editor that allows you to draw lines
connecting the blocks.
9
Block Diagrams
A Simulink block diagram is a pictorial model of a
dynamic system.
It consists of a set of symbols, called blocks,
interconnected by lines.
11
How to bulild simple model
To create the model,
first enter ‘simulink’ in
the MATLAB command
window.
On Microsoft Windows,
the Simulink Library
Browser appears as
shown.
12
How to build simple model
To create a new model
on Windows, select the
New Model button on
the Library Browser's
toolbar
13
How to bulild simple model
15
How to bulild simple model
Similarly copy integrator
bloack from continuous
library, mux from signals
and systems library block
and scope from sink.
Connect sine wave block to
other two items using
mouse.
Connect output of mux to a
scope
16
How to bulild simple model
To simulate the model,
click on ‘start’ from the
simulation menu.
17
The Library Blocks
The Continuous library
18
Discontinuities
The Discontinuities library
contains blocks whose
outputs are discontinuous
functions of their inputs.
19
Discrete
The Discrete library contains
blocks that represent
discrete-time functions.
20
Math Operations
The Math Operations
library contains blocks
that model general
mathematical functions.
21
Math Operations
More math
functions.
22
Signal Routing
The Signal Routing
library contains blocks
that route signals from
one point in a block
diagram to another.
23
Sink
The Sinks library
contains blocks that
display or write block
output.
24
Sources
The Sources library
contains blocks that
generate signals.
25
SimPowerSystems Blockset
It is library of
specialized blocks
pertaining to Electrical
Engineering.
26
Electrical Drives using Simulink
Electrical Machines:
(1)D.C.Machines
(2)Asynchronous Machines
(3) Synchronous Machines
and
(4)Transformers models are available in
SimPowerSystems Blockset of Simulink.
27
(1)D.C.Machines
This block implements a separately
excited DC machine.
An access is provided to the field
terminals (F+, F-) so that the machine
model can be used as a shunt-connected
or a series-connected DC machine.
The armature circuit (A+, A-) consist of
an inductor La and resistor Ra in series
with a counter-electromotive force
(CEMF) E.
28
D.C.Machines
Machine data to be entered
is shown here.
29
D.C.Machines
Measurements are available through demultiplexer.
Four internal signals are multiplexed on the Simulink
measurement output vector returning
Rotor speed in rad/sec.
Armature current in ‘A’
Field current in ‘A’
Electromechanical
torque in ‘N.m’
30
D.C.Machines
Source
D.C.Voltage source
31
D.C. Shunt Motor Drive
33
D.C.Series Motor Drive
35
(2)Asynchronous Machines
(Induction Machines)
This block implements an Induction
machine.
The Asynchronous Machine block
operates in either generating or
motoring mode.
The mode of operation is dictated by the
sign of the mechanical torque (positive
for motoring, negative for generating).
36
(2)Asynchronous Machines
(Induction Machines)
The parameters to be
entered are shown here.
37
Induction Machines
Measurements are available
through Machine Measurement
Demux block located in
‘Machines’ library of
SimPowerSystems Blockset.
38
Induction Machines
AC voltage source
39
Induction Machines Drive
Transient response 41
Types of Loads
42
TL
TL
TL
TM
44
TL 2
TL
46
Speed Control
47
DC Shunt Motor
49
DC Shunt Motor
51
DC Series Motor
53
Induction Motor
55
Induction Motor
57
DC Shunt Motor
59
DC Shunt Motor
62
Induction Motor
64
Block diagram of an electric drive
Source Power
Motor Load
modulator
Control Sensing
unit unit
Input command
65
Power Modulator
Power modulator performs following four functions
66
AC to DC converters
67
AC to DC converters
2Vm
Vdc
Single phase Diode rectifier using universal bridge
68
AC-DC converters
70
AC to DC converters
71
AC to DC converters
2Vm
Vdc cos
74
Triggering of 1ph-controlled rectifier
75
AC Voltage Controllers
Fixed voltage
Variable voltage
1ph or 3-ph
ac
ac Thyristor voltage
Diode rectifier
controller
(Soft starters)
76
Soft starter
77
Soft starter
(Available as demo) 78
Soft started Induction motor drive
79
DC-DC converters (Choppers)
Variable voltage
Fixed voltage
dc
dc Semiconductor
Diode rectifier
chopper
80
Chopper fed DC drive
(Available as demo) 81
AC Voltage Controllers
Variable frequency
Fixed voltage Stepped wave Fixed voltage
dc Semiconductor ac
Diode rectifier
inverter
(a)
Variable frequency
Variable voltage
Fixed voltage
ac
dc (Soft starters)
PWM semiconductor
Diode rectifier
inverter
(b) 82
PWM inverter
Vdc
Vac m
2 2
PWM inverter using universal bridge 83
Induction Motor drive using
PWM inverter