A predictive model for the tokamak density limit. (28th July 2016)