In the thermodynamic analysis, all states defined in the system are assumed to be in thermodynamic equilibrium ; each state has mechanical, thermal, and phase equilibrium, and there is no macroscopic change with respect to time. For the analysis of the system, the first law and second law of thermodynamics can be applied.