Opera - PMSM Analysis

Hello everyone,

I am performing analysis of PMSM in Opera  19 for my thesis. I would like to ask what sign convention is used to distinguish motor vs. generator mode? Lastly, how could I plot torque vs. load angle (stability curve)?

I would appreciate any guidance.

Thanks in advance!