Problemcore
Function generation
Also called function generation synthesis.
Find a linkage whose output angle is a given function of its input angle, exactly at precision points and approximately in between.
Function generation is the kinematic synthesis task in which the output link of a mechanism must turn by an angle that is a given function of the angle of the input link. A given relation is mapped to angles by two linear scales, and the goal is a mechanism, usually a four-bar linkage, whose output angle follows the scaled function. A four-bar has only a few free dimensions, so it meets a general function exactly only at a few precision points, and the difference in between is the structural error. This page states the problem; the methods that solve it are linked from Known algorithms.
In plain words
You want a machine part that turns in a fixed relation to another part. When the first part turns by some amount, the second part must turn by an amount that a formula gives. Before computers, linkages of this kind did calculations, for example a square root or a logarithm, in gun sights and other instruments.
A four-bar linkage has only a few lengths to choose. It cannot follow most formulas exactly. You pick a few values where it must be exact, and accept a small error between them. The design question is how to choose the lengths, and where to put the exact values, so that the error stays small over the whole range.
Definition
Input.
- A function on an interval , with and , .
- An input range: a start angle and a sweep .
- An output range: a start angle and a sweep .
- A type of mechanism, usually the four-bar, sometimes the slider-crank (with a slide in place of the output angle) or a six-bar.
The scales map the variable and the value of to angles:
Output. The dimensions of the mechanism. For the four-bar in the notation of the four-bar page these are the input , coupler , output and ground , with the input pivot at , the output pivot at , and both angles counterclockwise from the ground line. One length sets the scale, so can be fixed.
Error. Let be the output angle of the mechanism on one fixed branch of its assembly. The structural error is
It is the error of an ideal mechanism with exact dimensions; the error from tolerances and clearances (the mechanical error) is a separate question.
Two forms of the problem.
- Precision points. Given in the interval, find a mechanism with for all , assembled on one branch over the whole range.
- Approximation. Find a mechanism that minimizes (the uniform or minimax form) or (the least squares form), with the same assembly condition.
The transmission angle and the link length ratios are usually constrained too.
Variants
- Fixed or free ranges. With , , , fixed, the four-bar has three free ratios. With the start angles free there are five unknowns, so up to five precision points.
- Output as a slide. A slider-crank turns an angle into a linear position .
- Infinitesimal precision points. Ask that and some of its derivatives vanish at one value of , so that the mechanism matches , and there.
- Multiple loops. Six-bars and geared linkages give more dimensions and so more precision points, at the cost of a harder system.
- Function generation by inversion. Seen from the input link, the output link makes a rigid motion, so the task is a case of motion generation for the output link relative to the input link.
Examples
Exact generators. A few functions are generated with zero structural error. For the four-bar with and , Freudenstein's equation has the constants and , and its half-angle quadratic factors. The two roots are
The first is the parallelogram, which generates . The second is the antiparallelogram, which for , generates exactly. Both pass through the change point where all four pins are on one line, at and . There the linkage can switch from one function to the other, which is why a physical parallelogram needs a guard at those points.
A sine generator. Let on , with from to () and , and . Take the three precision points at the Chebyshev spacing , which are , and in degrees of . The table gives three choices of the output start angle , the four-bar found by Freudenstein's equation for each, and its largest on a grid of 1000 values of along the branch through the precision points.
| , , | max | at | transmission angle | ||
|---|---|---|---|---|---|
| , , | , , | to | |||
| , , | , , | to | |||
| , , | , , | to |
The precision points are the same in the three rows. Only the start of the output scale moves, and the largest error changes by a factor of three. So , and are design variables of the problem, not data. In the row the error is at , at , and the inner peaks are and . These magnitudes are not equal, so this design is not the minimax design for these ranges.
A count that rules out exactness. With the ranges fixed, the four-bar outputs form a family with three parameters, and with free start angles five. A general given at six points is met at all six only for special data. So for most functions the structural error is not zero, and the question is how small it can be made.
Known algorithms
- Freudenstein's equation gives a linear system for three precision points. It is exact at the points if the system is regular and the result assembles on one branch.
- Chebyshev spacing chooses the precision points from the zeros of a Chebyshev polynomial. It lowers the polynomial factor in the usual estimate of the structural error, but does not give the minimax linkage.
- With free start angles, four or five precision points give a polynomial system, solved by elimination or by homotopy continuation.
- Least squares on the residual of Freudenstein's equation over many points is linear in . It minimizes the residual, not .
- Optimization-based dimensional synthesis minimizes or a sum of over many points directly, with local or global optimizers. A minimax design can be refined by an exchange of the error peaks, in the spirit of the Remez algorithm, but the linkage problem is not linear in its parameters, so the guarantees of that algorithm do not carry over.
Bounds
- Exact points. Three precision points for a four-bar with fixed ranges, five with free start angles. A Watt or Stephenson six-bar has more dimensions and so more points.
- Lower bounds on the error. For a linear family, Chebyshev's equioscillation theorem characterizes the best uniform approximation by the alternation of its error. The four-bar output is not a linear family in its dimensions, so that theorem does not apply directly, and the sources cited here give no general lower bound on the structural error of a four-bar for a given .
- Zeros. A design with precision points has at least zeros of in the interval. It can have more: the error can cross zero at points that were not prescribed.
Reductions
- To a linear system. For three precision points and fixed ranges, Freudenstein's equation is linear in .
- To motion generation. Fix the input link as a new ground. The output link then moves through rigid positions, and a dyad that guides it is the coupler and output of the four-bar.
- To polynomial interpolation, in an estimate. If the mechanism has enough free parameters and is smooth, is close to a constant times . This is the analogy with polynomial interpolation that motivates Chebyshev spacing. It is an estimate, not an identity.
Applications
Function generators computed the logarithm, the square, trigonometric functions and ballistic tables in mechanical analog computers and fire control instruments. Today the same task appears in steering linkages (the Ackermann relation between the angles of the two front wheels), throttle and valve linkages, and in any mechanism where an output must turn in a fixed nonlinear relation to an input. The study of linkages that approximate a motion led Chebyshev to his theory of best uniform approximation, which is now the theory on the minimax approximation page.
References
- Ferdinand Freudenstein, Approximate synthesis of four-bar linkages, Transactions of the ASME 77(8), 1955, 853 to 861, function generation with precision points, the structural error, and the spacing of the precision points
- Robert L. Norton, Design of Machinery, 6th edition, McGraw-Hill, 2019, Section 3.2 (p. 100, function generation as one of the three tasks) and Section 5.13 (p. 267, analytical synthesis of a fourbar function generator)
- Arthur G. Erdman, George N. Sandor and Sridhar Kota, Mechanism Design, Analysis and Synthesis, Volume 1, 4th edition, Prentice Hall, 2001, Chapter 8, Introduction to Kinematic Synthesis (function generation, precision points and the structural error)
- Richard S. Hartenberg and Jacques Denavit, Kinematic Synthesis of Linkages, McGraw-Hill, New York, 1964, the chapters on function generation and on the accuracy of precision point designs (general locator)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag AMPEFR Edit this page History Report an error Markdown