  A quantum Otto engine based on a three-dimensional harmonic oscillator is
proposed. One of the modes of this oscillator functions as the working fluid,
while the other two play the role of baths. The coupling between the working
fluid and the baths is controlled using an external central potential. All four
strokes of the engine are simulated numerically, exploring the nonadiabatic
effects in the compression and expansion phases, as well as the energy transfer
during the working fluid's contact with the baths. The efficiency and power of
several realizations of the proposed engine are also computed with the former
agreeing well with the theoretical predictions for the quantum Otto cycle.
