Positive Negative sequence seperation with DDSRF

I am building a cascaded H bridge model for unbalanced conditions and need a positive, negative sequence seperation approach, but any approach I have tried does not work so far are any pre built models or exampes of positive and negative sequence seperation for convertor control strategy.