Calculator overview
Inputs and outputs
This summary comes from the calculator's published input and output contract.
Inputs
- Rocker length c (O4 to B) (required)
-
Unit m Default 0.3 Range 0.01 to 2
About this input
c, in metres, from 0.01 to 2: the output link O4 to B.
- Ground length d (O2 to O4) (required)
-
Unit m Default 0.4 Range 0.01 to 2
About this input
d, in metres, from 0.01 to 2: the fixed link from the crank pivot O2 at the origin to the rocker pivot O4 on the x axis.
- Crank speed (required)
-
Unit rpm Default 60 Range 1 to 300
About this input
N, in rpm, from 1 to 300: the constant counterclockwise crank speed. It changes only the speeds and the time between frames, never the positions.
- Straightness window start (required)
-
Unit deg Default 0 Range -180 to 180
About this input
The first crank angle of the straightness window, in degrees, from -180 to 180. Used at Advanced; the value must still be in range.
- Straightness window span (required)
-
Unit deg Default 90 Range 10 to 360
About this input
How many degrees of crank turn the straightness window covers, from 10 to 360; 13 samples are spread evenly across it.
- Your type prediction (challenge 1) (required)
-
Default Not yet predicted Allowed Not yet predicted, Crank-rocker, Double-crank, Rocker-crank, Grashof double-rocker, Non-Grashof triple-rocker, Change-point
About this input
Your prediction of the Grashof type in challenge 1, chosen from the list. Until you choose one, the motion stays hidden.
- Coupler length b (A to B) (required)
-
Unit m Default 0.35 Range 0.01 to 2
About this input
b, in metres, from 0.01 to 2: the floating link from the crank pin A to the rocker pin B.
- Challenge number (required)
-
Default 0 Range 0 to 5
About this input
0 for none, or 1 to 5 to load a challenge. A challenge fixes the linkage it is about and leaves only its free inputs to you.
- Assembly (required)
-
Default Open Allowed Open, Crossed
About this input
Which of the two mirror-image assemblies is drawn. Open puts B to the left of the line from A to O4 (B above the ground in the usual drawing); Crossed puts it to the right. One rule holds for every frame.
- Crank length a (O2 to A) (required)
-
Unit m Default 0.1 Range 0.01 to 2
About this input
a, in metres, from 0.01 to 2: the driven link O2 to A, turned counterclockwise at the crank speed.
- Coupler point along A to B (p) (required)
-
Unit m Default 0.175 Range -2 to 2
About this input
p, in metres, from -2 to 2: how far the traced coupler point P lies from A along the line A to B; negative is behind A, more than b is beyond B.
- Coupler point across A to B (q) (required)
-
Unit m Default 0.1 Range -2 to 2
About this input
q, in metres, from -2 to 2: how far P lies from the coupler line, positive to the left of A to B.
Outputs
- Plot bound, x max (m)
-
No unit declared
About this output
Right edge of the square plot area, in metres.
- Other two links together (m)
-
No unit declared
About this output
The other two links together, in metres: the right side of the Grashof test. The linkage is Grashof when this is larger.
- Formula module versions
-
No unit declared
About this output
The versions of the formula modules this workbook embeds.
- Plot bound, y min (m)
-
No unit declared
About this output
Bottom edge of the square plot area, in metres.
- Plot bound, y max (m)
-
No unit declared
About this output
Top edge of the square plot area, in metres.
- Plot bound, x min (m)
-
No unit declared
About this output
Left edge of the square plot area that holds every point shown, in metres.
- Model version
-
No unit declared
About this output
The version of this workbook's model.
- Grashof type
-
No unit declared
About this output
The linkage type from the Grashof test: Crank-rocker, Double-crank, Rocker-crank or Grashof double-rocker (named by the shortest link), Non-Grashof triple-rocker, or Change-point when the shortest plus the longest equals the other two.
- Time between frames (s)
-
No unit declared
About this output
The time between frames, in seconds, at the crank speed.
- Crank angle, crank and coupler folded (deg)
-
No unit declared
About this output
For a crank-rocker only: the crank angle, in degrees, where the crank and coupler fold back on each other and the rocker reverses.
- Model Status
-
No unit declared
About this output
OK when the results are computed; CHECK when they are computed but some positions cannot be determined, the linkage is change-point, or the straightness window leaves the reachable arc; NOT VALID, with the reason, when an input is out of range or the lengths cannot be assembled.
- Link frames: 91 positions across the crank range (joints, coupler point, angles, transmission angle, speeds and a flag)
-
No unit declared
About this output
91 frames across the crank's reachable range: the crank angle; the joints A and B and the coupler point P; the coupler and rocker angles; the transmission angle; the coupler and rocker angular speeds and the coupler-point speed; and a flag (OK, Dead point or Undetermined).
- Ground length solved (m)
-
No unit declared
About this output
The ground length solved, in metres: yours, or the challenge's when it fixes one.
- At crank angle (deg), smallest transmission angle
-
No unit declared
About this output
The crank angle, in degrees, of the earliest frame at the smallest transmission angle.
- Smallest transmission angle (deg)
-
No unit declared
About this output
The smallest transmission angle over the cycle frames, in degrees: the angle at B between the coupler and the rocker.
- At crank angle (deg), largest transmission angle
-
No unit declared
About this output
The crank angle, in degrees, of the earliest frame at the largest transmission angle.
- Window start solved (deg)
-
No unit declared
About this output
The straightness window start solved, in degrees.
- Window span solved (deg)
-
No unit declared
About this output
The straightness window span solved, in degrees.
- Transmission angle, worst distance from 0 or 180 (deg)
-
No unit declared
About this output
How close the transmission angle ever comes to 0 or 180 degrees: the smaller of the smallest angle and 180 minus the largest. Near 0 the coupler pushes the rocker badly.
- Largest transmission angle (deg)
-
No unit declared
About this output
The largest transmission angle over the cycle frames, in degrees.
- Rocker swing (deg)
-
No unit declared
About this output
For a crank-rocker only: the angle the rocker swings through between its two end positions, in degrees, in closed form.
- Fastest rocker angular speed (rad/s)
-
No unit declared
About this output
The fastest rocker angular speed over the cycle frames, in radians per second, either direction.
- Rocker length solved (m)
-
No unit declared
About this output
The rocker length solved, in metres.
- Quick-return time ratio
-
No unit declared
About this output
For a crank-rocker only: the quick-return time ratio, the longer stroke time over the shorter, at least 1, in closed form.
- Straightness path: the window samples of the best candidate and of your coupler point
-
No unit declared
About this output
The 13 window samples: the crank angle, the best candidate's position and your coupler point's position.
- Shortest plus longest link (m)
-
No unit declared
About this output
The shortest plus the longest link, in metres: the left side of the Grashof test.
- Fit lines: the orthogonal best-fit line of each scored path, from end to end
-
No unit declared
About this output
The best-fit line of the best candidate's path and of your coupler point's path, from one end of the path to the other.
- Challenge result
-
No unit declared
About this output
No challenge selected, MET or NOT MET.
- Challenge score
-
No unit declared
About this output
100 when the selected challenge is met, otherwise 0.
- Challenge: the value scored
-
No unit declared
About this output
The value the selected challenge scores: the Grashof margin, the worst transmission angle, the straightness, the rocker swing or the time ratio.
- Coupler point across, solved (m)
-
No unit declared
About this output
The coupler point offset across A to B solved, in metres.
- Largest distance from its fit line (m)
-
No unit declared
About this output
The largest distance of your coupler point's window samples from their best-fit line, in metres.
- Coupler length solved (m)
-
No unit declared
About this output
The coupler length solved, in metres.
- Challenge goal
-
No unit declared
About this output
What the selected challenge asks you to do.
- Straightest search point: across (m)
-
No unit declared
About this output
q of the straightest of the 49 search candidates, in metres.
- Its largest distance from the fit line (m)
-
No unit declared
About this output
The largest distance of the best search candidate's window samples from their best-fit line, in metres.
- Assembly solved
-
No unit declared
About this output
The assembly solved: Open or Crossed.
- Challenge feedback
-
No unit declared
About this output
A hint when the challenge is not met yet, the explanation when it is met, or the prompt to predict first in challenge 1.
- Its straightness (%)
-
No unit declared
About this output
The straightness of the best search candidate, in percent.
- Straightest search point: along (m)
-
No unit declared
About this output
p of the straightest of the 49 search candidates, in metres.
- Crank range
-
No unit declared
About this output
Full rotation when the crank can turn all the way round, or Limited arc when it swings between two dead points.
- Crank length solved (m)
-
No unit declared
About this output
The crank length solved, in metres.
- Crank angular speed (rad/s)
-
No unit declared
About this output
The crank speed in radians per second.
- Crank angle, crank and coupler extended (deg)
-
No unit declared
About this output
For a crank-rocker only: the crank angle, in degrees, where the crank and coupler line up extended and the rocker reverses.
- Dead points among the frames
-
No unit declared
About this output
How many cycle frames are dead points, where the coupler and the rocker line up (transmission angle 0 or 180 degrees).
- Crank speed solved (rpm)
-
No unit declared
About this output
The crank speed solved, in rpm.
- First crank angle (deg)
-
No unit declared
About this output
The first crank angle of the frames, in degrees (0 for a full rotation; the lower dead point of a limited arc).
- Fastest coupler-point speed (m/s)
-
No unit declared
About this output
The fastest speed of the coupler point P over the cycle frames, in metres per second.
- Coupler-point search: 49 candidate points on a 7 x 7 grid, each scored by its straightness over the window
-
No unit declared
About this output
The 49 coupler-point candidates on a 7 x 7 grid in the coupler's own frame: p, q, the largest distance from the fit line, the straightness and the rank (ties share a rank).
- Coupler point along, solved (m)
-
No unit declared
About this output
The coupler point offset along A to B solved, in metres.
- Last crank angle (deg)
-
No unit declared
About this output
The last crank angle of the frames, in degrees (360 for a full rotation; the upper dead point of a limited arc).
- Straightness of your coupler point's path (%)
-
No unit declared
About this output
How straight your coupler point's path is over the window: the largest distance of its 13 samples from their best-fit line, as a percentage of the path's length along that line. Blank when the window leaves the reachable arc.
- At crank angle (deg), fastest coupler point
-
No unit declared
About this output
The crank angle, in degrees, of the earliest frame at the fastest coupler-point speed.
LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.
Methodology
Purpose and model boundary
This lab moves a planar four-bar linkage through its cycle: a fixed ground link, a crank turned at a constant speed, a coupler and a rocker. For the four link lengths you set it names the Grashof type, says whether the crank can turn fully or only rock between two dead points, and solves 91 positions across the crank's reachable range in closed form, on the assembly you choose (Open or Crossed). Each position gives the joint positions, the coupler and rocker angles, the transmission angle, the coupler and rocker angular velocities, and the position and speed of a coupler point P that you place on the coupler. For a crank-rocker it also gives the rocker swing, the two crank angles where the rocker reverses and the quick-return time ratio, in closed form. It scores how straight the path of P is over a window of crank angles, and searches a fixed 7 × 7 grid of 49 coupler points for the straightest one. Five scored challenges turn the lab into exercises.
It is a kinematics lab for learning how linkages move, not a tool for designing a machine. The links are rigid lines in a plane joined by ideal pins; there are no masses, forces, torques, friction, link flexibility, clearances or tolerances. The ground link is fixed along the x axis. Every step is a direct closed-form calculation: there is no iteration and no step-by-step integration.
The model is the calculation authority. The page sends the values you set to the model and draws only what the model returns: every joint position, coupler-point trace, speed, fit line and plot bound comes from the model's results; the page computes no geometry itself.
Inputs and units
| Input | Meaning and unit |
|---|---|
| Ground length d (O2 to O4) | The fixed link from the crank pivot O2 at the origin to the rocker pivot O4 on the x axis, from 0.01 to 2 m. |
| Crank length a (O2 to A) | The driven link from O2 to the crank pin A, from 0.01 to 2 m. |
| Coupler length b (A to B) | The floating link from the crank pin A to the rocker pin B, from 0.01 to 2 m. |
| Rocker length c (O4 to B) | The output link from O4 to B, from 0.01 to 2 m. |
| Coupler point along A to B (p) | How far the traced point P lies from A along the line from A to B, from −2 to 2 m. Negative is behind A; more than b is beyond B. |
| Coupler point across A to B (q) | How far P lies from the coupler line, from −2 to 2 m, positive to the left of the direction from A to B. |
| Assembly | Open or Crossed: which of the two mirror-image assemblies is solved (see Governing relationships). |
| Crank speed | N, the constant counterclockwise crank speed, from 1 to 300 rpm. It changes only the speeds and the time between frames, never the positions. |
| Straightness window start | The first crank angle of the straightness window, from −180 to 180 degrees. |
| Straightness window span | How many degrees of crank turn the window covers, from 10 to 360; 13 samples are spread evenly across it. |
| Challenge number | 0 for free exploration; 1 to 5 loads one of the five challenges. |
| Your type prediction (challenge 1) | Not yet predicted, or one of the six linkage types. Only challenge 1 uses it. |
Sign conventions: the crank pivot O2 is at (0, 0) and the rocker pivot O4 at (d, 0), so the ground link lies along +x. Every angle is measured from +x, counterclockwise positive. The crank angle θ is the angle of O2 to A; the coupler angle is the angle of A to B and the rocker angle the angle of O4 to B, each from −180 to 180 degrees. Angular velocities are positive counterclockwise.
Where each input is set: every input is in the input panel. In a challenge, the inputs the challenge fixes cannot be changed.
Governing relationships
Assembly and the Grashof class. Let s and l be the shortest and longest of the four lengths and m₂ and m₃ the other two.
- The linkage can be assembled only when the longest link is shorter than the other three together, l < s + m₂ + m₃. When it is not, or when the two are equal (the links can only lie in one straight line), the status reads NOT VALID.
- The Grashof sum compares s + l (the shortest plus the longest) with m₂ + m₃ (the other two together):
- Grashof when s + l < m₂ + m₃: at least one link can turn fully relative to the others;
- non-Grashof when s + l > m₂ + m₃: no link turns fully;
- change-point when the two are equal.
- The type follows from the class and, for a Grashof linkage, from which link is the shortest:
- Grashof with the ground shortest: Double-crank (crank and rocker both turn fully);
- Grashof with the crank shortest: Crank-rocker (the crank turns fully, the rocker swings);
- Grashof with the rocker shortest: Rocker-crank (the rocker could turn fully, the crank only rocks);
- Grashof with the coupler shortest: Grashof double-rocker (the coupler turns fully, crank and rocker rock);
- Non-Grashof triple-rocker and Change-point for the other two classes.
"Equal" means within one part in a billion (1×10⁻⁹, relative): sums that close are treated as change-point.
The crank range. The distance from A to O4 is f = √(a² + d² − 2ad cos θ). The linkage closes at crank angle θ exactly when |b − c| ≤ f ≤ b + c, which is a condition on cos θ:
- k_A = (a² + d² − (b + c)²) / (2ad) ≤ cos θ ≤ k_B = (a² + d² − (b − c)²) / (2ad).
- θ_A = arccos k_A and θ_B = arccos k_B (each clamped to the range of arccos), in degrees from 0 to 180.
The crank can pass θ = 180 when k_A ≤ −1 and θ = 0 when k_B ≥ 1 (each within 1×10⁻¹²). Then:
| Case | Crank range | First angle | Last angle |
|---|---|---|---|
| it passes both 0 and 180 | Full rotation | 0 | 360 |
| it passes 0 only | Limited arc | −θ_A | θ_A |
| it passes 180 only | Limited arc | θ_B | 360 − θ_B |
| it passes neither | Limited arc | θ_B | θ_A |
At the ends of a limited arc the coupler and rocker lie in one straight line, stretched out (f = b + c) or folded (f = |b − c|). These are the crank's dead points when the crank drives. When the crank passes neither 0 nor 180, it can move on two separate arcs, one above the ground line and its mirror image below; the lab solves the upper one.
The frames. Frame k (k = 0 to 90) is at crank angle θ_k = (lo·(90 − k) + hi·k) / 90, between the first and last angle above. For a full rotation this is every 4 degrees, and frame 90 (360 degrees) repeats frame 0. For a limited arc frames 0 and 90 are the two dead points; the frames sweep the arc forward, and the page plays them back and forth.
Position: circle intersection. At crank angle θ:
- A = (a cos θ, a sin θ). At whole multiples of 90 degrees the sine and cosine are taken as exactly 0, 1 or −1.
- With the vector e from A to O4, of length f, B lies where the circle of radius b about A meets the circle of radius c about O4. Its foot on the line from A to O4 is g = (b² − c² + f²) / (2f) from A, and its distance from that line is h = √(b² − g²).
- B = A + g·u + σ·h·u⊥, where u is the unit vector from A to O4, u⊥ is u turned 90 degrees counterclockwise, and σ = +1 for Open and −1 for Crossed. Open puts B to the left of the line from A to O4, which for an ordinary crank-rocker is B above the ground line; Crossed is its mirror image about that line.
- At a dead point that is one by construction, h is set to exactly 0, so B lies on the line from A to O4. This covers frames 0 and 90 of a limited arc, and the collinear positions of a change-point linkage at whole multiples of 180 degrees.
- A position is Undetermined when A lands on O4 (f is at most 1×10⁻⁹ times the longest link), which happens only when a = d and b = c, at θ = 0. A guard also marks a position undetermined if the two circles do not meet.
One assembly rule holds for every frame; there is no branch switching. A change-point linkage passes positions where all four links are collinear and the two assemblies meet. Past them the same rule continues on the other geometric shape: a parallelogram becomes an antiparallelogram. The status warns of this.
Angles and the transmission angle. The coupler vector is r₃ = B − A and the rocker vector r₄ = B − O4. The coupler and rocker angles are their directions (a component smaller than 1×10⁻¹² of the link length is treated as 0; an angle of exactly −180 reads 180). With dot = r₃ · r₄ and D = r₃ʸ·r₄ˣ − r₃ˣ·r₄ʸ (so |D| = bc·|sin μ|):
- the transmission angle μ, the angle at B between the coupler and the rocker, is atan2(|D|, dot), from 0 to 180 degrees;
- the position is a dead point when |D| ≤ 1×10⁻⁶ · bc, that is when the coupler and the rocker are in line; there μ reads exactly 0 (dot > 0) or 180.
A transmission angle near 90 degrees means the coupler pushes the rocker squarely; near 0 or 180 it pushes almost along the rocker and the linkage tends to lock.
Velocities. The crank turns at ω₂ = 2πN / 60 rad/s. Away from a dead point, the coupler and rocker angular velocities solve the differentiated loop closure v_A + ω₃ × r₃ = ω₄ × r₄, a 2 × 2 linear system solved in closed form:
- ω₃ = ω₂·(Aˣ·r₄ʸ − Aʸ·r₄ˣ) / D;
- ω₄ = ω₂·(r₃ʸ·Aˣ − r₃ˣ·Aʸ) / D.
At a dead point D is 0 and the velocities are blank; next to one they grow without bound, which is the physics of a toggle position. For a limited arc the velocities are those of the forward sweep; on the return they change sign.
The coupler point. With the unit vector ê₃ = r₃ / b along the coupler and ê₃⊥ turned 90 degrees counterclockwise, P = A + p·ê₃ + q·ê₃⊥. Its velocity is v_P = ω₂ × A + ω₃ × (P − A), and its speed is |v_P| in m/s.
Statistics over the cycle. The cycle frames are frames 0 to 89 for a full rotation (frame 90 repeats frame 0) and frames 0 to 90 for a limited arc.
- The smallest and largest transmission angle over the frames where μ is shown, and the crank angle of each. The worst transmission angle is the smaller of the smallest angle and 180 minus the largest: how close μ ever comes to 0 or 180. With the ground along x, μ is most extreme at θ = 0 and 180, and both are frames whenever they are reachable, so for a full rotation these frame values equal the closed forms arccos((b² + c² − (d − a)²) / (2bc)) at 0 and arccos((b² + c² − (d + a)²) / (2bc)) at 180.
- The fastest coupler-point speed and its crank angle, and the fastest rocker angular speed in either direction.
- The number of cycle frames that are dead points.
- Where two frames tie for an extreme (within 1×10⁻⁹, relative), the crank angle reported is the earliest frame's.
- The time between frames is (hi − lo) / 90 / (6N) seconds, since the crank turns 6N degrees per second.
Crank-rocker closed forms. For a crank-rocker only, the rocker reverses where the crank and coupler are in line: extended (O2 to B = a + b) and folded (O2 to B = b − a). From the triangle O2–O4–B:
- the rocker swing is arccos((c² + d² − (a + b)²) / (2cd)) − arccos((c² + d² − (b − a)²) / (2cd));
- φ_E = arccos((d² + (a + b)² − c²) / (2d(a + b))) and φ_F = arccos((d² + (b − a)² − c²) / (2d(b − a)));
- the crank turns α₁ = 180 + φ_F − φ_E degrees on one stroke and α₂ = 360 − α₁ on the other, so the quick-return time ratio is max(α₁, α₂) / min(α₁, α₂), at least 1;
- the extended and folded crank angles are φ_E and 180 + φ_F on the Open assembly, and 360 − φ_E and 180 − φ_F on the Crossed one.
These four values are blank for every other type.
Straightness of a coupler-point path. The window has 13 samples at crank angles θ_j = start + span·j / 12 (j = 0 to 12). Each sample solves the position as above. For a coupler point (p′, q′), its 13 positions (x_j, y_j) are fitted with the orthogonal (total least squares) line through their mean, whose direction φ satisfies tan 2φ = 2Sxy / (Sxx − Syy), with Sxx, Syy and Sxy the sums of squared and cross deviations from the mean. Then:
- the deviation of each sample is its perpendicular distance from that line, and maxDev is the largest;
- the extent is the length of the path's projection on the line, from its lowest to its highest sample;
- the straightness is 100 · maxDev / extent, in percent. 0 is a perfectly straight path. It is blank when the extent is no more than 1×10⁻⁹ of the longest link.
Because the fit measures perpendicular distances, a vertical path scores the same as a horizontal one. The path is judged only at its 13 samples.
The window is valid when all 13 samples lie inside the crank's reachable range and none is undetermined. A dead point inside the window is allowed, because only positions are used.
The coupler-point search. Candidate m (m = 1 to 49) sits at p = b·(i − 1)/4 and q = b·(j − 3)/4 for i, j = 0 to 6: p runs from a quarter of the coupler length behind A to a quarter beyond B, and q from three quarters of the coupler length to the right to three quarters to the left. Each candidate is scored by the same straightness. Its rank is 1 plus the number of candidates that are straighter by more than 1×10⁻⁹ of the best straightness, so near-equal candidates share a rank. The best candidate is the lowest-numbered one with rank 1. The fit line of the best candidate and of your coupler point are returned end to end.
Plot bounds. The plot area is a square around every point shown (the two pivots, A, B and P of every frame, the window samples and the fit-line ends), 1.1 times the larger of its width and height, so the linkage is drawn without distortion.
Calculation sequence
The model works through the relationships above in this order:
- It checks the entered inputs, items 1 to 6 of the status list under Errors and warnings.
- It fixes the values solved: your inputs, or in a challenge the challenge's own linkage with only its free inputs left to you.
- It tests whether the lengths can be assembled (item 7), then finds the Grashof sums, the class and the type.
- It finds the crank range and its first and last angles.
- For a crank-rocker it computes the rocker swing, the extended and folded crank angles and the time ratio.
- It solves the 91 frames: position, flag, angles, transmission angle, velocities and the coupler point.
- It computes the statistics over the cycle frames.
- It solves the 13 window samples, checks the window, and scores your coupler point and the 49 candidates.
- It finds the plot bounds, sets the status and, in a challenge, scores the challenge.
Outputs and interpretation
- Status: OK, CHECK with a reason, or NOT VALID with the first problem to fix (see Validation and status logic and Errors and warnings).
- Type: the Grashof type, the shortest plus longest link and the other two links together (m), the crank range (Full rotation or Limited arc) and its first and last crank angle (degrees).
- Crank-rocker results: the rocker swing (degrees), the quick-return time ratio, and the crank angles where the crank and coupler are extended and folded (degrees). Blank for every other type.
- Transmission angle: the smallest and largest (degrees) and the crank angle of each, and the worst distance from 0 or 180.
- Speeds: the fastest coupler-point speed (m/s) and its crank angle, the fastest rocker angular speed (rad/s), the crank angular speed (rad/s) and the time between frames (s).
- Dead points among the frames: a count.
- Straightness: the straightness of your coupler point's path (%) and its largest distance from its fit line (m); the straightest search point's p and q (m), its straightness (%) and its largest distance (m).
- Plot bounds: the four edges of the square plot area (m).
- Values solved: the lengths, offsets, assembly, crank speed and window actually solved. In a challenge these are the challenge's givens.
- Versions: the model version and the formula module versions.
- Grids:
- Link frames: 91 rows, one per frame, of crank angle, A, B and P (x and y, m), coupler and rocker angle (degrees), transmission angle (degrees), coupler and rocker angular velocity (rad/s), P speed (m/s) and a flag: OK, Dead point or Undetermined. A dead-point row shows positions, angles and μ but no velocities. An undetermined row shows only the crank angle and A.
- Coupler-point search: 49 rows of p, q, largest distance from the fit line (m), straightness (%) and rank.
- Straightness path: 13 rows of sample crank angle and the best candidate's and your coupler point's position at that sample.
- Fit lines: the start and end of the fit line of the best candidate and of your coupler point.
Reading the results:
- The positions do not depend on the crank speed; the speeds scale with it.
- The rocker swing and the time ratio are the same on both assemblies.
- Next to the ends of a limited arc the speeds are very large, and at the ends they are blank: those frames are dead points.
- The search grid is a hint, not a full optimisation: a straighter point may lie outside it.
Challenges
Choose a challenge number from 1 to 5. The model loads that challenge's linkage, and the inputs it fixes replace yours (the "solved" outputs show the values in effect). The challenge result reads MET or NOT MET, the score is 100 when met and 0 otherwise, and a goal and a feedback line say what is asked and what to try next.
- Which type is it? Predict the Grashof type of a given linkage from six choices before you see it move. Until you choose, the type and the other linkage results are blank, and only the starting position is shown.
- Turn fully, push well. Choose the ground length so the crank turns fully and the transmission angle stays between 40 and 140 degrees.
- A straight-line point. Place the coupler point so its path stays within 2% of a straight line while the crank turns from 135 to 225 degrees.
- Set the rocker swing. Choose the crank length so the rocker swings through 60 degrees, within 2 degrees.
- Quick return. Choose the ground length so one stroke of the rocker takes at least 1.3 times as long as the other.
Validation and status logic
The status reads the first message in the list under Errors and warnings that applies. Items 1 to 6 check the values you entered; items 7 to 11 check the values solved, which are a challenge's own when one is selected. A CHECK still returns every result it can; it marks something that deserves a second look. A limited crank arc is not a CHECK: it is a normal result of the Grashof class.
Assumptions and limitations
- Rigid links in a plane joined by ideal pins; the ground fixed along the x axis with O2 at the origin; the crank turns counterclockwise at a constant speed. Kinematics only: no masses, forces, torques, friction, flexibility, clearances or tolerances.
- One assembly rule for every frame, with no branch switching. A change-point linkage changes shape at its collinear positions. When two separate arcs exist, only the upper one is solved.
- 91 frames, every 4 degrees for a full rotation. The statistics read the frames, except the transmission extremes of a full rotation (which fall exactly on frames) and the crank-rocker closed forms.
- Straightness is judged at 13 samples over the window. The search covers p from −b/4 to 5b/4 and q from −3b/4 to 3b/4 only.
- Next to a dead point the position is very sensitive to the crank angle; this is the physics of a toggle position.
- A value within about 1×10⁻⁹ (relative) of a threshold, such as the Grashof equality, the dead-point test, a tie between candidates or a challenge limit, may fall either side of it.
Restrictions and non-computing states
Every input is required; a blank or out-of-range value reads NOT VALID.
Under NOT VALID every result and every grid cell is blank, except the model and module versions, the challenge result (No challenge selected, or NOT MET when a challenge is selected), the challenge score of 0, and a selected challenge's goal and feedback.
The straightness results, the search and the fit lines are blank when the window leaves the reachable range or meets an undetermined position.
Errors and warnings
The status messages, in the order they are checked:
NOT VALID: each link length must be from 0.01 to 2 mNOT VALID: each coupler point offset must be from -2 to 2 mNOT VALID: choose the assembly from the list: Open or CrossedNOT VALID: the crank speed must be from 1 to 300 rpmNOT VALID: the straightness window must start from -180 to 180 degrees and span 10 to 360 degreesNOT VALID: the challenge number must be a whole number from 0 to 5, and the type prediction one of the listed choicesNOT VALID: these lengths cannot be assembled: the longest link must be shorter than the other three together: the longest link is at least the other three together.CHECK: at some crank angles the position cannot be determined (for example the crank pin lands on the rocker pivot), so those frames are blank: a frame is flagged Undetermined.CHECK: this is a change-point linkage (shortest plus longest equals the other two): at its collinear positions it can switch assembly, and the frames keep one assembly ruleCHECK: part of the straightness window is outside the crank's reachable arc or at an undetermined position, so the straightness results are blank; move or shorten the window: with no challenge selected.CHECK: part of this challenge's straightness window is outside the crank's reachable arc or at an undetermined position, so the straightness results are blank; they do not count toward this challenge: in a challenge, whose window is fixed.OK
References
This laboratory is an educational model of a planar four-bar linkage with rigid links and ideal pin joints. The Grashof condition classifies the linkage and decides whether the crank can turn fully. Each position is solved in closed form as the intersection of two circles, on one chosen assembly, and the angular velocities come from the differentiated loop-closure equation, solved as a 2 × 2 linear system. For a crank-rocker the rocker swing and the quick-return time ratio follow in closed form from the extended and folded positions of the crank and coupler. The straightness of a coupler-point path is measured against its orthogonal (total least squares) best-fit line.
Sources and further reading
- The Grashof condition, as first published: F. Grashof, Theoretische Maschinenlehre, volume 2, Leopold Voss, Leipzig, 1883.
- Linkage types and the Grashof condition, position and velocity analysis of the four-bar linkage, the transmission angle, quick-return mechanisms and straight-line coupler curves: R. L. Norton, Design of Machinery: An Introduction to the Synthesis and Analysis of Mechanisms and Machines, 6th edition, McGraw-Hill Education, 2019, chapter 2, Kinematics Fundamentals, chapter 3, Graphical Linkage Synthesis, chapter 4, Position Analysis, and chapter 6, Velocity Analysis.
- Position and velocity analysis of planar linkages: J. J. Uicker, G. R. Pennock and J. E. Shigley, Theory of Machines and Mechanisms, 5th edition, Oxford University Press, 2017.
- Coupler curves, the Chebyshev straight-line linkage and the synthesis of four-bar linkages: R. S. Hartenberg and J. Denavit, Kinematic Synthesis of Linkages, McGraw-Hill, 1964.
- The line fitted by perpendicular (orthogonal) distances: K. Pearson, "On lines and planes of closest fit to systems of points in space", The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, series 6, volume 2, number 11, 1901, pages 559-572. doi:10.1080/14786440109462720
No table or text from any of these publications is reproduced, and none of their authors or publishers has reviewed or endorses this laboratory.
This laboratory is for learning. Its results hold only within its stated ranges; it is not a tool for designing or checking machines or mechanisms.
Found a problem, or have an idea?
Tell us if a result looks wrong, a label is unclear, or something is missing. We read every message.