The cylinders of each engine were 22, 31, and 51 inches (56, 79, and 130 cm) in diameter and had a  stroke.
In this context, the cylinders of each engine had diameters of 22, 31, and 51 inches (56, 79, and 130 cm), with a corresponding stroke length that added to their overall dimensions.