1.2 One rigid triangle
What the model assumes
The first model makes two claims and no more.
- Each wishbone is one rigid body, turning about the line through its two chassis pivots. It is a triangle, and a triangle cannot change shape.
- The upright is one rigid body too, carrying both ball joints and the hub.
From those two claims, the whole front view follows. There is nothing else in the model: no bending, no play in the joints, no give in the bushes.
It has exactly one degree of freedom
A rigid body can move in three ways in a plane: two translations and a rotation. So three moving bodies have nine degrees of freedom between them. Constraints take them away:
| Constraint | How many | Freedoms removed |
|---|---|---|
| Lower wishbone to the body, at its axis | 1 | 2 |
| Upper wishbone to the body, at its axis | 1 | 2 |
| Lower wishbone to the upright, at the ball joint | 1 | 2 |
| Upper wishbone to the upright, at the ball joint | 1 | 2 |
Nine minus eight leaves one. One number sets the whole mechanism, so if the lower arm's angle is known, everything else is known. That is what makes this model worth having: one input, one output, no searching.
The general rule is worth writing down, because it is what tells you a model is well posed before you try to solve it:
where counts the bodies and is the number of freedoms each constraint removes. A hinge in a plane removes 2, a ball joint in space 3, and a fixed length 1. The solver refuses to run a mechanism whose freedom count does not match the number of things being driven. Such a model has no single answer to give.
Two circles, and where they meet
Set the lower arm's angle to . The lower ball joint swings on a circle about its pivot , so its position is known exactly:
where is the arm's angle at rest and is its length. The upper ball joint is at the end of the upper arm, and also at a fixed distance from , because the upright is rigid. Both facts are distances, so both are circles:
is the upper arm's length, is the upright's, and and are the two points the circles are drawn around. Two circles meet in two places, or none, or touch. In code, the two places are found without any searching at all:
def upper_joint(C):
"""Where the upper ball joint can be, given where the lower one is."""
d = norm(C - B)
along = (R_B**2 - L**2 + d**2) / (2 * d) # where the chord crosses BC
across = sqrt(R_B**2 - along**2) # how far off BC the meeting is
mid = B + along * unit(C - B)
n = perp(unit(C - B))
return [mid + across * n, mid - across * n] # two assemblies; the car has one
Both answers are real solutions of the same two equations. They are two different assemblies of the same parts, and only one of them is a car. Which one you keep is a modelling decision, not a mathematical one, and the depth page for this section is about it.
Two answers from one rule is the signature of this kind of problem, and the start decides which one you land in.
Camber, from the pose
The wheel plane is fixed in the upright. So the wheel's angle is the upright's angle, plus whatever the upright was built with at rest:
where is the camber angle, is the direction of the line between the two ball joints and is that direction at rest. The design used here has : the top of the wheel leans in by one degree when the car is standing still.
Predict before you move it: as the wheel rises, does the top of the wheel lean further out, or further in? The drawing answers both ways round — the rim tilts, and the readout gives the number.
What the model says
| Wheel travel | Lower arm turns | Camber | Instant centre | Roll centre |
|---|---|---|---|---|
| −40 mm | −5.4° | −1.87° | 2.21 m inboard, 0.30 m up | 47 mm |
| −20 mm | −2.7° | −1.46° | 1.88 m inboard, 0.16 m up | 33 mm |
| 0 mm | 0.0° | −1.00° | 1.60 m inboard, 0.06 m up | 19 mm |
| +20 mm | 2.7° | −0.49° | 1.36 m inboard, 0.02 m down | 5 mm |
| +40 mm | 5.4° | +0.08° | 1.15 m inboard, 0.08 m down | −9 mm |
Distances in the instant-centre column are measured from the car's centreline. The hub is a further 0.76 m outboard, so at rest the centre is 2.36 m from the hub.
Three numbers matter for the chapter's question:
- camber moves 1.95° from one end of the travel to the other;
- that is 0.024° per millimetre averaged over the whole 80 mm. The curve is not a straight line: 40 mm of bump from rest is worth 1.08°, a little more than half the total;
- the track narrows by 9.2 mm across the car at the bump end, and widens a little in droop.
The instant centre is where the two arm axes would meet if they carried on past the wheel. It is 2.36 m from the hub, which is why the drawing has to say "to the instant centre" rather than showing it. The roll centre is where the line from the contact patch through that point crosses the middle of the car. It is 19 mm above the ground at rest, and it falls below the ground as the wheel rises.
The agreement panel
Every section after this one ends with a panel of numbers. This one has three routes to the same answer. They are the two-circle construction above, the general Newton iteration that §1.3 meets, and the package's compiled kernel.
| Check | Value |
|---|---|
| Camber over the whole travel, from the construction above | −1.87° to +0.08° |
| Camber from the generated kernel in three dimensions | within 0.033° of the construction, over the range in the figure above |
The package's own two routes, agreement.max_abs_diff |
2 × 10⁻¹³ |
The last row is read from the vendored out.js, not typed here; the middle one
is what the figure above computes in the page. The package checks itself the
same way this section does. Its agreement compares a closed-form construction
against its symbolic solver: circle against circle, then the tie rod, with no
Jacobian and no Newton. Two derivations, one answer. The closed form is the fast
path and the independent check at once. It gets the answer without a solver, so
it can be used to test one. Two routes to one number is evidence; one route is a
claim.
The same corner, solved in three dimensions
This section's model is a front view. The package the chapter's numbers come
from, otkd, solves the full mechanism instead: three bodies, twenty-one
equations, Newton at every step. Its derivation also generates a solver
compiled to WebAssembly. That solver ships with this page, vendored under
docs/assets/data/otkd/, with the package's own exported sweeps beside it and a
record of the hashes.
Given the geometry above, it solves the same linkage in three dimensions. What comes out is a second answer to the chapter's question, and the gap between the two answers is what the front view costs.
The kernel reports camber with the opposite sign to this book, so the figure flips it and says so. Nothing else is adjusted: the same geometry goes in and the same range of travel is covered.
The gap is inside a tenth of a degree, which is the budget the chapter set. That is the argument for the small model stated as a number rather than as a preference. The front view is wrong by less than the accuracy anyone asked for.
Pseudocode, and the file it comes from
# compile.py — the residual and its Jacobian, symbolically, once
unknowns = symbols("C_x C_z D_x D_z")
rows = [
dist(C, A) - R_A, # the lower arm keeps its length
dist(D, B) - R_B, # the upper arm keeps its length
dist(D, C) - L, # the upright keeps its length
]
J = Matrix(rows).jacobian(unknowns) # never hand-differentiate: this is the bug
residual = lambdify((...), rows, cse=True)
jacobian = lambdify((...), J, cse=True)
The file is
analytic.py
for the closed form, and
compile.py
for the derivation. The pseudocode uses the same names and shapes as the files;
it is not a copy of them.
You should now be able to
- say what the first model assumes, and what it ignores
- count the degrees of freedom of a mechanism in a plane, and say why one is enough
- explain why the two ball joints' positions come from two circles
- read camber, instant centre and roll centre off a pose
Watch out
The two circles meet in two places, and taking the other one is a mistake that looks like a physics bug. The mechanism is then assembled the other way up, so the camber curve starts somewhere else. It can leap from one solution to the other part-way through the travel.
The check is one line long and hard to live without. Solve each position from the previous one, keep the branch the design position was on, and record any frame where the branch changes. A curve with a jump in it is a solver finding a different assembly, not a wheel doing something surprising.
A related trap: the two arms are nearly horizontal, so their axes meet a long way away from the wheel — 2.36 m here. If a drawing shows the instant centre inside the wheel, it is not drawn to the same scale in both directions. Every angle in it is wrong.