Mechanics is dealing with forces that are effecting some body, electrostatics is about electrical fields of not moving bodies, and quantum mechanics is dealing with quantum states of atoms.
Thermodynamics as the word say, is dealing with thermal energy that is moving (transferring from one body to another or even better from one medium to another).