Development of Constrained Equilibrium Codes and Their Applications in Non-Equilibrium Thermodynamics