You are on page 1of 70

Caspoc 2003

A Simulation Experience!
 Fast Simulation
– of Power Electronics
– and Electrical Drives

Januari 2004 Simulation Research 1


Overview
What is CASPOC?
 Caspoc is especially designed
– to model and simulate
– power electronics
– and electrical drives
 Multilevel modeling
– various modeling tools are coupled
 Why is it fast and easy
– special models and simple user interface

Januari 2004 Simulation Research 2


Overview
What is CASPOC?
 Multilevel modeling
– Circuit model
– Block diagram
– C Code

 All in one schematic!

Januari 2004 Simulation Research 3


Overview
What is CASPOC?
 Why is it fast and easy?
– Dedicated towards the special modeling and simulation
issues in Power Electronics and Electrical Drives
– Intuitive user interface for easy operation

Januari 2004 Simulation Research 4


Caspoc for Education
Overview
 Easy to learn and use
 Many Samples
 Educational workbooks
 Viewer

Januari 2004 Simulation Research 5


Caspoc for Education
Easy to use
 Short learning curve
 Many Samples
 Tutorials

Januari 2004 Simulation Research 6


Caspoc for Education
Samples
 Many samples on Power Electronics
 Many samples on Electrical drives
 Samples are available on the web
 New samples are constantly uploaded

Januari 2004 Simulation Research 7


Caspoc for Education
Educational example package
 Workbook on Power Electronics
 Workbook on Electrical Drives

 Samples are pre-programmed


 Questions and Remarks per sample

Januari 2004 Simulation Research 8


Caspoc for Education
Viewer
 Students can simulate for free at home using the
viewer

 Viewer can simulate /


animate all samples

 No License required
 Viewer can be downloaded for free from the web

Januari 2004 Simulation Research 9


Overview of the program
Overview
 Application Areas
 Everything in one work screen
 Fast simulation
 Interactive
 Animation

Januari 2004 Simulation Research 10


Overview of the program
Application areas
 Power Electronics
 Electrical Drives
 Power Systems
 Mechatronic systems

Januari 2004 Simulation Research 11


Overview of the program
Workscreen
 Everything in one schematic editor
– Circuit
– Blocks
– Code
– Simulation Results
– Animation Objects

Januari 2004 Simulation Research 12


Overview of the program
Fast Simulation
 Special program for Power Electronics Devices
– FAST Simulation
– No convergence problems
– Turning off inductor currents
– Switching capacitors parallel

Januari 2004 Simulation Research 13


Overview of the program
Interactive User Interface
 View results during the running simulation
 Change parameters and continue the simulation
 Interactive buttons and keys lets you change parameters during
the running simulation
– KEY, UPDOWN, ONOFF

Januari 2004 Simulation Research 14


Overview of the program
Animation
 Nodes are colored depending on the voltage
 Currents flow through wires are colored
 Signals in the block diagram are colored depending on the value
 Many animations objects
are moving rotating, etc

Januari 2004 Simulation Research 15


Features
Overview
 Model Power Circuits
 Model Block Diagram
 Add ANSII C code
 Custom Library blocks

Januari 2004 Simulation Research 16


Features
Power Circuit
 Model the electric circuit using electrical components
 Click and Drag components in the schematic
 Draw wires between components with one click!
 Add scopes to your circuit

Januari 2004 Simulation Research 17


Features
Block Diagram
 Model the control using basic analog blocks
 Many source signals and non-linear math. blocks
 Add scopes to view signals in your block diagram

Januari 2004 Simulation Research 18


Features
ANSII C Code
 Create custom blocks using C Code
 NO external compiler required
 Easy to build powerful custom analog blocks
 Flexible to create control blocks

Januari 2004 Simulation Research 19


Features
Library blocks
 Create custom blocks containing:
– circuit components
– block diagram
– C code
 Extensive library
– Many special blocks available
– All library blocks can be edited

Januari 2004 Simulation Research 20


Extended Features
Overview
– Coupling to Simulink
– Small Signal Analysis
– Web-enabled reports
– Control the simulation from a script
– Export of Spice netlist
– Export of Embedded C Code for microcontroller design
– Typecasting for fixed point simulation (controller design)
– Coupling to FEM/BEM field solvers

Januari 2004 Simulation Research 21


Extended Features
Coupling to Simulink
 Co-simulation with Matlab/Simulink
 Power Electronics in Caspoc, control in Simulink
 Couple to third-party tools in Simulink

Januari 2004 Simulation Research 22


Extended Features
Small-Signal analysis
 Applicable to any Power Circuit
 Especially for Switched Mode Power Supplies
 Calculate impedance and transfer functions
 No linear models required

Januari 2004 Simulation Research 23


Extended Features
Web-enabled reports
 Create web-enabled reports that include:
– Schematic

– Notes and
remarks

