F(s)1/m∫1/s∫1/sbX(s)kX(s)/F(s) = 1/(2s² + 4s + 50)F(s)F(s)F(s)F(s)
F/k = 0.2 mpeak 0.305 m at 0.64 s01234500.10.20.3time (s)x (m)CART POSITION, 10 N STEPthe diagram, stepped1/(2s²+4s+50), exact
Lit arrow with moving dashes: a signal is flowing along itBlocks: each holds a transfer function; the round puck is the summing junctionPlot: the cart's position after a 10 N push, stepped through the diagramThe pills riding the arrows are signals; their names change as they pass through a blockThe cart's equation of motion drawn as a block diagram: a summing junction, a 1/m gain and two integrators along the forward path, and the damper and spring fed back with minus signs. The plot is computed by stepping the diagram itself, then compared with the exact response of its transfer function. Books differ on names: Nise calls the dot a pickoff point, Ogata a branch point, and others a takeoff point. Some draw the summing junction as a plain circle with signs, others put a cross or a Σ inside.

The pieces

  1. A block is a box holding a transfer function. What leaves it is what enters it times that function. The damper block b turns velocity into force: with b = 4 N·s/m, 0.5 m/s in gives 2 N out.

Building the cart

Running it

What is happening

# step 1/12 · block
# about: Damper

a block:   input → [ G(s) ] → output
           Y(s) = G(s) · U(s)

damper block   G(s) = b = 4 N·s/m
  in    V = 0.5 m/s
  out   bV = 4 × 0.5 = 2 N

Signals are written by their Laplace
transforms, like V(s), so every block
just multiplies.

The cart is the one from the lesson on writing the equation of motion: m = 2 kg, b = 4 N·s/m, k = 50 N/m, pushed by 10 N from t = 0. The numbers are illustrative; every curve and value in the figure is computed from this model. The Python on the last two steps is plain Python 3. The first steps the diagram block by block every 0.1 ms; the second evaluates the exact step response. They agree to within 0.05 mm.