What a joint is

The block in the guide has a length

A prismatic pair is a point constrained to a line, and a point on a line of length G has a stroke of G. A block of length ℓ has a stroke of G − ℓ, because both its ends have to stay on the rails — so a guide is as long as the stroke plus the block, and a third of a short one is not stroke at all.

Assumes A joint is a surface that slides on itself.

The pairs field is about what a joint permits: a set of displacements, closed under composition, which for the six lower pairs is one of six groups. A prismatic pair permits translation along one direction and nothing else. In the plane it takes away two of a body’s three freedoms and leaves one.

That account is complete and it is about the pair. It is silent about the parts, and the parts are a block and a guide, both of which have lengths.

slider crank: the closest pair at one positionCrank 1, connecting rod 3, the block sliding on the frame's own line. Every joint is where the solver put it, exactly as in the linkage field; the material is the only thing added. The heavy segment joins the two closest points over every pair of parts that is tested — which excludes pairs sharing a pin, since their material surrounds that pin by construction — and its length is the gap: **-0.1400** here, between rod · guide, upper. A negative value is a penetration depth, the distance the pair would have to be moved apart, and it is drawn in the warning colour.gap -0.1400positioned by solving, not by drawing
Fig. 1 A slider crank with its block drawn as a block and its guide as two rails. The pair is one freedom; the parts are two objects with sizes.
The gap is a function, and it has corners. The smallest gap over every tested pair, at each of 360 solved positions of the crank. Two things are visible that a check at the ends could not report. The minimum, -0.1400, is in the middle of the travel and not at either end. And the curve has 2 corners, each one a change in which pair is closest — the colours — so the function is piecewise smooth rather than smooth, and its minimum is not where a derivative vanishes. Refining off the sample grid by golden section moves the answer by 0.0e+0, which is what a corner rather than a smooth minimum looks like.
Fig. 2 The mechanism as this field measures it: the gap between its parts and its guide rails over a whole turn.

What the site’s model of a slider has been

m.slide(a, px, py, dx, dy) — a joint constrained to a fixed line, given as a point on the line and a direction. One equation: the joint’s perpendicular offset from the line is zero.

That is the right model for everything the loop fields ask, and it is a point on a line. The line is infinite. The point has no size. So the stroke of a slider crank is 2a, twice the crank length, and the guide it needs is however long the stroke is.

Both halves of that are wrong once the parts are made of something, and they are wrong in the same direction.

Guide equals stroke plus block

A block of length ℓ has both its ends on the rails, so its centre can only reach from ℓ/2 inside one end of the guide to ℓ/2 inside the other. On a guide of length G the centre travels G − ℓ.

Run it the other way, which is how a designer meets it: a stroke of 2a needs a guide of

G=2a+.G = 2a + \ell.

For the site’s slider crank — crank 1, rod 3, so a stroke of 2 — with a block of 0.6, that is a guide of 2.6. Of which 0.6 is never stroke: 23% of the guide exists so that the block can be a block.

The fraction is worth tabulating because it is not small and it grows the wrong way. A block of 0.3 is 13% of its guide; a block of 0.6 is 23%; a block of 1.0 is 33%. A short-stroke mechanism with a long block — which is a normal thing, since a block wants to be long for reasons of guidance that are entirely about force — spends most of its guide on itself.

The second route

The arithmetic above is one line, so the measurement is worth having for exactly that reason: a one-line result is the kind nobody checks.

Build the slider crank with the block as a body — a rectangle of length ℓ carried at the slider joint — and two stops at the ends of the guide. Shorten the guide until the block’s own corners touch a stop somewhere on the crank’s turn, and bisect on the length that just clears.

For ℓ = 0.6 the search returns 2.6001 against an arithmetic 2.6: agreement to 6 × 10⁻⁵, which is the bisection’s own tolerance. For 0.3 it returns 2.3001 and for 1.0, 3.0001.

The two routes have nothing in common. One is a subtraction. The other is three hundred and sixty solved positions of a mechanism, a body placed at a joint at each, four polygon distances per position, and a dozen rebuilds of the whole machine as the guide length is bisected on. They agree to the last digit either can carry.