– Simulation
results from
the scopes

Januari 2004 Simulation Research 24


Extended Features
Control the simulation
 Run multiple simulations
 Vary parameters for each run
 Optimize parameters

Januari 2004 Simulation Research 25


Extended Features
Export Spice Netlist
 Create a Spice netlist from your Caspoc model
 Run Spice using initial conditions from a Caspoc
Simulation

Januari 2004 Simulation Research 26


Extended Features
Export of Embedded C Code
 Export of C Code from the block diagram
 Replace the analog block diagram by C Code

Januari 2004 Simulation Research 27


Extended Features
Typecasting
 Set the type of the signal before it is exported into embedded C Code
 Types:
– int, int8, int16, int32, int64, etc..
– short, long , etc..
– signed, unsigned , etc..
– double , etc..

Januari 2004 Simulation Research 28


Extended Features
Coupling to Fieldsolvers
 Import parameters in a .Model for:
• Inductance
• Capacitance
• etc...
 Import tabulated values:
• Force = F(position)
• Torque = F(angular position)
• Inductance = F(position)
• Inductance = F(position, current)
• Inductance = F(position, i1, i2, i3)

Januari 2004 Simulation Research 29


Modeling and Simulation
What is simulation?

 What can we model


– Complexity of the model
– Availability of parameter
 What can we simulate
– Large simulations take a lot of time
– Large simulations increase complexity and clarity

Januari 2004 Simulation Research 30


Modeling and Simulation
Simulation is just a tool!

 What is a model
– Reflection of the users imagination, how a
design should work
 What is a simulation
– Simulation is a prediction of what might
happen

Januari 2004 Simulation Research 31


Modeling and Simulation
Do we need simulation?

 Complexity
– Most designs are to complex to calculate by
hand
 Tool
– In simulation you can play with the design

Januari 2004 Simulation Research 32


Modeling and Simulation
What to model?

 Which systems?
 Which components?
 Schematic entry?

Januari 2004 Simulation Research 33


Modeling and Simulation
 Power Electronics converter is more than an
electrical circuit

Januari 2004 Simulation Research 34


Modeling and Simulation
 Electrical Drive is more than an electrical
machine

Januari 2004 Simulation Research 35


Modeling and Simulation
Multilevel modeling in CASPOC
 Power electronic circuit
 Electrical machine
 Mechanical load
 Source (Main or Generator)
 Control

Januari 2004 Simulation Research 36


Modeling and Simulation
Types of models in CASPOC
 Circuit components
 Block-diagram
 Modeling-
Language

Januari 2004 Simulation Research 37


Modeling and Simulation
How to couple the models?
 Measure voltage/current in the electric
circuit
 Control switches in the circuit
 Controlled voltage / current source
 MIMO Block-diagram interface to ML

Januari 2004 Simulation Research 38


Modeling and Simulation
Applications / Power Electronics
 Rectifier 1ph .. 3ph
 DC-DC Switched mode
 DC-AC / AC-AC
 Isolated DC Converters
 Resonant Converters
 Power Factor Correction

Januari 2004 Simulation Research 39


Modeling and Simulation
Applications / Electrical Drives

 DC-Drives
 AC-Drives
 Brushless DC Drives
 Stepper motors
 Switched Reluctance machines

Januari 2004 Simulation Research 40


Modeling and Simulation
Special models
 RMS / Average / PF
 Harmonics
 Mechanical Loads
 Control Blocks

 ab, dq Transformations
Januari 2004 Simulation Research 41
Modeling and Simulation
Simulation & convergence

 Fast because of
– Special semiconductor
switch models
– Multilevel approach
 No convergence problems because of
– Special semiconductor models
– Stable numerical method for the circuit analysis
Januari 2004 Simulation Research 42
Libraries
Example Library

 Free Example Library


– Basic DC converters, rectifiers and small DC drives
 Power Electronics Library
– 90+ examples of power electronics, ready to run
 Electrical Drives Library
– 70+ examples of electrical drives, ready to run

Januari 2004 Simulation Research 43


Animation
Visualizing simulation results

– Voltage, current or signal level indicated by color


– Node color: voltage level
– Component color: current level
– Block diagram color: signal level
– Components animation: motors, switches, lamps
– Object animation: crane, car, elevator, spindle, etc.

Januari 2004 Simulation Research 44


Animation
Importance of Animation

 Animation is not a toy!


 Teaching, current paths are visible
 gaining insight
 searching for failure modes
 understand principles and behavior

Januari 2004 Simulation Research 45


Animation Properties

 Different levels
for voltage,
current and
signals
 Display not
every time step

Januari 2004 Simulation Research 46


Example Simulation
Buck converter
 Circuit and
control in one
schematic
 ‘Scopes’ in
schematic
 Change model/
parameters during
simulation

