Modelling of a dynamic multiphase flash: the positive flash: Application to the calculation of ternary diagrams