S09 — Four corners, and the ground that moves
S01 to S08 built one corner. This notebook bolts four of them to one chassis, fixes the car and moves the road under each wheel, which is the convention a moving-ground CFD run uses. Then it asks what a corner cannot answer: what roll does to the four cambers, what the rack does to the two front toes, and what yaw does.
The model is 13 moving bodies and 91 unknowns. It is derived once and shipped as a WebAssembly kernel; this notebook loads that kernel and runs it, so the numbers come from the bytes the page loads, not from a second implementation.
Book: Maths Applied Chapter 1, §1.7 The full vehicle and the Review.
Design: solvers/otkd/docs/config-layer.md, docs/dynamics.md §7 and docs/wasm.md.
The question. Four corners share one chassis. With the car held still and the road moving, what does a change of ride height, roll, pitch or steer do to each corner — and what does yaw not do?
By the end you can:
- name the five drives and say which body each moves
- explain why the front is a double wishbone and the rear a five-link
- read a camber and a toe from the kernel's world points, and give their signs
- run the committed kernel from Python and say how closely it agrees with the Python engine, and which one is the reference
- explain why yaw is not a suspension input in a kinematic model
- say what the model still cannot answer: load, grip, damping and tyre slip
Assumes: S01–S08: the corner, its rows, the sweep, mass and dampers, and the generated kernel.
How to use it: predict before you reveal, commit before you check, and move the controls until the equation's behaviour stops surprising you.
Warm-up: remember
1. Four corners and five drives
The chassis is the fixed body. Each front corner is a double wishbone: a lower arm and
an upper arm, each on a revolute at the chassis, meeting the upright at two spherical
joints. A track rod runs from the rack to the steering arm. Each rear corner is a
five-link: four distance links from the chassis to the upright, and a fifth to the toe
arm. Every road is a body on a vertical slide, and a plane-gap row holds the wheel
centre one tyre radius above its patch.
Setting: the problem, its sets and its symbols
Problem. Given four corners joined to one fixed chassis, four road heights and a rack travel , find the pose of the thirteen moving bodies and, at each corner, the camber and toe of its axle.
| Symbol | In | Meaning |
|---|---|---|
| the thirteen moving poses: seven per body, m and dimensionless quaternions | ||
| the resolved geometry: points, axes, link lengths and tyre gaps | ||
| the drives: four road heights and the rack travel, m | ||
| the road height under corner , m; | ||
| the rack's lateral travel, m; positive moves it to the right | ||
| joints, norm rows, drivers and four contacts | ||
| the wheel centre and its road patch, m, world axes | ||
| camber: from the axle , degrees |
How these symbols connect
Each road height is written into the drive block and moves the road body on its slide; the contact row then holds one tyre radius above , so the upright follows. The rack travel moves one prismatic body, and the two front track rods turn that motion into the steering rotation of the front uprights. The solved pose is read through ; camber and toe come from each upright's axle, not from a stored output.
Symbol-by-symbol notes
$q$ — thirteen bodies, not four
Each moving body contributes seven unknowns: three positions in m and a unit quaternion. The chassis is fixed and contributes none. The rack and the four roads are bodies too, so the count is 13 × 7 = 91.
$r_i$ — the road moves, the car does not
A moving-ground wind-tunnel run keeps the car still and drives the road, so the suspension sees the relative motion a road car sees against a fixed floor. The chassis is the inertial frame here.
front double wishbone, rear five-link
A five-link locates an upright in five degrees of freedom and leaves one. The rack must drive a steered degree of freedom, so the front needs the steering rotation the ball joints leave free. S09 §4 measures what happens when a fifth link is asked to do both.
camber and toe — sign conventions
Camber is positive when the top of the wheel leans outboard, from on the unit axle . Toe is the change of the axle's plan-view heading from its design heading, positive for toe-in.
| part | bodies | unknowns |
|---|---|---|
| chassis | 0 | 0 |
| rack | 1 | 7 |
| front upright ×2 | 2 | 14 |
| front lower arm ×2 | 2 | 14 |
| front upper arm ×2 | 2 | 14 |
| rear upright ×2 | 2 | 14 |
| road ×4 | 4 | 28 |
The picture is a drawing, not a millimetre model: the panels are simplified, but every wheel centre, ball joint and track rod is the kernel's own world point at the solved pose, and the panels are depth-sorted so the near side hides the far side.
2. The crate: the kernel the page loads
learn.wasm.Kernel instantiates the committed kernel.wasm with wasmtime and
addresses the one f64 arena through the exported MEM global. It is the same module
a browser instantiates: 270 KB of wasm, 91 unknowns, square Newton compiled in.
The derivation is not repeated. Compiling this model takes 1 min 47 s and emitting it 2 min 30 s; the notebook would miss its ten-second budget, and a page could not do it at all. The kernel is the artefact that makes the model shippable.
Setting: the problem, its sets and its symbols
Problem. Given the module's arena blocks with sizes and offsets , and the payload out.js the Python engine wrote for the same sweep, find the largest disagreement over the world points at every frame.
| Symbol | In | Meaning |
|---|---|---|
the blocks q, g, t, out, jac, met, world, pts, axs, num |
||
| size and offset of block , in f64 slots | ||
the arena MEM, addressed as MEM.value / 8 + o_b |
||
| a world point from the kernel at frame , m | ||
| the same point from the committed Python payload, m | ||
| the conformance tolerance for a point, m |
How these symbols connect
The manifest fixes the blocks and the slot sizes ; the loader uses to find each block inside one f64 arena. For each payload frame , the same drive vector is written into t, the kernel solves, and world() fills the world block. Comparing each with measures whether the committed bytes still compute the derivation; is a tolerance, not bit equality, because the kernel calls sqrt and evaluates a reordered program.
| block | offset (slots) | size (slots) | holds |
|---|---|---|---|
| q | 0 | 91 | the 91 pose unknowns |
| g | 91 | 316 | the resolved geometry |
| t | 407 | 5 | the five drives |
| out | 412 | 91 | the 91 residual rows |
| jac | 503 | 8281 | the 91 × 91 Jacobian |
| met | 8784 | 10 | camber, toe and the front axle's centres |
| world | 8794 | 147 | every geometry point, for the drawing |
| pts | 8941 | 147 | raw points, before pack() |
| axs | 9088 | 18 | raw axes, before pack() |
| num | 9106 | 16 | lengths, gaps and compliances |
books/maths-applied/docs/assets/data/otkd/models/four-corner-multilink/kernel is the only file the notebook reads for the model. The payload is the second witness.
Reveal result (lock in your prediction above first)
Across 41 frames the largest disagreement is 5.00e-07 m, at frame 36. That is round-off in a reordered program, not a mechanism error: the two implementations agree to the last few bits of a double. The Python payload is the reference; the kernel is the artefact that ships.
| frame | road-fr (mm) | largest |wasm − python| (m) | | --- | --- | --- | | 0 | -40 | 3.69e-07 | | 10 | -20 | 4.95e-07 | | 20 | 0 | 4.97e-14 | | 30 | 20 | 3.72e-07 | | 40 | 40 | 4.74e-07 |
When the compiled kernel breaks
- Assumes: it is the same derivation as the Python engine
- When it fails: the two disagree
- Check: re-emit the model and compare
kernel.rsbyte for byte; a difference means the bundle was built from an older derivation, not that wasm arithmetic is wrong.
3. Ride height, roll and pitch
The three body inputs are not new unknowns: they are a recipe for the four road heights. Heave lifts every road, roll lifts the left over the right, pitch lifts the front over the rear. Each corner then solves its own pose, and the table reads the four results.
Setting: the problem, its sets and its symbols
Problem. Given a heave , a roll and a pitch , define the four road heights and find the wheel travel and camber at each corner; then say which corner's camber is most negative.
| Symbol | In | Meaning |
|---|---|---|
| heave: every road rises by , m | ||
| roll: the left roads rise by over the right, m | ||
| pitch: the front roads rise by over the rear, m | ||
| the road height at corner , m, from , , | ||
| wheel travel against the design height, m | ||
| camber at corner , degrees | ||
| the corner index |
How these symbols connect
The three body numbers are a linear map to four road heights: and its mirrors. Each is written into the drive block, the contact row moves that wheel with its road, and and are read from the solved world points.
Symbol-by-symbol notes
$r$ — the road difference, not the body angle
Roll is expressed as a difference of road heights, in m, not as an angle. Across a 1.55 m track, 30 mm of difference is about 1.1° of body roll; the model never needs the angle.
$\Delta z_i$ — wheel travel, not ride height
Ride height is the chassis above the ground; with the chassis fixed, the ground moves instead. Wheel travel is the wheel centre's rise from its design height, which is what a bump curve is plotted against.
Reveal result (lock in your prediction above first)
| corner | road (mm) | travel (mm) | camber |
|---|---|---|---|
| fr | 30 | 30 | -0.55 |
| fl | 30 | 30 | -0.55 |
| rr | 30 | 30 | -0.42 |
| rl | 30 | 30 | -0.42 |
Reveal result (lock in your prediction above first)
| corner | road (mm) | travel (mm) | camber |
|---|---|---|---|
| fr | -15 | -15 | 0.25 |
| fl | 15 | 15 | -0.26 |
| rr | -15 | -15 | 0.21 |
| rl | 15 | 15 | -0.21 |
Hint 1
The left road gets half the roll on top of the heave.
Hint 2
So .
When a Newton solve from a warm pose breaks
- Assumes: the seed is on the assembly the slider is exploring
- When it fails: a large jump lands on another assembly, or the residual stays negative
- Check: move in small steps from the design pose; a page's slider should call
solvewithoutdesignbetween ticks.
4. Steer, and what yaw does not do
The rack is one body on a lateral slide. Moving it lengthens one front track rod and shortens the other; the uprights rotate about the axes their ball joints leave free, and the model produces Ackermann without an Ackermann equation. The rear has no rack, so its toe links only locate.
Setting: the problem, its sets and its symbols
Problem. Given a rack travel , find the toe change at each front corner and the camber change at each rear corner; then yaw the whole car by a rigid rotation and say what changes in the mechanism.
| Symbol | In | Meaning |
|---|---|---|
| the rack travel, m; the slider's range | ||
| a rigid yaw of the car and its ground, rad | ||
| the axle's plan-view heading against design, degrees | ||
| the rotation about the vertical through the origin | ||
| a world point after the yaw: | ||
| the length of link ; |
How these symbols connect
The rack travel moves the prismatic rack body, the two track rods keep their lengths, and the front uprights rotate; is read from each axle. A yaw rotates every world point, including the roads, so every link length and every angle between links is unchanged: yaw is a change of coordinates, not an input.
Symbol-by-symbol notes
$s$ — rack travel, not steering-wheel angle
The model's drive is the rack's lateral displacement in m. A steering ratio would turn a wheel angle into ; the model stops at the rack because that is where the mechanism starts.
$\theta$ — a rigid rotation, not a mechanism input
Yawing car and ground together is not steering: steering rotates the uprights relative to the chassis, while a rigid yaw rotates everything, roads included. Only a tyre model would notice the difference, through slip.
Reveal result (lock in your prediction above first)
| rack (mm) | corner | toe (°) | camber (°) |
|---|---|---|---|
| -20 | fr | 7.13 | -0.11 |
| -20 | fl | 10.53 | 0.26 |
| -20 | rr | -0 | 0 |
| -20 | rl | 0 | 0 |
| -10 | fr | 3.78 | -0.07 |
| -10 | fl | 4.5 | 0.1 |
| -10 | rr | 0 | -0 |
| -10 | rl | 0 | -0 |
| 0 | fr | 0 | -0 |
| 0 | fl | 0 | 0 |
| 0 | rr | -0 | -0 |
| 0 | rl | 0 | 0 |
| 10 | fr | -4.5 | 0.1 |
| 10 | fl | -3.78 | -0.07 |
| 10 | rr | -0 | -0 |
| 10 | rl | -0 | -0 |
| 20 | fr | -10.53 | 0.26 |
| 20 | fl | -7.13 | -0.11 |
| 20 | rr | -0 | -0 |
| 20 | rl | -0 | 0 |
The largest change in any corner's camber or toe after a 0.2 rad rigid yaw is 1.5e-13°: a change of coordinates, not a mechanism input. In a CFD run yaw matters to the air, not to the suspension; what the corner sees is the road height and the rack.
Hint 1
Read the table in this section at 15 mm, not 10 or 20.
5. Two tyre models
A tunnel does not simulate the tyre. Its height, or rolling radius, is an actuator, and the value comes from a measurement: the model is kinematic and the wheel height is data. The self-contained model removes that measurement, makes the contact gap a spring and gives it a corner load at the contact patch: the compression is an output.
Both are the same mechanism. Run one, then the other at the same wheel height, and the poses agree. What changes is what you must know before you can solve.
Setting: the problem, its sets and its symbols
Problem. Given either a measured wheel height (model A) or a corner load and a tyre compliance (model B), find the four corner poses; then compare the two at the same wheel height.
| Symbol | In | Meaning |
|---|---|---|
| the measured wheel-centre height, m (model A's input) | ||
| the vertical corner load at the contact patch, N (model B's input) | ||
| the tyre compliance, m/N; | ||
| the tyre stiffness, N/mm; the slider's unit | ||
| the contact gap and its free length, m: | ||
| the model-B pose; the four roads and the rack are fixed |
How these symbols connect
Model A fixes the contact gap at the free length and drives the road to place the wheel at ; the pose is kinematic and the tyre is rigid. Model B fixes the roads, makes the gap compliant, and lets the load choose ; the pose is the equilibrium of the links, the tyre spring and the load. At the same both descriptions name the same upright pose, so their camber and toe agree.
Symbol-by-symbol notes
$z_w$ — measured, not derived
In CFD the wheel height or rolling radius is often a measured actuator value: the tunnel gives it, the model consumes it. That is model A, and it is the four-corner kernel.
$F$ and $c$ — a spring, not a constraint
The tyre spring adds a force, not a row. It selects one pose among the mechanism's free ones, so the equilibrium solve needs the load and the compliance; the kernel exposes the compliance as a number slot.
$k$ in N/mm — the unit a tyre sheet uses
A 200 N/mm tyre compresses 15 mm under 3 kN. The kernel's compliance is in m/N, so ; the notebook converts at the slider.
Hint 1
Compression is force over stiffness: .
Hint 2
3 kN is 3000 N, so compute .
6. Finding the tyre's number
The spring model needs one number the mechanism does not supply: the compliance. You do not read it off the tyre; you measure it, fit it, validate it, and then put it in. The process is the same one every parameter in a vehicle model goes through.
- Rig. Load the wheel vertically at the contact patch, hold camber, pressure and rate, and record the deflection at several loads. One load gives a point; five give a curve and a residual.
- Fit. For a linear spring, the through-origin least-squares estimate is . Inspect the residuals, not only the fit.
- Validate. Hold out one load, fit the rest, and predict the held-out point.
- Transfer. Put into the kernel: the compliance is a number slot, so the model now predicts the wheel height from the load.
- State the limits. The number is static, linear and local to the fitted range. Rate, temperature, pressure and camber each move it; a tyre model would replace it.
Setting: the problem, its sets and its symbols
Problem. Given measured pairs , find the compliance that minimises , its stiffness , and the residual ; then use in the kernel and compare its compression at 3 kN with the measurement.
| Symbol | In | Meaning |
|---|---|---|
| the vertical load at measurement , N | ||
| the measured deflection, m | ||
| the compliance (the unknown), m/N | ||
| the stiffness, N/mm: | ||
| the residual , m; its RMS is the fit's error | ||
| the rig's load points |
How these symbols connect
The rig gives pairs ; the fit chooses so the squared residuals are smallest, which is the normal equation for a line through the origin. The same enters the kernel's contact gap, and the equilibrium solve returns a wheel height; comparing that height with at a load the fit saw, and at one it did not, is what separates a fit from a validated parameter.
Symbol-by-symbol notes
$c$ through the origin — no free offset
A tyre at zero load has zero deflection, so the line is forced through the origin. An intercept would absorb a rig offset; if you fit one, say what physical quantity it is.
$e_i$ — a pattern, not only a size
A small RMS with residuals that change sign is a good linear fit. A small RMS with residuals that curve is a linear model being asked to describe a nonlinear tyre; the size alone would hide it.
The five points below are a stand-in for a rig measurement, generated from a progressive law so the residuals have something to say. Replace them with the tunnel's numbers and nothing else in this section changes.
| load (kN) | measured (mm) | line c·F (mm) | residual (mm) |
|---|---|---|---|
| 1 | 6.37 | 5.19 | 1.17 |
| 2 | 11.47 | 10.39 | 1.09 |
| 3 | 16.19 | 15.58 | 0.62 |
| 4 | 20.68 | 20.77 | -0.09 |
| 5 | 25 | 25.97 | -0.97 |
The through-origin fit gives c = 5.193e-06 m/N, k = 192.6 N/mm, with an RMS residual of 0.88 mm. The residual runs from +1.17 mm at 1 kN to -0.97 mm at 5 kN: a pattern, not noise. A linear spring is a local model of this tyre.
Validation. Fitting the other four points and predicting 4 kN gives 20.81 mm against a measured 20.68 mm: +0.13 mm. It interpolates well; extrapolate with care.
Transferred. With c in the kernel, the 3 kN corner compresses 15.56 mm against a measured 16.19 mm. The model now predicts the wheel height instead of being told it.
Explain it to yourself: The residual changes sign across the load range. What does that pattern tell you that the RMS alone does not?
Compare with a model answer
The RMS says how far the line is from the points on average; the sign change says the points are on a curve that the line crosses, not on a line with random noise. If you need the tyre at 6 kN, the linear model is extrapolating past its crossing and the residual pattern is the warning.
Check yourself (closed book)
Keep these:
- The four-corner model is 13 moving bodies and 91 unknowns; the chassis is fixed and the roads move.
- Five drives: four road heights and the rack. Heave, roll and pitch are a recipe for the four heights.
- The front is a double wishbone because the rack needs a steering degree of freedom; the rear five-link only locates.
- The committed kernel and the Python engine agree to about m; Python is the reference.
- Yaw changes no link length and no camber; it matters to the air, not to the kinematics.
Your connection
Name a real four-wheel machine whose corners you could model this way, and one input it has that this model does not.
Answers
Practice A. mm.
Practice B. about 5°; the table in §4 reads the exact value.
Practice C. 12 mm: .
Mixed practice. heights, rack, solve, read, compare.
Where the maths is derived
Optional. These notes give the intuition and application; the sources below give the full derivations and proofs.
§1 The four-corner model
- otkd — the model, its exports and a generated solver:
docs/config-layer.mdfor bodies, roles and joints;docs/dynamics.md§7 for the four-corner measurement this example makes shippable.
§3 Roll and the moving ground
- Milliken and Milliken (1995), Race Car Vehicle Dynamics: roll, camber change and the tyre that turns the angle into grip (ch. 1 and 16).
Compiled from notebooks/suspension/s09_four_corners.py — run locally with cd notebooks && uv run marimo edit suspension/s09_four_corners.py for live Python scratch cells.
Back to the book: 1.7 The full vehicle · Chapter 1 Review