The width search, and why bisection is sound here. The worst gap over a whole drive, against the width every link is cut at, for a non-Grashof rocker whose links keep clear of both pivots. The curve is decreasing — every body only grows with the width, and a growing body cannot open a gap — so the crossing is unique and bisection converges to it rather than to whichever root a search happened to find first. The answer is 0.3966, at which point the machine is exactly touching somewhere on its travel, and the search cost 13 full sweeps to get there.
Fig. 3 The same monotonicity on a different parameter: a bisection whose predicate can only go one way.

Why the search converges, and what it is searching over

The bisection here is on the guide length rather than on a width, and the monotonicity argument has to be made again because it is a different parameter.

Lengthening the guide moves both stops outward and can only increase the clearance between the block and either of them. So the predicate the block stays on the rails through the whole turn is monotone in the guide length, its crossing is unique, and bisection finds it. Shortening it can only bring the stops in.

What the search is not doing is optimising the mechanism. The crank, the rod and the block are fixed; the only variable is where the two stops are, and the answer is the shortest separation at which nothing touches. That makes it a much simpler search than the width search, where growing the parameter changes every body at once and the machine’s whole geometry with it.

It is also a search whose answer is known in advance, which is the point: a bisection whose result is predicted to five figures by one subtraction is a bisection worth running, because when it disagrees the disagreement is informative. Here it disagreed by a factor of four the first time it ran.

slider crank: the closest pair at one positionCrank 1, connecting rod 3, the block sliding on the frame's own line. Every joint is where the solver put it, exactly as in the linkage field; the material is the only thing added. The heavy segment joins the two closest points over every pair of parts that is tested — which excludes pairs sharing a pin, since their material surrounds that pin by construction — and its length is the gap: **-0.1400** here, between rod · guide, lower. A negative value is a penetration depth, the distance the pair would have to be moved apart, and it is drawn in the warning colour.gap -0.1400positioned by solving, not by drawing
Fig. 4 The block placed correctly: carried at its joint, at the rod’s angle, with absolute dimensions that do not change as it slides.

The bug the second route found

The block was placed the way every other part in the bodies field is placed: as a shape in its link’s own (u, v) coordinates, scaled by the link’s length.

That is right for a bar, whose material really is bolted between two pins and whose length does not change. It is wrong for a block, because a block’s “link” is the line from the frame to the slider joint — and that length changes as the mechanism moves. Placed that way, the block grew and shrank through its own stroke, from 0.4 at one end to 0.8 at the other, and the guide search converged on a guide exactly as long as the block.

The number it produced was 0.6001 against an arithmetic 2.6: wrong by a factor of four, and internally consistent, and it drew a picture in which a block slid along a guide and looked entirely normal because a block that changes size while sliding does not look like anything in a static frame.

The repair is a second placement rule: a block is carried at a joint, at an angle, with absolute dimensions, and does not scale with anything. Which is a small piece of code and a real modelling distinction — some parts are stretched between two joints and some are bolted to one.

What the block does to the free arcs

Reading the same mechanism as a set rather than as a number gives the other half of the picture, and it is the one a person operating the machine would recognise.

Swept with its guide rails in place, the slider crank’s free space is two arcs covering about a third of the turn — because the rod fouls the rails over most of it. That is a machine whose crank cannot be turned continuously at all with these proportions, which the gap’s minimum of −0.140 says as a number and the arc count says as a fact about operating it.

Neither reading is available from the pair’s own account, and the two say different things. The minimum says how much material is in the way at the worst instant; the arcs say that the obstruction is not one region but two, so the crank has two ranges it can rock through and cannot get from either to the other.

This is the second machine in the catalogue whose free space is disconnected, and unlike the two-stud contrivance it is a mechanism a reader has met. The obstruction is not a stud somebody bolted on to make a point; it is the guide the pair needs in order to be a pair.

What the pair still costs

Nothing here changes the pair’s own arithmetic, and it is worth being explicit because the fields are adjacent.

A prismatic pair is still one freedom in the plane and one in space. It is still a lower pair, still one of the six, still the group of translations along one direction. A mobility count of the slider crank is unchanged — four links, four lower pairs, one freedom — and every position, velocity and ratio the linkage field computes is exactly what it was.

What has changed is a quantity that is not about the pair at all: how long the guide has to be. The pair is a relation between two bodies; the guide is one of the bodies; and the length of a body is not a property of any relation.

