H-bridge
Four-quadrant DC chopper: fire_p switches out+ and fire_n switches out− between the input rails; drive fire_n with the complement of fire_p for bipolar switching.
- Boolean
- electrical
- Modelica Standard Library
- 6 ports
- 2 parameters
hBridgeLibraryConvertersDescription
A four-quadrant DC chopper made of two half-bridge legs across the input. Leg p drives dc_p2 and leg n drives dc_n2; each leg has two transistors with antiparallel diodes.
Each fire input controls one leg: true turns on its upper transistor, false its lower transistor. The complement is generated inside, so a leg cannot short the input.
Example
H-bridge and single-phase inverter An H-bridge driving an RL load with 75 % duty, and an inverter leg making 50 Hz AC from a split supply.
Also in this example:DC voltageVoltage sensorCurrent sensorConstantGroundSine waveResistorInductorPWM generatorInverter (1-phase)
Ports
Inputs 2
-
f+
fire_pLeg p command: true connects dc_p2 to dc_p1, false to dc_n1.
-
f−
fire_nLeg n command: true connects dc_n2 to dc_p1, false to dc_n1.
Conserving terminals 4
-
in+
dc_p1DC supply positive terminal.
-
in−
dc_n1DC supply negative terminal.
-
out+
dc_p2Output terminal of leg p.
-
out−
dc_n2Output terminal of leg n. Not connected to dc_n1.
Parameters
-
Transistor on resistance
RonTransistor0.00001 Ω≥ 0
On resistance of each transistor, in ohms. 0 or more.
-
Diode on resistance
RonDiode0.00001 Ω≥ 0
On resistance of each freewheeling diode, in ohms. 0 or more.
Equations
v2 = dc_p2.v − dc_n2.v, v1 = dc_p1.v − dc_n1.v fire_p and not fire_n: v2 = +v1; fire_n and not fire_p: v2 = −v1; fire_p = fire_n: v2 = 0 Bipolar PWM (fire_n = not fire_p), duty cycle d: mean(v2) = (2d − 1) · v1
Implementation
Modelica.Electrical.PowerConverters.DCDC.HBridgeAssumptions and limitations
- Ideal switches: transistors are GTO-type switches that conduct only forward, and diodes switch at 0 V. Off conductance is fixed at 10 µS and knee voltages at 0 V. No switching times, reverse recovery, or conduction voltage drop beyond the on resistance.
- No dead time between the upper and lower switch of a leg.
Tips
- For bipolar PWM, drive fire_p from fire and fire_n from notFire of one PWM generator; a duty cycle of 0.5 gives zero mean output.
See also
Select a block in Gradara and press F1 to open its page offline.