comp_PWM (method)

comp_volt_PWM_NUM(Tpwmu, freq0, fmode, fswimode, fswi, qs, Vdc1, U0, rot_dir, type_DPWM: int, PF_angle=0, is_plot: bool = False, is_sin=True, fswi_max=0, freq0_max=0, type_carrier=0)[source]

Generalized DPWM using numerical method according to ‘Impact of Modulation Schemes on DC-Link Capacitor of VSI in HEV Applications’ Tpwmu : vector

TIME VECTOR

freq0: float

fundamental frequency

fswi: float

switching frequency

qs: int

number of phases

Vdc1: float

bus voltage

U0: float

Phase Voltage

rot_dir: int

rotation direction

type_DPWMint

0: GDPWM 1: DPWMMIN 2: DPWMMAX 3: DPWM0 4: DPWM1 5: DPWM2 6: DPWM3 7: SVPWM 8: SPWM

type_carrier: int

type of carrier waveform

PF_angle: float

power factor angle

is_plot: bool

to plot the pwm

fswi_max: int

Maximal switching frequency

freq0_max: int

maximal fundamental frequency

fmode: int

0: Fixed speed 1: Varaible speed

fswimode: int

0: Fixed fswi 1: Variable fswi

comp_carrier(time, fswi, type_carrier)[source]

Function to compute the carrier

Parameters
  • time (array) – Time vector

  • fswi (array) – Switching frequency

  • type_carrier (int) – 1: forward toothsaw carrier 2: backwards toothsaw carrier 3: toothsaw carrier else: symetrical toothsaw carrier

Returns

Y – carrier

Return type

ndarray