An Introducion of PLECS
An Introducion of PLECS
An Introduction to PLECS
Introducing Plexim
An Introduction to
Key Features of PLECS Modeling, Simulation and the Operation of PLECS Thermal modeling Special Features of PLECS Solvers
WHO IS PLEXIM?
Independent company Spin-off from ETH Zurich Privately owned by founders Software PLECS sold since December 2002
Introducing PLEXIM
4/22/2013
Academia:
Aachen Aalborg Nottingham Virginia Tech
Automotive:
Bosch Chrysler Opel Skoda
Electronics:
Infineon Panasonic Philips Tyco
5
High Power:
ABB Bombardier GE Energy Siemens
6
Analysis tools
4/22/2013
SIMPLE TO USE
Drag and drop components
10
THERMAL MODELING
Look-up table approach for speed
PLECS SCOPE
Cursors RMS, Mean, Max, Min, Absolute Max Delta, THD, Fourier Analysis X-Y plot Export to .bmp, .pdf, .csv Copy to Clipboard: Traces and Data
DTC_scope.plecs
11
12
4/22/2013
PLECS BLOCKSET/STANDALONE
Available as Standalone or as a toolbox in Simulink
13
14
PLECS STANDALONE
An independent simulation tool. Compatible with PLECS blockset Key Features:
Control and circuit components Faster simulation thanks to an optimized solver Lower overall investment and maintenance cost
15
16
4/22/2013
17
18
Blockset
Standalone
PLECS Solver
MATLAB/Simulink
19
20
4/22/2013
behavioral
21
22
user
Simulation
PLECS
Transforming the model into mathematical equations Solving the equations with specified tolerances Providing numerical results
23
24
4/22/2013
PLECS Standalone
Circuit
Heat
Load
Component
Measurement
Reference
26
25
Simulation steps:
1160 153
Computation time:
0.6s 0.08s
27
28
Simplorer
Psim
4/22/2013
Switch conducting
Diode conducting
29
30
Fixed Time-Step
can speed up simulation for large systems hardware controls are often implemented in fixed time-step non-sampled switching events (diodes, thyristors) require special handling
31
32
4/22/2013
33
34
35
36
4/22/2013
zero-crossing zero-crossing Backward interpolation, Forward step Backward interpolation Forward step sync. with sampleBackward time interpolation, Forward step Backward interpolation, Forward step Diode 3 starts conducting Forward step sync. with sample Diode 2 stops conducting time
Non-sampled Non-sampled
Diode voltage
Non-sampled zero-crossing
35 37
38
39
40
10
4/22/2013
Thermal simulation
efficiency, junction & heat-sink temperatures
3_L_3Ph_IGCT.plecs
semiconductor cooling, average and peak temperatures, temperature cycles, choice of devices, average power dissipation
41
42
THERMA L SIMULATIONS
Semiconductor Losses Ideal Switches vs Continuous Switches Look-up Tables
Thermal Modeling
43
44
11
4/22/2013
SEMICONDUCTOR LOSSES
Switching Loss Conduction Loss
Gate signal
SWITCHING LOSSES
Switching energy loss dependent on:
blocking voltage, device current, junction temperature, gate drive EON = f(VCE, IC, TJ, RG)
Turn on
45 46
Turn off
VPK = 3800V
3.0
2.0
0.0
Courtesy ABB 5 10 tf 2.5s, ttail 7s
47
0.0
15 s
48
12
4/22/2013
Exact loss found using interpolation Note the voltage and current polarities! Only data-sheet losses used in thermal calculations Same procedure for EON, EREC and on-state Report generation for reliable documentation
5SNA 1500E330305_report.pdf
49
50
Off-state loss
negligible - low leakage current
51
52
13
4/22/2013
Datasheets
given for a specific gate resistance and stray inductance good approximations can be made by extrapolating manufacturers data (or asking for complete loss measurements)
53
54
POINTS TO NOTE
Thermal and electrical domains not coupled
Semiconductor losses from lookup tables dont appear in the electrical circuit Energy conservation may be achieved with extra feedback
THERMAL DOMAIN
Thermal circuit analogous to electrical circuit Thermal and electrical circuits solved simultaneously
Only when you design your equipment using data-sheet values can you ask for help from your supplier ! Otherwise, if you are not respecting his data-sheet he wont be willing to discuss your problem!
55
56
14
4/22/2013
Foster equivalent
Curve fitting approach based on heating and cooling characteristics No correspondence between Rth,n or Cth,n and the physical structure! Any modification of the system requires recalculation of all values
57
58
59
60
15
4/22/2013
61
62
CYCLE-AVERAGE LOSSES
Calculate average device losses for each device
Semiconductor losses dont appear in electrical circuit Conservation of energy can be maintained by subtracting thermal losses from electrical circuit
Average device losses
63
64
16
4/22/2013
65
66
THERMAL SIMULATIONS
Control Analysis Tools Newton-Raphson Analysis Magnetic Modeling
67
68
17
4/22/2013
ANALYSIS TOOLS
Control analysis tools
AC sweep impulse response analysis loop gain analysis
BuckOpenLoop.plecs
NEWTON-RAPHSON ANALYSIS
Steady-state analysis
This is done iteratively in PLECS by the Newton-Raphson method: xk+1 = xk J-1f(xk) where J is the Jacobian (determinant) of the Jacobian matrix of the n state variables (requires n+1 simulation runs)
69
70
71
72
18
4/22/2013
73
74
75
76
19
4/22/2013
77
78
79
80
20
4/22/2013
81
82
83
84
21
4/22/2013
85
86
87
88
22
4/22/2013
Solution:
create a periodic signal with a self-resetting integrator
89
90
MAGNETIC MODELING
Permeance-capacitance analogy
91
92
23
4/22/2013
SIMULATION SCRIPTING
Inbuilt scripting External scripting
Solvers
BuckParamSweep.plecs
93
94
OUTLINE
What are Solvers? Discrete Solvers
trapezoidal rule
SOLVERS
In a digital simulation, integration is numerically performed by starting with known initial conditions
Continuous solvers
Taylor series polynomial step-size control acceptable error tolerances: relative and absolute refining the display output
A time step is taken and some assumptions are made about the way a variable changes within this time step; the algorithm for doing this is called a Solver
The simplest solver is one which assumes a linear change of conditions within a time step; this is a reasonable assumption for a small step. This type is known as a Discrete Solver and it builds the computed function from a series of trapezoidal blocks
95
96
24
4/22/2013
CONTINUOUS SOLVER
We will see later that discrete solvers have limitations with regards to speed and accuracy. A non-linear interpolation between two points might allow a larger time step, depending on how closely the interpolating function matches the real response. Any waveform may be emulated by the sum of a sufficient number of simple mathematical functions (e.g. by sine waves, in the case of Fourier). Continuous Solvers, in fact, use the Taylor Series
97
98
99
100
25
4/22/2013
Exponential 5th order Taylor series representation At n = 8, perfect fit for -3 < x < 3 For -4 < x <4, a Taylor series to the 13th order is an accurate representation of y = sin(x)
1st order 3rd order 5th order 7th order 9th order 11th order 13th order y = sin(x)
101
102
ACCEPTABLE ERROR
Local error
difference between 4th and 5th order solutions
Acceptable error
defines the local error limit determined by tolrel except for small state values
Local error
Acceptable error
103
104
26
4/22/2013
TOLERANCES
Relative tolerance (tolrel) determines acceptable error limit when x approaches 0
start with 10-3 (0.1%) numerical limit is 10-16
105
106
Solver response
(tolrel = 1e-3)
107
108
27
4/22/2013
109
110
Continuous waveform
highest transient frequency determines the sample time set tsample < ttransient/10 for a ratio of 10, the integration error is approx -3% (underestimation)
Switched system
switches must be turned on at sample instants set tsample < tsw/100
111
112
28
4/22/2013
SUMMARY
Variable solvers are in general faster and more efficient
use the Refine Factor for smoother displays rather than reducing tolrel or time-step tolrel is typically set to 1e-3 to start with tolabs is best set to auto
Simulated current
Discrete: ts = 50s
113
114
CONCLUSIONS
Fast and efficient ideal switches Simple to use Drag & Drop Open component library customization of models Thermal modeling Look-up tables allow direct use of semiconductor data-sheets
Conclusions
Magnetic modeling Analysis tools fast calculation of steady state and frequency response Custom control code efficient controller design Simulation scripting fast performance analysis PLECS Scope high performance, user-friendly easy waveform and data export PLECS Blockset & PLECS Standalone simple model exchange (inter-company)
115
116
29
4/22/2013
Southeast-Asia Authorized Agents: Infomatic Pte. Ltd. Olivier WU TEL: +65 3158 2943 FAX: +65 3158 2190 Mobile: +65 8478 0572 Email: olivier.wu@infomatic.com.sg Web: www.infomatic.com.sg
117
Vietnam Authorized Agents: Smart Green Solutions JSC 27/35 Cong Hoa Street, Ward 4, District Tan Binh Ho Chi Minh City, Vietnam. TEL: +84 8 38112941 FAX: +84 8 38112941 Email: info@sgs-jsc.com Web: www.sgs-jsc.com
30