This is a model that models an electric drive: electronic converter + electric machine.
The only model dynamics is its inertia.
The input signal is a torque request (Nm). The requested torque is applied to a mechanical inertia.
The model receives from the input connector the torque request and tries to "deliver" it. Delivering means adding a torque to the system so that the torque exiting from flange B equals the one entering from flange A plus the one requested from the input connector.
This simulates a two-flange electrical machine, where the added torque is the torque produced by the machine magnetic field stator-rotor interaction.
However, before delivering the requested torque, the model limits it considering the maximum deliverable torque and power. In addition, it computes and considers inner losses as determined by means of a map.
The maximum available torque is internally computed considering a direct torque maximum (tauMax) and a power maximum (powMax)
The requested torque is applied to a mechancal inertia. The inertia is interfaced by means of two flanges with the exterior.
The model then computes the inner losses and absorbs the total power from the DC input.