A little update on this issue: in PR #464, InputVoltage class now takes an ImportPWM object as argument that enable to generate PWM voltage harmonics within the gen_input() method, with several parameters such as: switching frequency, DC bus voltage, switching strategy.