Block calculates numeric solution of a 2nd-order nonlinear system with structure according to the picture below - the loop consists of a 2nd-order linear system and an isolated hard nonlinearity. As to the type of the nonlinearity, there are four possible options: ideal relay, saturation, relay with dead-zone and relay with hysteresis.
The time interval in which the solution is calculated is specified by Simulink simulation parameters, however, if either NaN or Inf value is reached during the simulation, it is stopped immediately. The block is usually used in combination with the Vector XY Graph for Phase Portraits block that plots the calculated solution in phase plane, but it can also co-operate with other blocks (e.g. Selector or Scope) in order to treat phase trajectories individually.
The block has two vector outputs: y(t) = x1(t) and y'(t) = x2(t) i.e. vectors of horizontal and vertical coordinates of the phase-plane portrait corresponding to different initial conditions.
Coefficients of the numerator and the denominator of the transfer function of the linear part of the loop. The block requires three coefficients for the denominator (a vector with two elements) and one coefficient for the numerator.
Dropdown menu for selection of the nonlinearity type. There are following four options:
Vector of parameters determining the characteristics and the behaviour of the nonlinearity; the number of the parameters depends on the nonlinearity type. To understand the meaning of these parameters, see the following table:
Nonlinearity type | Parameters | Parameter definitions |
---|---|---|
Ideal relay | [k1 k2] | u = k1 if e < 0, u = k2 if e >= 0 |
Saturation | [b1 k1 b2 k2] | u = k1 if e <= b1, u = k2 if e >= b2, u = (k2-k1)/(b2-b1)*e + k1 - b1*(k2-k1)/(b2-b1) otherwise |
Relay with dead-zone | [b1 k1 b2 k2] | u = k1 if e <= b1, u = 0 if b1 < e < b2, u = k2 if e >= b2 |
Relay with hysteresis | [b1 k1 b2 k2] | u = k1 if e <= b1, u = k1 if b1 < e < b2 a e' > 0, u = k2 if b1 < e < b2 a e' <= 0, u = k2 if e >= b2 |
Desired value (denoted as w in the introductory picture). This value is often equal to zero.
Minimum and maximum values of initial conditions for the x1 coordinate (system output) corresponding to different trajectories. Together with the following parameter and analogical values for x2 these values determine the number of simultaneously running calculations i.e. the density of trajectories in phase plane.
Positive integer specifying the number of different initial conditions for the x1 coordinate; initial conditions are from the range specified by above parameters and are distributed uniformly.
Minimum and maximum values of initial conditions for the x2 coordinate (derivative of system output) corresponding to different trajectories. Together with the following parameter and analogical values for x1 these values determine the number of simultaneously running calculations i.e. the density of trajectories in phase plane.
Positive integer specifying the number of different initial conditions for the x2 coordinate; initial conditions are from the range specified by above parameters and are distributed uniformly.
Simulink scheme and phase-plane portrait corresponding to the nonlinear loop in the above picture, initial conditions being x1(0) = <-3; 3> (15 values) a x2(0) = <-5; 5> (3 values). Setpoint w = 0.