Changing project states · Essai 08

How does a clay printer make two rings?

Two circular courses on a printer with slit A on the lower level, slit B on the upper and a lift at the east seam.
One print head, two sightlines. The dashed ellipse is the upper guide.

Can a glimpse of the lower course tell you how the upper one will go?

A tabletop clay printer extrudes a bead around a circular former. The print head makes one lap per course, leaving two stacked rings. On each lap it can travel clockwise or anticlockwise. Slit A looks in at the lower course from the west. Slit B looks in at the upper course.

Connect A to the upper drive. It will reverse the direction A just saw. How many print paths fit the same glimpse now?

Lower slit A
2 print paths fit AAt 3.05 min A has seen the head move anticlockwise. Either upper direction still fits.

For known rates, a shared clock and one direction per course.

Follow one print run

Lower course · 3.05 min · 61.5 cm laid · 178.5 cm³ in the tank

Lay, lift, lay

Where is the print head, and how much clay has it deposited? At the seam, the lift takes time while the clay volume stays fixed.

Inspect the velocity at this point

Which way does this state move?

Lower course at (61.5, 61.5) cm.

Velocity in the tangent plane at the selected state laid length ↑head motion →Velocity components in cm/min

The regulator selects (+30, +30) cm/min, with a clay draw of 30 cm³/min.

Pick the black point on the cylinder by moving the clock. Its tangent plane contains a velocity for every pair of signed rates. The arrow is the one the wiring supplies.

From this fibre to the tangent bundle

On a laying sector write x = (s, L) for head position and total laid length. The tangent bundle collects all the planes TxQ over the state cylinder Q. Each velocity keeps its base point. The projection π sends (x, u) back to x.

At every interior state, the wired law picks F(x) = (x, (σv, v)). This is a section of the tangent bundle because π(F(x)) = x. The helix follows that section as time advances. At a sector change the display uses the outgoing rate. The guard at the seam takes the machine onto the lift interval.

Four maths objects on one clock

Play the print run to follow one point, its tangent plane and the velocity the wiring selects.

At 3.05 minutes on the lower course

State space X
The cylinder records head position around the ring and total length laid. The head is at 61.5 cm and has laid 61.5 cm.
Tangent space TxX
The plane at this state contains pairs of rates for head motion and length laid, in cm/min.
Tangent bundle TX
Every point on the cylinder carries a plane like this. An element of the bundle records both its base point and its velocity. The projection π returns the base point.
Vector field v
At this point the field selects (+30, +30) cm/min. Applying π to that selected vector returns (61.5, 61.5) cm.

The continuous-time formulation comes from Myers, Double Categories of Open Dynamical Systems, §1. The sectors, lift and stopping rule belong to this printer.

What could the two observers know?

Each opening records time and calibrated position while the head is visible. Compare all routes that could have produced the record up to the cursor, including its dark intervals.

Slit records

Position seen through each opening over time

Follow the clay through the calculation

What goes down the wire?

At 3.05 minutes the print head is 61.5 cm around the lower ring. The west slit sees it. The guide permits 30 cm/min at that point, and the pump can supply 30 cm³/min. With a bead of area 1 cm², the regulator commands 30 cm/min of travel, 30 cm/min of laid length and 30 cm³/min out of the tank. For either direction of travel, the length of bead deposited increases.

Take the head, the length counter and the stock counter as three open systems. Their product has three input ports. The regulator plugs a compatible command into each. In the formula below, ⊗ puts the systems alongside one another. The circle composes their product with the wiring lens. Read the expression from the inside out.

Dlay = W ∘ (Dhead ⊗ Dlength ⊗ Dstock)

Let A be the bead area, σ the signed direction, c the local guide limit and p the pump limit. The backwards part of W supplies (σv, v, Av) with v = min(c, p/A). The stock counter consumes the last input. The result has V + AL = 240 cm³ throughout. Select a term in the wiring view to inspect its ports at the current cursor. Inspect the terms.

Two ways to obtain the number in the slit

On a single sector let y measure distance from its entry in the direction of travel. Its own calculation is ẏ = v. The map φ(y) = sentry + σy turns that local distance into the ring position s, measured anticlockwise from the east seam. Its derivative sends the local velocity v to the signed velocity around the ring σv. Following the local solution and mapping the result gives the same position and speed as solving directly in ring coordinates. Myers calls such compatible descriptions a square.

