Text this: Mechanical formulation of helmholtz's thermodynamics