Simulations of Key Design Parameters and Performance Optimization for a Free-piston Engine