SimPowerSystems    

Simulating with Continuous Integration Algorithms

Simulink provides a variety of solvers. Most of the variable-step solvers work well with linear circuits. However circuits containing nonlinear models, especially circuits with circuit breakers and power electronics, require stiff solvers.

Choosing an Integration Algorithm

Fastest simulation speed is usually achieved with ode23tb or ode15s with default parameters.

Solver
ode23tb or ode15s
Relative tolerance
1e-3
Absolute tolerance
auto
Maximum step siz
auto
Initial step size
auto
Maximum order
(for ode15s) = 5

Normally, you can choose auto for the absolute tolerance and the maximum step size. In some occasions you might have to limit the maximum step size and the absolute tolerance. Selecting too small a tolerance can slow down the simulation considerably. The choice of the absolute tolerance depends on the maximum expected magnitudes of the state variables (inductor currents and capacitor voltages). For example, if you work with high-power converters where expected voltage and currents are thousands of volts and amperes, an absolute tolerance of 0.1 or even 1.0 should be sufficient. If you are working with low-power circuits involving maximum values of 100 V and 10 A, you should use a smaller absolute tolerance, such as 0.001 or 0.01.

Simulating Switches and Power Electronic Devices

Two methods are used for simulation of switches and power electronic devices:

You have therefore the choice to simulate diodes and thyristors with or without Lon internal inductance. In most applications, it is not necessary to specify an inductance Lon. However, for circuit topologies resulting in zero commutation or overlap angle, you have to specify a switch inductance Lon in order to help commutation.

Consider for example the circuit shown in the following figure. This circuit is available in the power_rectifier_ideal model. The thyristor bridge is fed from an infinite source (zero impedance) so that the commutation between thyristors is quasi instantaneous.

Figure 4-3: Three-Phase Thyristor Rectifier on Infinite Source

If you simulate this circuit without internal thyristor inductances (Lon = 0), observe high current spikes flowing in the three lines. This happens because during commutation two thyristors connected to the same positive or negative terminal of the bridge are in conduction for a short period of time, applying a line-to-line short circuit on the source (see Figure 4-4 following). During commutation, the current is limited only by the internal resistance of thyristors (with Ron = 0.01 ohms, the current reaches 7.35 kA (208* *sin(30o) / (2*0.01) or 245 times the normal DC current of 30 A). These short circuits can be avoided by using a small Lon = 1 µH in the thyristor model. If you repeat the simulation, you get square current waveforms with a peak value of 30 A.

If you zoom in on the line current during a commutation, you discover that the commutation is not instantaneous. The commutation time depends on the Lon value and the DC current.

Figure 4-4: Source Currents and DC Load Voltage with Lon = 0 and Lon = 1 µH


  Choosing an Integration Method Simulating Discretized Electrical Systems 

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS