i calculate stator flux by converting 3-phase voltages and currents to 2-phase (alpha-beta stator reference frame).and then i calculate flux and respective sectors but the problem is simulation output is not coming (speed is coming zero). when i did only torque control and ignore flux calculations then the resuls are coming but with high ripples in rpm.