Thermodynamics is both a branch of physics and an engineering science. The scientist is normally interested in gaining a fundamental understanding of the physical and chemical behavior of fixed, quiescent quantities of matter and uses the principles of thermodynamics to relate the properties of matter. Engineers are generally interested in studying systems and how they interact with their surroundings. To facilitate this, engineers have extended the subject of thermodynamics to the study of systems through which matter flows.