LC Filter Active Damping
Active damping, for the T LCL filter in your example, can be simplified like this:


either get the voltage at the junction (between the inductors), differentiate it, multiply it by a damping constant (sqrt(2) is an optimal [?, not sure] choice), then subtract it from your reference value, or
get the current through the capacitor, multiply it by the inverse of the damping constant, then subtract it from your reference value.


The reference values are in whatever frame you're working on. If you did the Clarke, the Park, or whatever transform you concoct up. I made a simple example once, here's a screenshot:



It's for a single phase, only, but you can see this would have been a Clarke transform. The yellow blocks are, from left to right, the PID (PI) controller, the 3-level PWM controller, the bridge. The virtual damping is modelled with both voltage and current, but only one of them is active, set by one of the parameters, so only consider either the lower branch (voltage+diff), or the upper branch (current), not both. The whole ordeal could have been more tiier, particularly the PID values, but, as I said, this is an example, only. I hope it helps.