A thermodynamic system is a well-defined macroscopic region of the universe that is selected for study. It consists of a specific quantity of matter with a distinct boundary (either real or imaginary) that separates it from its surroundings. A system can interact with its surroundings by exchanging energy (in the form of heat and work) and/or matter.