Frequency Response Calculator.
Computes the frequency response of a built linear system. The frequency will be calculated for the systems specified in the
target_systemlist. The desired
frequency_unitwill be either
wfor radians/s or
kfor reduced frequency (if the system is scaled). The
frequency_boundssetting will set the lower and upper bounds of the response, while
num_freqswill specify the number of evaluations. The option
frequency_spacingallows you to space the evaluations point following a
compute_hinfis set, the H-infinity norm of the system is calculated.
This will be saved to a binary
.h5file as detailed in
quick_plotoption will plot some quick and dirty bode plots of the response. This requires access to
The settings that this solver accepts are given by a dictionary, with the following key-value pairs:
Write output to screen.
System or systems for which to find frequency response.
Units of frequency,
Lower and upper frequency bounds in the corresponding unit.
Compute the frequency response in a
Number of frequencies to evaluate.
Compute Hinfinity norm of the system.
Produce array of
.pngplots showing response. Requires matplotlib.
Computes the frequency response of the linear state-space.
ss (sharpy.linear.src.libss.ss (Optional)) – State-space object for which to compute the frequency response. If not given, the response for the previously assembled systems and specified in
target_systemwill be performed.
Saves the frequency response to a binary
If the system has not been scaled, the units of frequency are
rad/sand the response is given in complex form. The response is saved in a
[p, m, n_freq_eval]format, where
pcorresponds to the system’s outputs,
nto the number of inputs and
n_freq_evalto the number of frequency evaluations.
wv (np.ndarray) – Frequency array.
Y_freq (np.ndarray) – Frequency response data
[p, m, n_freq_eval]matrix.
system_name (str (optional)) – State-space system name.
hinf (float (optional)) – H-infinity norm of the system.