Previously, the authors have designed and implemented an active motion control “virtual crankshaft” for a free piston engine, which enables precise piston tracking of desired trajectories. With this mechanism, the volume of the combustion chamber can be regulated, and therefore the pressure, temperature and species concentrations of in-cylinder gas can be adjusted in real-time which affect the combustion process directly. This new degree of freedom enables us to conduct trajectory-based combustion control. In this paper, a model of the free piston engine running homogeneous charge compression ignition combustion under variant piston trajectories is presented. The variant piston trajectories have the ability to change the compression ratio and accommodate different piston motion patterns between the top dead center and the bottom dead center. The Lawrence Livermore National Laboratory reduced n-heptane reaction mechanism is employed in the model in order to describe the chemical kinetics under various piston trajectories. Analysis of the simulation results is then presented which reveals the piston trajectory effects on the combustion phenomena in terms of in-cylinder gas temperature trace, indicated output work, heat loss and radical species accumulation process.