Nyquist Plot
AnalysisThe NyquistPlot block computes and visualizes the complex-plane frequency response (Nyquist diagram) of a linear dynamical system or open-loop transfer function. It plots the real component of the frequency response on the horizontal axis () against the imaginary component on the vertical axis () across a swept angular frequency range .
By mapping frequency response trajectories directly onto the complex plane, the Nyquist plot provides direct physical insight into closed-loop stability, gain margins, phase margins, and the proximity of the loop transfer function to the critical stability point .
Mathematical Model
The open-loop frequency response is mapped to the complex plane as:
Closed-loop stability is evaluated via Cauchy's argument principle and the Nyquist stability criterion:
where:
- is the number of unstable closed-loop poles in the right-half complex plane (RHP).
- is the number of unstable open-loop poles in the right-half plane.
- is the number of clockwise encirclements of the critical stability point .
- For open-loop stable systems (), closed-loop stability requires zero encirclements ().
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | in1 |
Input | number | Required |
Parameters
| Parameters | Label | Type | Default | Description |
|---|---|---|---|---|
title |
Title | text | Nyquist Plot |
|
showUnitCircle |
Show Unit Circle | boolean | true |
Usage Examples
Example 1: First-Order Stable Lag System
Analyzing a stable first-order transfer function . The Nyquist locus begins at at , traces a smooth semi-circle in the lower-right complex quadrant, and terminates at the origin as . The locus remains far from the critical point , confirming an infinite gain margin and a phase margin.
Example 2: Conditionally Stable Third-Order Feedback Loop
Evaluating an open-loop plant under variable loop gain . As frequency sweeps from toward infinity, the locus crosses the negative real axis. Inspecting the real-axis intercept relative to allows engineers to determine the maximum allowable loop gain before closed-loop instability occurs ().
Remarks & Best Practices
- Critical Point (-1, j0): Stability depends on whether the open-loop locus encircles . The distance between the locus and provides a direct measure of stability robustness.
- Unit Circle Reference: The unit circle enables immediate visual inspection of the phase margin at the unity-gain crossover frequency.
- Gain and Phase Margins: Gain margin is the reciprocal of the distance from the origin to the negative real-axis intercept; phase margin is the angle between the negative real axis and the unit-circle intersection.
- Real-Time Updates: The complex frequency response updates dynamically as plant parameters or sweep ranges are tuned in the diagram.
Related Components
- TransferFunction: Continuous-time transfer function block for modeling plant dynamics.
- PIDController: Configurable feedback controller for closed-loop compensation.
- StateSpace: Continuous-time multi-state linear system representation.
- uPlotDisplay: Multi-channel time-series oscilloscope for transient response verification.