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

Latest commit

 

History

59 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Thermodynamic phase modelling of polymer solutions

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages