Maths Applied1.2 One rigid triangle

All books

1.2 One rigid triangle

What the model assumes

The first model makes two claims and no more.

  1. 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.
  2. 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:

3 (n−1)−∑ici=degrees of freedom,3\,(n-1) - \sum_i c_i = \text{degrees of freedom},

where nn counts the bodies and cc 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 θ\theta. The lower ball joint CC swings on a circle about its pivot AA, so its position is known exactly:

C=A+RA (cos⁡(α+θ), sin⁡(α+θ)),C = A + R_A\,(\cos(\alpha+\theta),\, \sin(\alpha+\theta)),

where α\alpha is the arm's angle at rest and RAR_A is its length. The upper ball joint DD is at the end of the upper arm, and also at a fixed distance from CC, because the upright is rigid. Both facts are distances, so both are circles:

(Dx−Bx)2+(Dz−Bz)2=RB 2,(Dx−Cx)2+(Dz−Cz)2=L2.\begin{aligned} (D_x - B_x)^2 + (D_z - B_z)^2 &= R_B^{\,2}, \\ (D_x - C_x)^2 + (D_z - C_z)^2 &= L^2. \end{aligned}

RBR_B is the upper arm's length, LL is the upright's, and BB and CC 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:

γ=γ0+(ϕ−ϕ0),\gamma = \gamma_0 + \left(\phi - \phi_0\right),

where γ\gamma is the camber angle, ϕ\phi is the direction of the line between the two ball joints and ϕ0\phi_0 is that direction at rest. The design used here has γ0=−1.0°\gamma_0 = -1.0°: the top of the wheel leans in by one degree when the car is standing still.

Figure 1

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:

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.

Figure 2

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

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.

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.