That distinction is the pairs field’s own, applied to itself. Its central move is that a joint is a surface that slides on itself — a plane, a cylinder, a helicoid — and what the joint permits is that surface’s symmetry group. A group is scale-free: the translations along a line are the same group whether the line is a millimetre or a kilometre. So the pair cannot know how long the guide is, by construction, and the question has to be asked of the parts.

Free space, in pieces. The driving angle round the circle, with the arcs at which the machine is both assembled and clear drawn heavy. One stud in the way takes a bite out of the turn and leaves 1 arc: the crank can still reach every remaining angle by going the other way. Two studs leave 2, covering 74% of the turn — and every configuration in both arcs is a perfectly good solution of the same constraint equations, on the same assembly branch, at the same mobility. Nothing a solver computes distinguishes an angle in one arc from an angle in the other; what separates them is that the machine cannot be driven from one to the other.
Fig. 5 The same reading as a set: which parts of a crank’s turn a slider mechanism is actually free through, once its parts have sizes.

The stroke a mechanism has, and the stroke a guide gives

There are now two strokes in play and it is worth keeping them apart, because they are computed by different fields and can disagree.

The mechanism’s stroke is 2a, and it comes out of the linkage field’s closed form: the slider joint runs from ba to b + a, whatever the guide does. It is a property of two lengths.

The guide’s stroke is G − ℓ, and it comes out of this essay: the block’s centre runs from ℓ/2 inside one end to ℓ/2 inside the other. It is a property of two other lengths, neither of which is in the mechanism.

A design works when the second is at least the first, and the interesting failures are when it is not. A guide too short by a little does not shorten the stroke gracefully: the block hits a stop, and what happens next is a force question. So the geometric answer is binary — the mechanism either has room to complete its turn or it jams at a definite crank angle, which the sweep reports along with which end it hit.

That is a different relationship from most of the pairs on this site, where a joint permits a range and the mechanism uses part of it. Here the pair’s own permission is unbounded — a prismatic pair permits translation along the whole line — and every limit comes from the parts.

The rod is the other half

The block is not the only thing in the guide’s way. The connecting rod swings as the crank turns, and near the end of the stroke it leans hardest — so the mouth of the guide has to be open enough to let it in.

Swept with the guide rails as obstacles, the site’s slider crank reads a worst gap of −0.140 between the rod and the lower rail, with two changes of closest pair over the turn. That is a real design statement rather than a saturated one: the rod fouls the mouth by about one link width, and the fixes are the obvious ones — shorten the block, open the mouth, or angle the rail ends away.

It is also the answer to a question a reader might reasonably ask about the guide-length result, which is why the block search uses stops at the ends rather than rails along the sides. The two constraints are different: the block’s ends against the stops decide the stroke, and the rod against the rails decides the mouth, and measuring them together would produce one number that is neither.

What a pin's size costs a synthesis. Every one of the 1,176 exactly correct three-position syntheses the synthesis field's survey produces, asked a question its three verdicts cannot ask: are any two of its pins closer together than the material round them? The poses span about two units, so the horizontal axis is a pin as a fraction of the mechanism. At a boss radius of 0.05 nothing is lost; at 0.4 — a pin nearly a fifth of the pose span — 27% of the exact solutions cannot be built, and 15% of the ones that had already passed the branch, circuit and order tests go with them. The defect is real, it is rarer than the kinematic ones, and it is not correlated with them.
Fig. 6 The revolute’s version of the same question: how much room two pins on one link need, and what it costs a synthesis.

The same question, one pair over

A revolute pair has the same structure and this site has already met its version twice.

A revolute is a point in the equations, and the parts that realise it are a pin and a hole. The practice field gives them a fit — the pin is smaller than the hole and the joint has slop — and the bodies field gives them a size, so that two of them on one link cannot be closer than the material round them.

Both are questions about the parts rather than about the pair, and neither changes what the pair permits. The prismatic version is the third of the same family:

  • A revolute’s fit costs lost motion along a chain.
  • A revolute’s size costs a minimum spacing between two of them.
  • A prismatic’s size costs a guide longer than its stroke.

