The well known synchronous reference frame phase-locked loop (SRF-PLL) gives unsatisfactory performance during unbalanced and distrorted grid conditions. To improve the PLL performance, various approaches for extracting fundamental frequency components are addressed in literature. Few such approaches are
The MATLAB-Simulink files of above three PLLs are provided in my Mathworks community profile.