A thermodynamic system is a specific portion of matter or a space chosen for analysis. It is separated from its surroundings by a boundary which can be real or imaginary, fixed or movable.