Each is a quantity that appears the moment a joint is realised and is absent from every account of what the joint is, and each one is decided by a number — a clearance, a boss radius, a block length — that the constraint equations have no place for.

The remaining four lower pairs have their own versions, and none of them is computed here. A cylindrical pair’s block has a length and a bore. A helical pair has a lead, a thread depth and a nut of some length. A spherical pair has a ball, a socket and an angular limit set by where the socket is cut away — which is the one that most changes what the joint permits, since a ball joint’s cone of motion is a body constraint and is usually the thing that decides a design.

slider crank: the closest pair at one positionCrank 1, connecting rod 3, the block sliding on the frame's own line. Every joint is where the solver put it, exactly as in the linkage field; the material is the only thing added. The heavy segment joins the two closest points over every pair of parts that is tested — which excludes pairs sharing a pin, since their material surrounds that pin by construction — and its length is the gap: **-0.1400** here, between rod · guide, upper. A negative value is a penetration depth, the distance the pair would have to be moved apart, and it is drawn in the warning colour.gap -0.1400positioned by solving, not by drawing
Fig. 7 The three planes the slider crank needs, with the block in one of them.

What a real guide is

Three things this model does not have, each of which makes a real guide longer or shorter than 2a + ℓ.

Bearing overlap. A block needs to stay guided at the ends of its travel, so it wants length in the guide beyond the geometric minimum — a real guide is longer than 2a + ℓ, not shorter.

Overtravel and stops. Anything that is driven to a limit has a hard stop and some slack before it, which adds again.

And the block’s own guidance. How long a block has to be to run without tipping is a question about clearance, friction and load, and it is outside this site — which is exactly why the block’s length appears here as a given to be traded rather than as something to be derived.

So the number is a floor, arrived at from below, and its content is the trade rather than the value: every unit of block length is a unit of guide that is not stroke, and the two things a designer wants from a block — long for guidance, short for a compact guide — are in direct opposition with an exchange rate of one.

The gap is a function, and it has corners. The smallest gap over every tested pair, at each of 360 solved positions of the crank. Two things are visible that a check at the ends could not report. The minimum, 0.1041, is in the middle of the travel and not at either end. And the curve has 4 corners, each one a change in which pair is closest — the colours — so the function is piecewise smooth rather than smooth, and its minimum is not where a derivative vanishes. Refining off the sample grid by golden section moves the answer by 1.4e-5, which is what a corner rather than a smooth minimum looks like.
Fig. 8 The instrument all of this is read from: a gap over a drive, whose sign says whether the parts are in each other’s way at that instant and whose minimum says by how much.

A pair, and the parts that realise it

The general form of this is the one the pairs field has been building towards, and this essay is its material half.

A pair is an abstraction: a set of permitted displacements, a group, a rank, a count. It is scale-free, it composes, and it is what makes a mobility formula possible.

The parts that realise it are two bodies with sizes, and everything about how much room the joint needs, how far it can travel and what it fouls lives there. A pair can be realised by a block in a guide, by a pair of rails, by a dovetail, by a ball slide or by a four-bar approximating a straight line — all the same pair, none of them the same parts.

The pairs field spends seven rungs on the first and this is the first essay to look at the second. What it finds is unremarkable and was unstateable: a prismatic pair costs two freedoms, and a prismatic joint costs a guide a third longer than the stroke it delivers.

There is a general point behind a guide is as long as the stroke plus the block, and it is the reason this rung belongs to the practice field rather than to the linkages one. Every joint on this site has been a point or a line — a pin at a place, a slide along a direction — and every real joint is a part with an extent. A pin has a diameter and a length; a slider has a block; a ball joint has a socket with a cone of travel; a bearing has a width. The idealised joint permits everything the geometry allows and the real one permits less, by an amount set by the part’s own size. So the practice field’s standing question has a companion: not only what does a tolerance do to this mechanism but what does the joint’s own extent take away. Both are the difference between the mechanism on the drawing and the one in the shop, both are computable from dimensions the drawing already carries, and only the first of them is usually asked.

About the same objects

Not linked from either essay — found by the objects both name.

What links here

Essays that link to this one from their own argument.

The objects this essay names

Each one links to every other essay that touches it.

Free spaceLink bodyLower pairPrismaticSelf-sliding surfaceSigned clearanceSlider-crankStroke