This partialy is home work of ENMA 660. It is a java applet, you can input data and click the button, then comes the phase diagram. It could draw the phase diagram with low consolute point now. It is slow, and more work need to be done. Anyway, it could do something.
Below is the applet. If you want to try, just click the button with "calculate"