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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Frequency | f (from HBridge) | 1000 | Switching frequency |
| SI.Resistance | R | 100 | Resistance |
| SI.Inductance | L | 1 | Inductance |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| PowerConverters.DCDC.HBridge | hbridge (from HBridge) | ||
| Modelica.Electrical.Analog.Sources.ConstantVoltage | constantVoltage (from HBridge) | ||
| PowerConverters.DCDC.Control.SignalPWM | signalPWM (from HBridge) | ||
| Modelica.Electrical.Analog.Basic.Ground | ground (from HBridge) | ||
| Modelica.Electrical.Analog.Sensors.CurrentSensor | currentSensor (from HBridge) | ||
| Modelica.Electrical.Analog.Sensors.VoltageSensor | voltageSensor (from HBridge) | ||
| Modelica.Blocks.Math.Mean | meanCurrent (from HBridge) | ||
| Modelica.Blocks.Math.Mean | meanVoltage (from HBridge) | ||
| Modelica.Electrical.Analog.Basic.Resistor | resistor | ||
| Modelica.Electrical.Analog.Basic.Inductor | inductor | ||
| Blocks.Discrete.ZeroOrderHold | zeroOrderHold |