Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Latest commit

 

History

History
27 lines (21 loc) · 890 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 890 Bytes

Phase Modelling Using Convex Envelope Method

Installation instructions can be found in INSTALL.md

A sample use case is as follows:

import polyphase as phase

M = [5,5,1]
chi = [1, 0.5, 0.5]
f = lambda x : phase.flory_huggins(x, M, chi)
engine = phase.PHASE(f,400,3)
engine.compute(use_parallel=False, verbose=True, lift_label=True)

This generates phase diagrams of the confuguration mentioned. Few useful visualization tools are also provided. For example, phase diagram generated above can be visualized using:

engine.plot()

If you would like to run a multi-node parallel high-throughput computation use the serial version instead by replacing the compute line as below:

engine.compute(use_parallel=True, verbose=True, lift_label=True)

To run a simple example in jupyter use the following example