This block computes the machine and inverter losses from the mechanical input quantities and determines the power to be drawn from the electric circuit. The "drawn" power can be also a negative number, meaning that the machine is actually delivering electric power.
The given efficiency map is intended as being built with torques being normalised, i.e. ratios of actual torques to tauMax and speeds being ratios of w to wMax. In case the user uses, in the given efficiency map, torques in Nm and speeds in rad/s, the block can be used selecting tauTmax=1, wMax=1.
The choice of having normalised efficiency computation allows simulations of machines different in sizes and similar in characteristics to be repeated without having to rebuild the efficiency maps.
Torques are written in the first matrix column, speeds on the first row.
The efficiency table can be taken from a file, or specified online as a parameter.