Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with modelling activity coefficients in UNIFAC #252

Open
ivypch opened this issue Feb 6, 2024 · 3 comments
Open

Help with modelling activity coefficients in UNIFAC #252

ivypch opened this issue Feb 6, 2024 · 3 comments

Comments

@ivypch
Copy link

ivypch commented Feb 6, 2024

Hey guys, I'm interested in modelling activity coefficients of an API molecule with UNIFAC to determine a solubility limit in a solvent. The molecule is 3,5-dinitro-L-tyrosine and the solvent is DMSO (image of the API attached).
image
I'm not very familiar with Julia, so I'm not doing this in clapeyron but I am using the ogUNIFAC database in this github, and plugging it into a Python script. One thing I've noticed is that unlike interactions aren't symmetrical, i.e. the value for the CH2 - ACNO2 interaction differs from the ACNO2 - CH2 interaction by an order of magnitude. I had always thought that the unlike interactions would be the same regardless of which molecule is first. What am I missing here - is it perhaps a misunderstanding of how the dataset is laid out? And if the unlike interactions are indeed asymmetrical, meaning order matters, then what exactly determines the order of molecules in this dataset? Any help would be greatly appreciated!

@pw0908
Copy link
Member

pw0908 commented Feb 6, 2024

Hi! The unlike parameters in UNIFAC are indeed asymmetric where, for a parameter A_ij, we are refering to the effect of species j when it is surrounding species i. This is the order we've written it in our databank. I'd recommend taking a look at the course we've developed on this where it describes in more detail how these activity coefficient models are derived.

Some additional comments:

  1. I'd recommend using the standard (Dortmund) UNIFAC model as it has far more parameters than ogUNIFAC.
  2. Although you may not be using Julia, I'd recommend taking a look at another package we've developed: GCIdentifier.jl which will assign all the groups for a given species, automating the whole process for you.

@ivypch
Copy link
Author

ivypch commented Feb 7, 2024

Hi! The unlike parameters in UNIFAC are indeed asymmetric where, for a parameter A_ij, we are refering to the effect of species j when it is surrounding species i. This is the order we've written it in our databank. I'd recommend taking a look at the course we've developed on this where it describes in more detail how these activity coefficient models are derived.

Some additional comments:

  1. I'd recommend using the standard (Dortmund) UNIFAC model as it has far more parameters than ogUNIFAC.
  2. Although you may not be using Julia, I'd recommend taking a look at another package we've developed: GCIdentifier.jl which will assign all the groups for a given species, automating the whole process for you.

Hey, thanks for the reply. I'm trying to get the solubility directly from julia, but I'm running into the following error:
image

I've updated Clapeyron to the latest version, and attempted restarting Julia, but the error persists. Any ideas what the problem could be?

@longemen3000
Copy link
Member

try using SolidHfus, with lowercase f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants