Implement a half-bridge modular multilevel converter

Simscape / Electrical / Specialized Power Systems / Fundamental Blocks / Power Electronics

The Half-Bridge MMC block implements a half-bridge modular multilevel converter. The converter consists of multiple series-connected power modules. Each power module consists of one half-bridge and one capacitor on the DC side.

You can choose from four model types:

**Switching devices**— The converter is modeled with IGBT/diode pairs. A multilevel PWM generator produces firing pulses (0/1 signals), which trigger switching in the converter.**Switching function**— The converter is based on a switching-function model. The model uses two voltage sources and two diodes on the AC side, and two current sources on the DC side.The converter is controlled by firing pulses produced by a PWM generator (0/1 signals) or by firing pulses averaged over a specified period (PWM averaging: signals from 0 through 1). Both modes of operation produce harmonics normally generated by a PWM-controlled converter and also correctly simulate the rectifying operation and blanking time. This model type is suitable for real-time simulation.

**Average model (Uref-controlled)**— The converter is modeled using a switching function model directly controlled by the reference voltage signals. A PWM generator is not required. This model provides the fastest simulations.**Aggregate model**— The converter is modeled using a switching-function model where only one equivalent module is used to represent all modules. This aggregate model represents control system dynamics, converter harmonics, and circulating currents phenomena. However, because a single virtual capacitor represents all capacitors of one arm, the model assumes that capacitor voltages of all power modules are balanced. As a result, a capacitor voltage-balancing scheme cannot be simulated. The aggregate model runs much faster than a detailed model that would use two switching devices and one capacitor for each individual power module of one arm. This aggregate model is also suitable for real-time simulation.

**Model type**Specify the model type to use:

`Switching devices`

(default)`Switching function`

`Average model (Uref-controlled)`

`Aggregate model`

**Number of power modules**Specify the number of series-connected power modules that are in the converter. The default value is

`1`

.**Capacitor value (F)**Specify the capacitance, in farads, of the capacitors connected on the DC side of each power module. You can specify a single value that sets all the capacitances to the same value, or specify a vector containing different capacitance values for every power module. The default value is

`10e-3`

.**Capacitor initial voltage (V)**Specify the capacitor initial voltage, in volts, of the capacitors connected on the DC side of each power module. You can specify a single value that sets all the capacitor initial voltage to the same value, or specify a vector containing different initial voltage for every power module. The default value is

`1000`

.**Device on-state resistance (Ohms)**Internal resistance of the switching devices, in ohms. This parameter is available only when you set the

**Model type**parameter to`Switching devices`

. The default value is`1e-3`

.**Snubber resistance (Ohms)**The snubber resistance, in ohms. To eliminate the snubbers, set the snubber resistance to

`inf`

. This parameter is available only when you set the**Model type**parameter to`Switching devices`

. The default value is`1e6`

.**Snubber capacitance (F)**The snubber capacitance, in farads. To eliminate the snubbers, set the snubber capacitance to

`0`

. This parameter is available only when you set the**Model type**parameter to`Switching devices`

. The default value is`inf`

.**Diode on-state resistance (Ohms)**Internal resistance of the diodes, in ohms. This parameter is available only when you set the

**Model type**parameter to`Switching function`

,`Average model (Uref-controlled)`

, or`Aggregate model`

. The default value is`1e-3`

.**Diode snubber resistance (Ohms)**The snubber resistance, in ohms. To eliminate the snubbers, set the snubber resistance to

`inf`

. This parameter is available only when you set the**Model type**parameter to`Switching function`

,`Average model (Uref-controlled)`

, or`Aggregate model`

. The default value is`1e6`

.**Diode snubber capacitance (F)**The snubber capacitance in farads. To eliminate the snubbers, set the snubber capacitance to

`0`

. This parameter is available only when you set the**Model type**parameter to`Switching function`

,`Average model (Uref-controlled)`

, or`Aggregate model`

. The default value is`inf`

.**Diode forward voltage (V)**Forward voltage, in volts, across the diode when it is conducting. This parameter is available only when you set the

**Model type**parameter to`Switching function`

,`Average model (Uref-controlled)`

, or`Aggregate model`

. The default value is`1e-3`

.**Sample time (s)**Specify the sample time of the block. To implement a continuous block, set to

`0`

.This parameter is available only when you set the

**Model type**parameter to`Switching function`

,`Average model (Uref-controlled)`

, or`Aggregate model`

. The default value is`10e-6`

.

`g`

Vectorized gating signal that controls the converter. The gating signal contains the firing pulses to control two switches at each power module in the converter (double the

**Number of power modules**pulses). This port is visible only when you set the**Model type**parameter to`Switching devices`

or`Switching function`

.`Uref`

Vectorized reference voltage signal that controls the converter. The vectorized signal contains one reference voltage for each power module in the converter. This port is visible only when you set the

**Model type**parameter to`Average model (Uref-controlled)`

.`N`

Vectorized signal of two elements [

*N_on*,*N_blk*].*N_on*represents the number of power modules in the*ON*state, and*N_blk*the number of power modules in the blocked state.The number of power modules in the blocked state is normally set to zero for a nominal operation of the converter. The number of power modules in the

*ON*state is obtained by summing all the pulses that trigger the upper switching devices (Q1) that are in the*ON*state.*N_blk*must be equal to`0`

if the converter is deblocked and equal to the number of power modules if blocked. Then, as for the Average model, it is not possible to block an individual module.This port is visible only when you set the

**Model type**parameter to`Aggregate model`

.`BL`

You can block all firing pulses to the converter by applying a scalar signal value of 1 at the

`BL`

input. It is not possible to block an individual module. When the input signal is`1`

, all modules in the MMC are blocked.`1`

Output terminal 1 of the converter.

`2`

Output terminal 2 of the converter.

`m`

Measurement signal containing the voltage of capacitors connected on the DC side of each power module. If you set the

**Model type**parameter to`Aggregate model`

, the measurement has only one element that gives the average value of all the capacitors.