Choose Blocks to Model Power Electronic Converters
The Simscape™ Electrical™ libraries include many blocks that you can use to model power electronic converters. You must choose a block that has sufficient modeling detail for the engineering design questions that you need to answer. It is also important not to use more detail than you need, because higher-fidelity models slow down simulation and are more complex to parameterize. The right block to use therefore depends on the level of complexity that you need to meet your design goals.
First, you need to determine whether to use a prebuilt converter block or to build your converter model from the fundamental components. The best approach depends on whether one of the prebuilt converter blocks supports your converter topology at the level of fidelity you need. If you use a prebuilt converter, you then need to:
Choose a mathematical model with the right level of complexity.
Select the right block to model your converter topology using the mathematical model you have chosen.
Choose Discretes or Prebuilt Converter Blocks
In Simscape Electrical, there are two approaches that you can use to build a model of a power electronic converter:
Use a prebuilt converter — Use a block in the Simscape > Electrical > Semiconductors & Converters > Converters library.
Build your converter model from fundamental components, also known as discretes.
Use blocks in the Simscape > Electrical > Semiconductors & Converters library to model the semiconductor devices, such as transistors and diodes.
Use blocks in the Simscape > Electrical > Passive library to model the passive reactive components such as inductors and capacitors.
Using prebuilt converters is the simplest approach. Use this approach when possible. The Converters sublibrary includes blocks that can model a wide range of converter topologies. Prebuilt converters and discrete semiconductors both support multiple levels of fidelity. However, only discretes support the highest level of fidelity. Use discretes only if you are modeling an uncommon topology that prebuilt converters do not support or if you need a very high level of fidelity.
The simplest models that prebuilt converter blocks use are behavioral and average-value models. These models exclude switching events and function based on power balance. Algebraic equations relate the converter output to the duty cycle, voltage reference, or current reference. The main advantage of these models is that they simulate very rapidly. Use these models for system-level applications such as designing outer-loop controllers or optimizing the systems in which you deploy power electronics. Behavioral and average-value models are very versatile. Because these models function based on a simple power balance, the exact circuit configuration is often unimportant. For example, the DC-DC Converter block uses a behavioral model. You can use this block to model a:
Synchronous or nonsynchronous buck converter
Synchronous or nonsynchronous boost converter
Four-switch buck-boost converter
Dual active bridge converter
Isolated or nonisolated bidirectional DC-DC converter
Because these models are so versatile, you can find a prebuilt converter block to represent almost any converter topology at this level of fidelity. Use prebuilt converters, not discretes, for system-level applications.
Prebuilt converters also support more complex models that you can use for converter-level applications, such as selecting manufactured components or calculating switching and conduction losses. These models are, in increasing order of complexity:
Equivalent models
Averaged switching models
Piecewise linear (PWL) switching models
You learn more about these models and when to use each one in the next section, Choose Prebuilt Converter Model. The important thing to appreciate now is that the blocks that support these models use equations that, unlike those used by behavioral models, are valid only for a specific equivalent circuit. Prebuilt converter blocks supports many common topologies at these fidelity levels. The best approach, if you can, is to use a prebuilt converter block. If you have an uncommon topology, that prebuilt converters do not support, you need to use discretes. You learn which topologies prebuilt converter blocks support at these levels of fidelity in the final section, Choose Prebuilt Converter Block.
Only discretes support the highest level of fidelity. For switch-level applications, like designing gate drives, you need to use discretes.
This table summarises the best approach to modeling converters for common simulation goals.
Model Scope | Goals | Models |
---|---|---|
System level |
| If a prebuilt converter block supports your topology, use a prebuilt converter block that uses a behavioral or average-value model. For multilevel inverters only, use a prebuilt converter block that uses an equivalent model with waveform control. You can find a prebuilt converter block that supports almost any topology at this level of fidelity. However, if a prebuilt converter block does not support your topology, you can:
|
Converter level |
| If a prebuilt converter block supports your topology, use a prebuilt converter block that uses one of these models:
If Simscape does not support one of these models for your topology, you can use a model with a higher level of fidelity. For example, if you want to use an equivalent model but Simscape does not support it, you can use a averaged switching model instead. If a prebuilt converter block does not support your topology, at any of these fidelity levels, build your converter model from discrete components. Use low-fidelity semiconductor models such as the MOSFET (Ideal, Switching) block. |
Switch level |
| Build your converter model from discrete components. Use high-fidelity semiconductor models such as the N-Channel MOSFET block. |
Choose Discrete Semiconductors
The remainder of this guide focuses only on prebuilt converter blocks. If you need to model your converter using discretes, see Choose Blocks to Model Semiconductor Devices for more information about choosing blocks with the right level of complexity. Alternatively, you can learn more from the examples in this table.
Converter Examples Using Discretes | |
---|---|
Low-Fidelity Models for System-Level and Converter-Level Applications | High-Fidelity Models for Switch-Level Applications |
| |
DC-DC LLC Converter |
Choose Prebuilt Converter Model
This table compares the characteristics of the different models that prebuilt converter blocks support. The models become more complex as you move towards the right from behavioral and average-value models towards PWL switching models. More complex models incorporate more physics but take longer to simulate. Use this table to help you decide which model you need. If you are still not sure which model to use, a good approach is to start with a simple model and gradually add complexity if you need more detailed results. If a block supports both the equivalent and PWL switching models, you can easily switch between the two models, simply by changing the Fidelity level parameter value because both models use PWM signals as the driving signals.
Model | ||||
---|---|---|---|---|
Behavioral and Average-Value | Equivalent Model - PWM Controlled | Averaged Switching | PWL Switching | |
Model description | These very simple models exclude switching and function based on power balance, allowing them to simulate rapidly. Algebraic equations typically relate the converter output to the duty cycle or voltage reference. Some behavioral and average-value models optionally include dynamics, such as LC. | These simple models calculate the voltage and current waveforms at the converter level using PWM signals, allowing them to simulate quickly. The models do not include protection diodes or power dissipation. | These models average the effect of switching over one or more switching periods without modeling switching events. The models apply at the converter level, utilizing gate signals to calculate voltage and current waveforms. You can average the input signal, enabling model undersampling. An averaged switch can often function with modulation waveforms or duty cycles but this approach is not the most efficient. These models include protection diodes with no dynamics but do not include power dissipation. | These models incorporate models of the individual switching devices that use a piecewise-linear on-state I-V curve. |
Goals |
|
|
|
|
Driving signals |
|
|
|
|
Models individual switches | No | No | No | Yes |
Models protection diodes | No | No | Yes, with no charge dynamics. | Yes, with optional charge dynamics. |
Models switching events | No | Yes | Yes, for PWM signals only. | Yes |
Models harmonics | No | Yes | Yes, for PWM signals and averaged pulses only. | Yes |
Suitable for linearization | Yes | No | Yes, for averaged pulses, modulation waveforms, and duty cycle only. | No |
Implementation | Use a prebuilt converter block that exclusively uses a behavioral or average value model. | Use a prebuilt converter block that supports the Fidelity
level parameter and set this parameter to
Equivalent model - PWM
Controlled . | Use a prebuilt converter block that supports the Switching
device parameter and set this parameter to
Averaged Switch . | Use a prebuilt converter block that supports the Switching device parameter and set this parameter to one of these options:
|
For more information about the differences between averaged switching and PWL switching, see these examples:
Power Converter Model Fidelity Comparison — This example also includes the equivalent model option.
To design controllers using classical control theory concepts, such as gain and phase margin, you need a linearized model. You cannot linearize equivalent models or PWL models exactly because of the discontinuities in the voltage waveform, at each switching event. For more information about linearizing converter models and designing controllers for linearized converter models, see the Linearize DC-DC Converter Model and Design PI Controller for DC-DC Converter examples, respectively.
You can also use PWL switching models to simulate the sudden stop of a converter by using zeros for the driving signals.
Choose Prebuilt Converter Block
The tables in this section show the converter blocks that model different topologies at each level of fidelity. Use these tables to select the right block to model your converter. For more information about a specific converter topology and an equivalent circuit diagram, see the block reference page for blocks that support equivalent models with PWM Control, averaged switching, or PWL switching.
DC-DC Converters
You can categorize DC-DC converter topologies based on quadrant operation. This figure shows how each quadrant describes whether the output currents and voltage are positive or negative.
Converters operate in one or more of these quadrants depending on the application requirements. For example, a nonsynchronous buck converter operates only in the first quadrant, while a fully-controlled converter like a four-quadrant chopper can operate in all four quadrants, providing full control over the direction and magnitude of power flow.
If you want to use a behavioral or average-value model of a DC-DC converter, you often have a choice between the Average-Value DC-DC Converter block and the DC-DC Converter block. The Average-Value DC-DC Converter block is simpler and easier to parameterize but has fewer customization options. Use the DC-DC Converter block if you want to model voltage droop or open-circuit faults. You can also use this block if you need more a more detailed efficiency model that includes a dependency on voltage or temperature. If you do not need these options, use the Average-Value DC-DC Converter block.
First Quadrant
Converter Topology | Block | |||
---|---|---|---|---|
Behavioral and Average-Value | Equivalent Model - PWM Controlled | Averaged Switching | PWL Switching | |
Class A chopper |
| Not supported |
|
|
Nonsynchronous buck converter |
| Not supported |
|
|
Nonsynchronous boost converter | Not supported |
|
|
Second Quadrant
Converter Topology | Block | |||
---|---|---|---|---|
Behavioral and Average-Value | Equivalent Model - PWM Controlled | Averaged Switching | PWL Switching | |
Class B chopper |
| Not supported |
|
|
First and Second Quadrants
Converter Topology | Block | |||
---|---|---|---|---|
Behavioral and Average-Value | Equivalent Model - PWM Controlled | Averaged Switching | PWL Switching | |
Class C chopper |
| Not supported |
|
|
Synchronous buck converter |
| Not supported |
|
|
Synchronous boost converter | Not supported |
|
| |
Four-switch buck-boost converter | Not supported |
|
| |
Nonisolated bidirectional DC-DC converter |
|
|
| |
Dual active bridge converter |
|
|
| |
Isolated bidirectional DC-DC converter | Not supported |
|
|
Third Quadrant
Converter Topology | Block | |||
---|---|---|---|---|
Behavioral and Average-Value | Equivalent Model - PWM Controlled | Averaged Switching | PWL Switching | |
Buck-boost converter inverting topology | Not supported | Not supported |
|
|
First and Fourth Quadrants
Converter Topology | Block | |||
---|---|---|---|---|
Behavioral and Average-Value | Equivalent Model - PWM Controlled | Averaged Switching | PWL Switching | |
Class D chopper |
| Not supported |
|
|
Four Quadrants
Converter Topology | Block | |||
---|---|---|---|---|
Behavioral and Average-Value | Equivalent Model - PWM Controlled | Averaged Switching | PWL Switching | |
Class E chopper |
|
|
|
|
DC-AC Converters
Converter Topology | Block | |||
---|---|---|---|---|
Behavioral and Average-Value | Equivalent Model - PWM Controlled | Averaged Switching | PWL Switching | |
Single-phase inverter |
|
|
|
|
Three-phase inverter |
The Average-Value Inverter (Three-Phase) block is uncontrolled. You can control the Average-Value Voltage Source Converter (Three-Phase) block using a modulation waveform or the magnitude and phase for frequency and time simulation. |
|
|
|
Multilevel inverter |
|
|
|
|
AC-DC Converters
The Average-Value Voltage Source Converter and Average-Value Voltage Source Converter (Three-Phase) blocks support frequency and time simulation.
Converter Topology | Block | |||
---|---|---|---|---|
Behavioral and Average-Value | Equivalent Model - PWM Controlled | Averaged Switching | PWL Switching | |
Single-phase uncontrolled rectifier | Not supported |
| Not supported |
|
Three-phase uncontrolled rectifier |
| Not supported |
The Rectifier (Three-phase) block is a more complex block than the Converter (Three-Phase) block. The Converter (Three-Phase) block can model a passive rectifier or a switch rectifier with bidirectional power flow. The Rectifier (Three-Phase) block models a passive rectifier with 6 diodes and unidirectional power flow. | |
Single-phase controlled rectifier |
|
|
|
|
Three-phase controlled rectifiers |
The AC-DC Converter (Three-Phase) block is simpler to parameterize and typically simulates faster than the Average-Value Voltage Source Converter (Three-Phase) block. You control the AC-DC Converter (Three-Phase) using the reference voltage. You control the Average-Value Voltage Source Converter (Three-Phase) block using modulation waves or the magnitude and phase for frequency and time simulation. Use the Average-Value Voltage Source Converter (Three-Phase) to model power losses or bidirectional power flow. Otherwise, the AC-DC Converter (Three-Phase) block is usually the better option. |
|
|
|
AC-AC Converters
To convert from AC to AC, you can connect two converter blocks: one to convert from AC to DC and another to convert from DC to AC. You can also can use the Bidirectional DC-DC Converter block to model a dual active bridge converter or use the Four-Quadrant Chopper block.
The Three-Phase Bridge Cycloconverter example shows how to lower the frequency of an AC input voltage by using six Converter (Three-Phase) blocks.
See Also
Four-Quadrant Chopper | Average-Value DC-DC Converter | DC-DC Converter