In mechanical engineering, the cylinders of reciprocating engines are often classified by whether they are single- or double-acting, depending on how the working fluid acts on the piston.