This application relates to the field of
microgrid technology, and in particular to a current
harmonic suppression method, an
inverter, and a storage medium. The method includes: establishing the state equation of the grid-connected
inverter based on the grid-connected
inverter circuit and Kirchhoff's laws; establishing a
transfer function from the
disturbance voltage to the
harmonic components of the grid-connected current based on the state equation; determining a calculation model for the modulation wave compensation term used to suppress the
disturbance voltage based on the
transfer function; extracting the
harmonic components in the grid-connected current in real time, and obtaining the modulation wave compensation
signal based on the calculation model of the harmonic components and the modulation wave compensation term; and superimposing the original modulation wave
signal output by the
current loop controller and the modulation wave compensation
signal to obtain the final modulation wave signal. The method of this application can actively and accurately compensate for periodic
voltage disturbances introduced by the switching of the
power frequency bridge arm, thereby effectively suppressing the resulting current
harmonics and zero-crossing
distortion, and significantly reducing the THD of the grid-connected current.