Package Modelica.​Electrical.​PowerConverters.​DCDC.​Control
Control components for DC to DC converters

Information

Currently there is only one PWM method provided in this library.

Extends from Modelica.​Icons.​Package (Icon for standard packages).

Package Contents

NameDescription
SignalPWMGenerates a pulse width modulated (PWM) boolean fire signal
VoltageToDutyCycleLinearly transforms voltage to duty cycle

Model Modelica.​Electrical.​PowerConverters.​DCDC.​Control.​SignalPWM
Generates a pulse width modulated (PWM) boolean fire signal

Information

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.

Fig. 1: Firing (fire) and inverse firing (notFire) signal of PWM control; d = duty cycle; f = switching frequency

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).

Parameters

TypeNameDefaultDescription
BooleanuseConstantDutyCycletrueEnables constant duty cycle
RealconstantDutyCycle0Constant duty cycle
Frequencyf1000Switching frequency
TimestartTime0Start time

Connectors

TypeNameDescription
input RealInputdutyCycleDuty cycle
output BooleanOutputfireFiring PWM signal
output BooleanOutputnotFireFiring PWM signal

Block Modelica.​Electrical.​PowerConverters.​DCDC.​Control.​VoltageToDutyCycle
Linearly transforms voltage to duty cycle

Information

This model linearly transforms the input voltage signal into a duty cycle. For the unipolar case the input voltage range is between zero and vMax. In case of bipolar input the input voltage is in the range between -vMax and vMax.

Parameters

TypeNameDefaultDescription
BooleanuseBipolarVoltagetrueEnables bipolar input voltage range
BooleanuseConstantMaximumVoltagetrueEnables constant maximum voltage
VoltagevMax0Maximum voltage range mapped to dutyCycle = 1

Connectors

TypeNameDescription
input RealInputvVoltage
output RealOutputdutyCycleDuty cycle
input RealInputvMaxExtExternal maximum voltage