Januari 2004 Simulation Research 47


Example Animation
Conveyor belt with Bang-Bang control
 Mechanical
animation
objects

 LED objects
indicate the
state of the
control

Januari 2004 Simulation Research 48


Example Animation
Three Level Inverter
 Current path
 Failure modes

Januari 2004 Simulation Research 49


Example
DC Shunt machine with crane
 Animation
object: crane
 Depending on
the angle, the
crane lifts the
load

Januari 2004 Simulation Research 50


Example
Switched Reluctance Machine
 Current control
 non-linear
inductance

Januari 2004 Simulation Research 51


Tutorials
Overview
 Basics
 Getting Started
 Various Tutorials

Januari 2004 Simulation Research 52


Tutorials
Basics
 Basic overview of useful commands and buttons to get started

 Learn the very basics

 HowTo.pdf Page 4

Januari 2004 Simulation Research 53


Tutorials
Getting Started
 Build a single phase rectifier and learn how to
– Build the circuit
– Build a block diagram
– Add scopes
– Set Simulation parameters
– Run the simulation
– Export the results to a text processor
 GettingStarted.html

Januari 2004 Simulation Research 54


Tutorials
Various tutorials
 SETTING THE MYDOCUMENTS DIRECTORY
– HowTo.pdf Page7
 Learn how to set the directory where you can store
your simulations

Januari 2004 Simulation Research 55


Tutorials
Various tutorials
 CREATE A REPORT FROM YOUR SIMULATION
– HowTo.pdf Page 20
 Learn how to create a web-enabled report from your
simulation results

Januari 2004 Simulation Research 56


Tutorials
Various tutorials
 MULTIPLE SIMULATIONS WITH PARAMETER
VARIATIONS
– HowTo.pdf Page 8
 Learn how to run multiple simulations and change
parameters for each simulation

Januari 2004 Simulation Research 57


Tutorials
Various tutorials
 EXPERIMENTER
– HowTo.pdf Page 13
 Learn how to create optimization scripts and
run multiple simulations from a C script

Januari 2004 Simulation Research 58


Tutorials
Various tutorials
 IDEAL SEMICONDUCTOR PARAMETERS
– HowTo.pdf Page 16
 Learn how to set the parameters for the build-
in ideal semiconductor models

Januari 2004 Simulation Research 59


Tutorials
Various tutorials
 .MODEL DATABASE
– HowTo.pdf Page 18
 Learn how to use parameters from a .model
database

Januari 2004 Simulation Research 60


Tutorials
Various tutorials
 CREATE A CSCRIPT
– HowTo.pdf Page 21
 Learn how to create custom blocks using C
code

Januari 2004 Simulation Research 61


Tutorials
Various tutorials
 SHARE VARIABLES AMONG CSCRIPTS
– HowTo.pdf Page 22
 Learn how to share variables among custom
blocks

Januari 2004 Simulation Research 62


Tutorials
Various tutorials
 HEATSINK MODELING
– HowTo.pdf Page 24
 Learn how to model a single heat sink

Januari 2004 Simulation Research 63


Tutorials
Various tutorials
 USER DEFINED FUNCTIONS
– HowTo.pdf Page 25
 Learn how to create custom blocks using
algebraic expressions

Januari 2004 Simulation Research 64


Tutorials
Various tutorials
 STORE FILES RELATED TO A PROJECT
– HowTo.pdf Page 26
 Learn how to organize your data belonging to
one project

Januari 2004 Simulation Research 65


Tutorials
Various tutorials
 MODELING LANGUAGE IN C CODE
– HowTo.pdf Page 28
 Learn how to use the Microsoft Visual C
compiler for creating custom blocks

Januari 2004 Simulation Research 66


Tutorials
Various tutorials
 GENERATE AUTO HTML REPORTS
– HowTo.pdf Page 32
 Learn how to create a set of reports from
simulations in one directory

Januari 2004 Simulation Research 67


Tutorials
Various tutorials
 SIMULINK – CASPOC COUPLING
– HowTo.pdf Page 33
 Learn how to couple Caspoc and Simulink

Januari 2004 Simulation Research 68


Tutorials
Various tutorials
 SMALL SIGNAL ANALYSIS
– HowTo.pdf Page 37
 Learn how to set up small-signal analysis
SCOPE1
L2
SMSG
+ 159.15494uH
SMSG1
B1
-
D1 C2 159.15494uF R2 5
+
V1 10
-GROUND

PWM11
0.5 D Y
F
10K

Januari 2004 Simulation Research 69


Tutorials
Various tutorials
 EXPORT EMBEDDED C CODE FROM THE BLOCK
DIAGRAM
– HowTo.pdf Page 41
 Learn how to export embedded C code from a block
diagram model

Januari 2004 Simulation Research 70

You might also like