Package Modelica.Electrical.PowerConverters.DCDC.Control
Currently there is only one PWM method provided in this library.
Extends from Modelica.Icons.Package (Icon for standard packages).
| Name | Description |
|---|---|
SignalPWM | Generates a pulse width modulated (PWM) boolean fire signal |
Voltage2DutyCycle | Linearly transforms voltage to duty cycle |
Model Modelica.Electrical.PowerConverters.DCDC.Control.SignalPWM
This controller can be used both for DC/DC and AC/DC converters.
The signal input of the PWM controller is the duty cycle; the duty cycle is the ratio of the on time
to the switching period. The output firing signal is strictly determined by the actual duty cycle, indicated as d in Fig. 1.
|
The firing signal is generated by comparing the sampled duty cycle input with a periodic saw tooth signal [Williams2006].
Extends from Modelica.Electrical.PowerConverters.Icons.Control (Control icon).
| Type | Name | Default | Description |
|---|---|---|---|
Boolean | useConstantDutyCycle | true | Enables constant duty cycle |
Real | constantDutyCycle | 0 | Constant duty cycle |
Frequency | f | 1000 | Switching frequency |
Time | startTime | 0 | Start time |
| Type | Name | Description |
|---|---|---|
input RealInput | dutyCycle | Duty cycle |
output BooleanOutput | fire | Firing PWM signal |
output BooleanOutput | notFire | Firing PWM signal |
Block Modelica.Electrical.PowerConverters.DCDC.Control.Voltage2DutyCycle
Transforms the input voltage signal into a duty cycle:
reciprocal = false and useBipolarVoltage = false: v/VLim = dutyCyclereciprocal = false and useBipolarVoltage = true : v/VLim = 2*dutyCycle - 1reciprocal = true: v/VLim = 1/(1 - dutyCycle)| Type | Name | Default | Description |
|---|---|---|---|
Boolean | reciprocal | false | Enables reciprocal formula between voltage and duty cycle |
Boolean | useBipolarVoltage | true | Enables bipolar input voltage range |
Boolean | useConstantVoltageLimit | true | Enables constant voltage limit |
Voltage | VLim | Voltage range limit mapped to dutyCycle = 1 resp. 0 |
| Type | Name | Description |
|---|---|---|
input RealInput | v | Voltage |
output RealOutput | dutyCycle | Duty cycle |
input RealInput | vLim | Voltage limit |