functionfrequencyRangeZeros2

Determine min. and max. frequencies for a vector of zeros (numerator or denominator zeros; provided as Real matrix)

Information

This function estimates a useful frequency range for the Bode plot of a vector of zeros (numerator or denominator zeros). This frequency range is estimated such that the phase angle of one zero is in the range:

phi_min/n_zeros ≤ |phase angle| ≤ pi/2 - phi_min/n_zeros

where n_zeros is the number of zeros. Note, the phase angle of one zero for a frequency of 0 up to infinity is in the range:

0 ≤ |phase angle| ≤ pi/2

Therefore, the frequency range is estimated such that the essential part of the phase angle (defined by phi_min) is present.

If the real part of a complex zero vanishes (i.e., the zero is located on the imaginary axis), the maximum value of the bode plot magnitude of the zero is infinity. In order to avoid difficulties, zeros close to the imaginary axis are shifted by the input argument real_min along the real axis.

Inputs

TypeNameDefaultDescription
Real[:,2]ZerosZeros as Real matrix (first column: real, second column imaginary values)
SI.Anglephi_minModelica.Units.Conversions.from_deg(5)Minimum phase angle
Realreal_min1.e-4|r| < real_min are treated as |real_min|

Outputs

TypeNameDefaultDescription
Modelica.Units.SI.AngularVelocityw_minMinimum frequency
Modelica.Units.SI.AngularVelocityw_maxMaximum frequency
BooleanuseFullRangetrue