Modelling of acid and basic slags