APF models, using IP-IQ method and dq0 method for harmonic and reactive current detection using PI controller as a Compensator, and three-level spwm modulation, PWM pulses, with LR as source, and add the LCL filter, line side, effects and it felt good, some parameters require further adjustments