Workspace
The calculator's own fields, action and results arrive with the verified pack when you load it. Nothing is computed in this page.
The smallest whole number of compression stages that reaches an overall ratio without exceeding a per-stage limit, resolved to avoid a spurious extra stage.
The calculator's own fields, action and results arrive with the verified pack when you load it. Nothing is computed in this page.
Stages compose by multiplication. Two stages each doing a ratio of three deliver an overall ratio of nine, not six, and n stages at a per-stage ratio deliver that ratio to the power n. Inverting it is where the logarithm comes from: the count is the logarithm of the overall ratio divided by the logarithm of the per-stage limit, rounded upward because a machine can only have a whole number of stages.
The per-stage limit is an INPUT, and treating it as a fixed constant is the main way this calculation is misused. Figures around three to four are commonly cited, and the pack ships a default in that band while noting it is a rule of thumb, not a standard value. The real limit comes from the discharge temperature the stage would reach, from rod loading on a reciprocating frame, and from the vendor curve for the equipment in mind — so two engineers considering different machines will correctly use different numbers.
Rounding up is not rounding, and the difference is expensive. If the arithmetic lands a hair above a whole number, the ceiling adds an entire stage — a cylinder or wheel, an intercooler, a separator and its share of the foundation. That makes the result unusually sensitive to numerical noise near an exact boundary, and such boundaries are common, because duties are often specified as neat squares and cubes of a round ratio.
So the resolution is handled deliberately rather than left to the hardware. A limit of 1.2 applied twice reaches 1.44 exactly, and a limit of three applied twice reaches nine exactly, yet in binary floating point the logarithm quotient can land a fraction above two, and a naive ceiling would return three. The pack resolves the exponent to fourteen significant decimal digits before rounding, so a duty exactly reachable in two stages returns two. Both cases ship as declared test vectors, so the behaviour is checked rather than asserted.
Take this pack’s anchor case, the same machine the rest of this cluster describes: an overall ratio of 9.0 — the 100 psia to 900 psia duty — against a per-stage ratio limit of 3.5.
The count that comes back is the smallest whole number of stages reaching the duty without any stage exceeding the limit. Read it with what it implies for the per-stage ratio: dividing the duty evenly across that many stages lands comfortably below the limit supplied, and that figure is what the discharge temperature page should be given.
Now lower the limit from 3.5 to 3.0. The duty is exactly reachable there, because three squared is nine, so the count does not change — the boundary case the decimal resolution exists to protect, where a naive implementation would add a third stage for no physical reason.
The ratio across the whole machine, from first-stage suction to last-stage discharge, on absolute pressures. This is the output of the compression ratio calculation, and it must be the overall figure — a per-stage ratio supplied here returns a stage count for a machine that is not the one being considered.
The largest ratio a single stage is to be asked for. A judgement, not a constant: it comes from the discharge temperature that ratio would produce for this gas, from rod load on a reciprocating frame, and from what the intended equipment supports. The pack ships a commonly cited default so the calculation can run before that judgement is settled, and flags it as a rule of thumb.
Standard staging relation, n = ceiling of ln r / ln r_max
The stage exponent is the ratio of natural logarithms, resolved to fourteen significant decimal digits before being rounded up to the next whole stage, with a floor of one stage.
Screening and reference material, to be checked against the governing standard and a qualified engineer; not a design determination. The signed pack carries its own citation, and the page reports the verification state of the release it mounted.