A computational model of axial piston swashplate pumps