modelHBridge_TrianglePWM_RL

H bridge DC/DC converter with R-L load

Extends from ExampleTemplates.HBridge (H bridge DC/DC converter), Modelica.Icons.Example (Icon for runnable examples).

Information

This is the same example as HBridge_RL but using a triangle (instead of a sawtooth) as pwm reference signal. This enables an easy sampling of the current in the middle of the pwm period, which delivers with good approximation the mean current: Compare meanCurrent.y and zeroOrderHold.y. For discrete or quasi-continuous control it is essential to sample the correct mean current with low effort once during the pwm period.

Parameters

TypeNameDefaultDescription
SI.Frequencyf (from HBridge)1000Switching frequency
SI.ResistanceR100Resistance
SI.InductanceL1Inductance

Components

TypeNameDefaultDescription
PowerConverters.DCDC.HBridgehbridge (from HBridge)
Modelica.Electrical.Analog.Sources.ConstantVoltageconstantVoltage (from HBridge)
PowerConverters.DCDC.Control.SignalPWMsignalPWM (from HBridge)
Modelica.Electrical.Analog.Basic.Groundground (from HBridge)
Modelica.Electrical.Analog.Sensors.CurrentSensorcurrentSensor (from HBridge)
Modelica.Electrical.Analog.Sensors.VoltageSensorvoltageSensor (from HBridge)
Modelica.Blocks.Math.MeanmeanCurrent (from HBridge)
Modelica.Blocks.Math.MeanmeanVoltage (from HBridge)
Modelica.Electrical.Analog.Basic.Resistorresistor
Modelica.Electrical.Analog.Basic.Inductorinductor
Blocks.Discrete.ZeroOrderHoldzeroOrderHold