Exergy expression Stream $B={B}_{k}+{B}_{p}+{B}_{ph}+{B}_{ch}$ Bk is Kinetic Exergy, Bp is Potential Exergy, Bph is Physical Exergy, Bch is the Chemical Exergy [25] . Process ${B}_{\text{product}}={B}_{\text{input}}–{B}_{\text{losses}}–{B}_{\text{waste}}$ Bproduct is the Useful energy, Bloss is mainly due to inner friction, Bwaste is the energy of solid and liquid waste from product and air emissions. Binput is the sum of Bfuel, Belasticity and Bothers that are applied to the production process [25] . Work $B=W-{W}_{surr}$ Where ${W}_{surr}={P}_{o}\left({V}_{2}–{V}_{1}\right)$ [25] . Heat transfer ${B}_{\text{heat}}=Q\left[1-\frac{{T}_{o}}{T}\right]$ To is the temperature of the environment, T is the temperature at which the heat transfer takes places, Q is heat transfer rate. Chemical ${B}_{ch}=\phi HHV$ φ, the fuel chemical exergy factor = For diesel [26] , φ is 1.07 and for natural gas, it can be approximated as 0.94 [27] quoted in [28] . HHV = higher heating value. Control mass ${B}_{2}-{B}_{1}={\sum }^{\text{​}}\left[1-\frac{{T}_{o}}{{T}_{k}}\right]{Q}_{k}-\left[W-{P}_{o}\left({V}_{2}-{V}_{1}\right)\right]{T}_{o}{S}_{gen}$ To―reference temperature, S―entropy. Control volume ${B}_{2}-{B}_{1}={\sum }^{\text{​}}\left[1-\frac{{T}_{o}}{{T}_{k}}\right]{Q}_{k}-\left[W-{P}_{o}\left({V}_{2}-{V}_{1}\right)\right]{T}_{o}{S}_{gen}+{M}_{i}{\Psi }_{i}-{M}_{e}{\Psi }_{e}$