Heat and work are fundamental concepts for thermodynamical systems. When these are scaled down to the quantum level they require appropriate embeddings. Here we show that the dependence of the particle spectrum on system size giving rise to a formal definition of pressure can, indeed, be correlated with an external mechanical degree of freedom, modelled as a spatial coordinate of a quantum oscillator. Under specific conditions this correlation is reminiscent of that occurring in the classical manometer.