This is a repository that shares codes in Matlab and Python for issues of thermodynamic consistency, calculations of liquid-vapor and liquid-liquid-vapor balances for non-reactive and reactive systems as well as for adjustment of thermodynamic parameters for quaternary NRTL model.