I’m trying to simulate a single phase inverter which is connected to the grid through an LCL filter. I’m getting a grid current that above the origin, i was expecting it to be symmetrical around the origin, what could possibly be the cause of this?, please help.
You can’t do what you’re doing unfortunately. You need to sync your modulation waveform with the grid. Also, if you run your simulation for long enough you’ll see that your DC offset in the current will slowly decay.
Try searching for some papers on the subject, grid link power flow is not trivial and your simulation over simplifies the complexity.