Z/P

Zero-Pole

Continuous
Run the live example Free · no sign-up · runs in your browser

The ZeroPole block implements continuous-time linear time-invariant (LTI) dynamic systems defined by their transmission zeros, system poles, and scalar gain in the Laplace domain (ss). This zero-pole-gain (ZPK) representation is the standard formulation for root locus design, pole placement, structural resonance modeling, and analog filter synthesis. The Property Editor includes a live Transfer Function Insights dashboard that automatically plots the Step Response, Bode Magnitude/Phase, and Pole-Zero Map as you edit zeros, poles, and gain.

Mathematical Model

In the Laplace domain (ss), the continuous zero-pole-gain transfer function is defined as:

H(s)=Y(s)U(s)=K∏i=1m(s−zi)∏j=1n(s−pj)H(s) = \frac{Y(s)}{U(s)} = K \frac{\prod_{i=1}^m (s - z_i)}{\prod_{j=1}^n (s - p_j)}

where:

  • KK represents static gain
  • z1,z2,…,zmz_1, z_2, \dots, z_m are system zeros (zeros)
  • p1,p2,…,pnp_1, p_2, \dots, p_n are system poles (poles)

For physical realizability and causality, the number of zeros cannot exceed the number of poles (m≤nm \le n). When m<nm < n, the system is strictly proper with n−mn - m relative degree; when m=nm = n, the system is proper and exhibits direct feedthrough D=KD = K.

The factored polynomial is expanded into numerator and denominator polynomials:

H(s)=bmsm+⋯+b1s+b0sn+an−1sn−1+⋯+a1s+a0H(s) = \frac{b_m s^m + \dots + b_1 s + b_0}{s^n + a_{n-1} s^{n-1} + \dots + a_1 s + a_0}

and simulated continuously using a state-space realization x˙=Ax+Bu,y=Cx+Du\dot{\mathbf{x}} = \mathbf{A}\mathbf{x} + \mathbf{B}u, y = \mathbf{C}\mathbf{x} + Du with state vector dimension nn.

A system is asymptotically stable if and only if all poles have strictly negative real parts:

Re⁡(pj)<0∀j∈{1,…,n}\operatorname{Re}(p_j) < 0 \quad \forall j \in \{1, \dots, n\}

Inputs & Outputs

Direction ID Label Type Status
→ In in Input number Required
→ In reset Reset number Required
← Out out Output number Output

Parameters

Parameters Label Type Default Description
zeros Zeros (space-separated real parts) polynomial -1
poles Poles (space-separated real parts) polynomial -2
gain Gain (K) number 1
initialCondition Initial Condition number 0

Usage Examples

Example 1: Active Notch Filter for Mechanical Resonance Suppression

Attenuating a high-QQ torsional structural vibration mode at ω0=100 rad/s\omega_0 = 100\text{ rad/s} (f≈15.9 Hzf \approx 15.9\text{ Hz}) with damping ratio ζ=0.05\zeta = 0.05. Setting zeros = "0+100j 0-100j", poles = "-10+99.5j -10-99.5j", and gain = 1.0 creates a sharp notch that cancels resonant vibration while preserving low-frequency command tracking.

Example 2: Non-Minimum Phase Right-Half-Plane Zero Plant

Modeling the non-minimum phase undershoot dynamics typical of hydro turbines and flexible aircraft wings. Configuring zeros = "2.0" (RHP zero at s=+2s = +2) and poles = "-1.0 -5.0" with gain = -2.5. In response to a positive step input, the output initially dips negative before reversing direction toward steady-state positive equilibrium.

Remarks & Best Practices

  • Live Step Response, Bode & Pole-Zero Preview: The Property Editor computes the expanded polynomial H(s)H(s) in real time and displays DC gain, percent overshoot, settling time, step response, frequency response, and ss-plane root locations.
  • Conjugate Complex Roots: Complex poles and zeros must appear in complex-conjugate pairs (a±jba \pm jb) to yield physically realizable real differential equations.
  • Proper System Constraint: The number of zeros mm must not exceed the number of poles nn (m≤nm \le n). Specifying m>nm > n requires pure ideal differentiation, which is non-causal and physically unrealizable.
  • Continuous ODE Realization: The parsed transfer function is converted into a continuous state-space realization in WebAssembly, ensuring high numerical precision with explicit (RK4, RK45) and stiff implicit (TR-BDF2) solvers.
  • Reset Capability: When the optional reset port receives a non-zero signal (ureset>0u_{\text{reset}} > 0), all internal state integrator registers reset to zero immediately.

Related Components

  • TransferFunction: Continuous transfer function specified directly via polynomial coefficients B(s)/A(s)B(s)/A(s).
  • SecondOrderSystem: Second-order system parameterized by natural frequency ωn\omega_n and damping ratio ζ\zeta.
  • LeadLag: First-order phase lead/lag dynamic compensator.
  • StateSpace: Continuous multi-input multi-output state-space model x˙=Ax+Bu\dot{\mathbf{x}} = \mathbf{A}\mathbf{x} + \mathbf{B}\mathbf{u}.