For a clockwise lower run the head enters the quadrant from 90 cm. At 1.95 minutes it has travelled 28.5 cm into that quadrant, so A reads 61.5 cm and the head is moving at −30 cm/min. On the anticlockwise run at 3.05 minutes A also reads 61.5 cm, this time at +30 cm/min. A single position in the slit leaves out which way the clay was laid. Its time and position trace preserves the distinction. Read both histories.

Where does the entire project live?

During each course the head moves on a circle and laid length increases along a second axis. Each direction draws a helix in that cylinder. For a fixed policy, the whole path traverses the lower course, a lift interval, the upper course and the terminal state. At the join the head must be at the east seam with a complete supporting ring and 120 cm³ remaining. The lift holds position and stock while raising the nozzle by 1 cm in one minute. Watch the four maths objects change at this handover.

The lower and upper state cylinders connected at the east seam by the lift, with both slit signals located on the paths.
The lower and upper curves meet the lift at the same seam. Position can recur while the amount deposited grows.

The drawing projects several controller settings onto the same two cylinders. A full state also retains the mode, the chosen directions or latch memory, the clay amounts and the progress of the lift. Opposite half-courses can have the same angle and quantity over complementary semicircles. A helix crossing in the drawing therefore gives the machine no permission to switch direction there. Once a direction is supplied, laid length and head position recover the footprint for this uninterrupted course. Locate the lift on the project path.

What must a work package hand over?

The upper drive could make its lap in five minutes. The 20 cm³/min pump could supply the clay in six. The upper course takes 6.5 minutes. Three quadrants are pump-limited at 1.5 minutes each. On the north-west quadrant the guide limits travel to 15 cm/min for two minutes. Keeping the rate at each sector’s port recovers the half-minute that a single duration for each component discards.

A solved sector carries its entry, exit, elapsed time, stock change and position function between the two ends. Reverse the direction and the sector order reverses. Raise the upper pump limit to 30 and only three upper durations change. Move B to the south and the same physical trajectory supplies an earlier or later sighting. This is the sense in which a small project can be built up from solved parts.

Check a route against its records

Direction signs name the lower and then the upper course. The default trace is (+,−). Its first opening sees the head leave the slow quadrant. The shared clock continues running through the lift.

Default setup: lower +, upper −, upper pump 20 cm³/min, upper slit 12–18 cm.

Current run · exact sector solution
QuantityModel result
Lower course / lift / upper course5 / 1 / 6.5 min
Finish / clay consumed12.5 min / 240 cm³
Lower A · whole sighting2.80–3.10 min · 57 → 63 cm
Upper B · whole sighting11.60–11.90 min · 18 → 12 cm

The four admissible histories

With independent switches and the 20 cm³/min upper pump, the two possible lower records are 2.80–3.10 minutes (+) and 1.90–2.20 (−). For B at the north-east, the upper records are 6.60–6.90 (+) and 11.60–11.90 (−). One record fixes one sign. Pairing the two dated records on one clock fixes both. In feedback mode A’s first signed movement also sets the opposite upper sign at the lift. The eligible pairs are (+,−) and (−,+). These statements assume known settings, a shared clock, and continuous functioning of both observers.

What the mathematics covers

The smooth vector fields apply inside the sectors. Changing cap at a quadrant boundary, returning to the seam, lifting, stopping and entering or leaving a hard aperture are explicit events. The printer model combines continuous motion with these discrete events. The rate limits are illustrative. The model assumes a uniform, immediately self-supporting bead, a known first seam, sufficient stock, one direction per course and negligible acceleration and pump lag.

Myers supplies the lenses for wiring, the covariant maps for behaviours, and the conditions for pasting squares. His theorem on compatible behaviours motivates building the answer out of parts. The timings and the sufficiency of these two particular observations follow from the printer equations in this example. Myers, Double Categories of Open Dynamical Systems, §§2–6 · Myers, Categorical Systems Theory, §3.5.2 and §5.3.

Spivak’s wiring diagrams put component systems side by side before their ports are connected, the role of ⊗ above. Spivak, Lenses: applications and generalizations, slides 9–12 and 23–26.

The rate and observer calculations can be inspected directly. Open the numerical model · Earlier continuous cylinder.