This model extends Network1portBase partial model, by directly defining the maximum power that can be transferred between the electrical port and the grid Pmax.
The power losses are represented by a linear dissipative term. It is possible to directly set the damping coefficient r of the generator/shaft system. If J is zero, zero damping is assumed. Note that J is only used to compute the dissipative term and should refer to the total inertia of the generator-shaft system; the network model does not add any inertial effects.