Pistons Modelled by Potentials