Grid Forming with pre synchronizaiton functions

Does anyone have the Grid Forming with pre synchronizaiton function blocks?
I am doing the microgrid simulation. When I doing reconnection to main grid, grid forming inverter needs to pre-sync with the main grid including frequency, phase, and magnitude.
I am doing the modeling of pre synchronizaiton.

Dear Jiang,
You could find the pre-synchronization control algorithm for GFM converters in the following paper:
“Grid-connected/Grid-islanded Smooth Switching Control of VSG Converter Based on Pre-synchronization”

Paper Link: https://ieeexplore.ieee.org/document/10800929

Section IV provides a detailed description of the pre-synchronization control strategy. Based on the approach outlined in the paper, implementing the algorithm in HYPERSIM is relatively straightforward.

@Yue.Pan Thank you for your help. I will read the paper.