It directly depends on the control of the machine. based on my experience, you can calculate the flux linkage (or inductance) for every position and different excitation currents. Then you can use the trajectory and obtain the flux linkake, current and torque waveforms. It is important to excite the winding when the torque is the biggest and decrease the current to zero before the negative torque will be produced. You can see pictures below.