This block uses the real and imaginary components of a Cartesian representation of a voltage phasor to estimate the electrical frequency deviation from nominal value present at the node.
Vr*der(Vi) - Vi*der(Vr) f = ----------------------- Vr^2 + Vi^2
The calculations are done using the filtered derivative of the real and imaginary parts of the phasor representation. The user is required to set proper values for initialization of the calculations, together with a smoothing filter time constant, used to filter the derivative components.
The calculated frequency is just an estimate and can deviate by a certain margin of error.