Generalization of the first and second laws of thermodynamics to multi-component, multi-phase systems. Thermodynamic property relations, thermodynamic potentials, phase and chemical equilibria, reacting mixtures, and activation of reactions with applications in combustion, mixing and separation, power generation, and thermodynamic devices.