For calculating the torque it is necessary to know the fields in the air gap .