What is the difference between the minimum required work for separation of components of a binary mixture in constant temperature and pressure to its pure components of an ideal mixture with a non-ideal mixture?
Well answer to this question is $g^E$, which is excess free Gibbs energy and is defined as $g^E=g-g^{id}$.
According to @Chet Miller hints: Let's suppose that a flow with enthalpy $H_1$ enters a C.V. (which is in contact with a constant temperature (T) reservoir) and two separated flows with enthalpies $H_1$ and $H_2$ go out. Minimum work is obtained when process is reversible, so first law gives $$Q-W_{rev}=H_1+H_2-H=- \dot{n} \Delta h_{mix}$$ On the other hand second law gives $$\frac{Q}{T}+S_1+S_2-S=0 \ \ \Longrightarrow \ \ Q=T \dot{n} \Delta s_{mix}$$Putting back in the first law equation gives $$\frac{W_{rev}}{\dot{n}}=\Delta h_{mix}+ T \Delta s_{mix}$$ This is supposed to be $\Delta h_{mix}- T \Delta s_{mix}=\Delta g_{mix}$ !! Where did I go wrong?