Thermodynamics is defined as the study of energy and energy interaction with their relative matter.
The thermodynamic analysis can be done through various conservation equations such as mass, energy, etc.
When we classify thermodynamics, the two aspects are to be considered that is the boundary and flow of matter.
In thermodynamics we can classify boundaries as Fixed boundaries such as gas-filled cylinders, movable boundaries such as movable engines, flexible boundaries are piston cylinders, Imaginary boundaries, and real boundaries.
Real boundaries are those boundaries that completely separate the system from its surroundings. For example Rice in a bowl, milk in a glass