PLECS
From Wikipedia, the free encyclopedia
PLECS (Piece-wise Linear Electrical Circuit Simulation) is a Simulink toolbox for system-level simulations of electrical circuits. It is especially designed for power electronics but can be used for any electrical network.
[edit] Integration with MATLAB/Simulink
The program Simulink is ideally suited for the simulation of controls. Therefore, Simulink is also a convenient tool for the design of closed loop controlled electrical systems. PLECS enhances Simulink with the capability to simulate electrical circuits directly. The user can simply enter a circuit as a schematic of electrical components. At Simulink block level the circuit is represented as a subsystem, so the user can build controls and other non-electrical elements around it and take full advantage of the Simulink environment and its toolboxes.
The concept of integration into Simulink has the advantage that only the part of the system in which electrical units are of interest needs to be modeled as an electrical circuit. The simulation of all non-electrical parts such as controls and mechanics should be done in Simulink.
Matlab can be employed to compute circuit parameters and to post process and visualize the simulation results.
[edit] Semiconductors modeled as ideal switches
Most circuit simulation programs model switches as highly nonlinear elements. Due to steep voltage and current flanks, the simulation becomes slow when switches are toggled. In the most simple case a switch is modeled as a variable resistance that changes between a very small and a very large value. In other cases, it is represented by a sophisticated semiconductor model.
When simulating complex power electronic systems, however, the processes during switching are of little interest. Here, it is more appropriate to use ideal switches that toggle instantaneously between a closed and an open circuit. This approach, which is implemented in PLECS, has two major advantages: Firstly, it yields systems that are linear between two switching instants. Secondly, to handle discontinuities at the switching instants only two integration steps are required. Both speed up the simulation considerably.