UNIFAC
An implementation of the group contribution method of the Dortmund modification of UNIFAC. Calculates the activity coeficients of species in a mixture based on functional group parameters
""" from unifac import Unifac_Dortmund
Set system parameters
smiles_lst = ["CCO", "CC(=O)C","CC=CC"] # NA x_lst=[1/3, 1/3, 1/3] # NA T=298 # K
mixture=Unifac_Dortmund(smiles_lst,x_lst,T)
Returns activity coefficient of component 0 in the mixture, according to the order in which the components were passed.
print(mixture.gamma_singular(0))
Returns activity coefficient of all components in the mixture according to the order in which componenets were passed
print(mixture.gamma_total())
stability analysis
mixture.is_stable_local() # computes local stability (spinodal)
mixture.is_stable_global() # computes global stability (binodal)
mixture.is_stable() # computes first local stability (cheap), and only if that is True it proceeds to calculate global stability (expensive)
"""
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unifac-0.1.0.tar.gz.
File metadata
- Download URL: unifac-0.1.0.tar.gz
- Upload date:
- Size: 71.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37491f920308549d746aac5a1e4abeedb13257d42881c6e9f1f208b0397b6d4c
|
|
| MD5 |
e10e00dbef32e724703999aa843fc096
|
|
| BLAKE2b-256 |
00d70bafe22254f5c5e9687d590ba03b4f31be45337025a5e5a8e6cb44f461c8
|
File details
Details for the file unifac-0.1.0-py3-none-any.whl.
File metadata
- Download URL: unifac-0.1.0-py3-none-any.whl
- Upload date:
- Size: 71.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ee9ddf56c83cc11163b1a77d4019d0a4624d892eb2f60471af49f35dddea0b5
|
|
| MD5 |
cc9b29442da5e7e0e535279defb9240e
|
|
| BLAKE2b-256 |
affd8d3bdff96285e82ab2eabe50a95caa645d550946216df92478da4205b11a
|