René's URL Explorer Experiment


Title: How can the binary parameters _epsilon_k_ab_ and _kappa_ab_ be explicitly submitted for a mixture? · feos-org/feos · Discussion #326 · GitHub

Open Graph Title: How can the binary parameters _epsilon_k_ab_ and _kappa_ab_ be explicitly submitted for a mixture? · feos-org/feos · Discussion #326

X Title: How can the binary parameters _epsilon_k_ab_ and _kappa_ab_ be explicitly submitted for a mixture? · feos-org/feos · Discussion #326

Description: How can the binary parameters _epsilon_k_ab_ and _kappa_ab_ be explicitly submitted for a mixture?

Open Graph Description: Dear all, we are developing a Python program for calculating LLE using FeOs for PC-SAFT calculations of chemical potential. In our case: One component has both a negative and positive association s...

X Description: Dear all, we are developing a Python program for calculating LLE using FeOs for PC-SAFT calculations of chemical potential. In our case: One component has both a negative and positive association s...

Opengraph URL: https://github.com/feos-org/feos/discussions/326

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How can the binary parameters _epsilon_k_ab_ and _kappa_ab_ be explicitly submitted for a mixture?","text":"

Dear all,

\n

we are developing a Python program for calculating LLE using FeOs for PC-SAFT calculations of chemical potential. In our case: One component has both a negative and positive association site. The other component only has a negative association site.

\n

Short Python example:
\nhmf = PureRecord(identifier=Identifier(name=\"HMF\"), molarweight=126.11, model_record=PcSaftRecord(m=2.72266, sigma=3.83791, epsilon_k=433.125, kappa_ab=0.0052651, epsilon_k_ab=2524.61, na=1, nb=1))
\nmthf = PureRecord(identifier=Identifier(name=\"MTHF\"), molarweight=86.132, model_record=PcSaftRecord(m=2.7191, sigma=3.6567, epsilon_k=265.09, kappa_ab=0, epsilon_k_ab=0, na=0, nb=1))
\npures = [hmf, mthf]

\n

In order to take the induced association in the mixture into account, we would like to explicitly specify epsilon_k_ab and kappa_ab as parameters for the mixture between the two components. However, when creating the equation of state we were not able to find a way for submitting epsilon_k_ab and kappa_ab to the PcSaftParameters object.

\n

Short Python example (unfortunately, this formulation didnt work and only adopts k_ij and not the other two parameters):
\nbinary = BinaryRecord(id1=Identifier(name=\"HMF\"),\tid2=Identifier(name=\"MTHF\"),model_record=PcSaftBinaryRecord(k_ij=0.015, kappa_ab=0.50, epsilon_k_ab=1800.0))
\nparams = PcSaftParameters.from_records(pures, [binary])
\neos = EquationOfState.pcsaft(params)

\n

How can we access the modelRecord constructor to submit the binary parameters epsilon_k_ab and kappa_ab for a mixture to the PC-SAFT EoS?

\n

Thanks for your help!

\n

Best regards,
\nMoritz

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Hello Moritz,

\n

the parameter handling was revised a bit from going from feos 0.8 to 0.9. One aspect we added was to increase the flexibility of the association scheme so that any (well most I guess) kinds of hydrogen bonding arrangements can be modeled.

\n

With the current feos version the code would look like this:

\n
import feos\n\nhmf = feos.PureRecord(identifier=feos.Identifier(name=\"HMF\"), molarweight=126.11, m=2.72266, sigma=3.83791, epsilon_k=433.125, association_sites=[{\"kappa_ab\": 0.0052651, \"epsilon_k_ab\": 2524.61, \"na\": 1, \"nb\": 1}])\nmthf = feos.PureRecord(identifier=feos.Identifier(name=\"MTHF\"), molarweight=86.132, m=2.7191, sigma=3.6567, epsilon_k=265.09, association_sites=[{\"nb\": 1}])\npures = [hmf, mthf]\n\nbinary = feos.BinaryRecord(id1=feos.Identifier(name=\"HMF\"),\tid2=feos.Identifier(name=\"MTHF\"), k_ij=0.015, association_sites=[{\"kappa_ab\": 0.50, \"epsilon_k_ab\": 1800.0}])\nparams = feos.Parameters.from_records(pures, [binary])\neos = feos.EquationOfState.pcsaft(params)\ndisplay(params)\neos.parameters
\n

eos.parameters contains the fully assembled matrix of association parameters, so that you can check whether everything was read in correctly. I move this to a discussion, because it could be interesting for other users as well.

","upvoteCount":2,"url":"https://github.com/feos-org/feos/discussions/326#discussioncomment-15150844"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:457fc09d-ff33-5f2d-a886-d8772a0df613
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idE28C:95A95:8E755:B7F8C:698E96C8
html-safe-nonce41e3705b81eb705950429979082e680215d1297637eb4c15bb91d30dbe65d907
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjhDOjk1QTk1OjhFNzU1OkI3RjhDOjY5OEU5NkM4IiwidmlzaXRvcl9pZCI6IjY3ODA3NDExMzI4NTI1NjU3MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2ea6ff691a2e34b198e5f52f256b3e2456493683d2d31c763d3daa8ec2c3e968
hovercard-subject-tagdiscussion:9204475
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/feos-org/feos/326/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/f0909e621c52f4a52a32cd646f1b7a110c7de93706342e3b01a31d5decd9e165/feos-org/feos/discussions/326
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f0909e621c52f4a52a32cd646f1b7a110c7de93706342e3b01a31d5decd9e165/feos-org/feos/discussions/326
og:image:altDear all, we are developing a Python program for calculating LLE using FeOs for PC-SAFT calculations of chemical potential. In our case: One component has both a negative and positive association s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba
turbo-cache-controlno-preview
go-importgithub.com/feos-org/feos git https://github.com/feos-org/feos.git
octolytics-dimension-user_id87855701
octolytics-dimension-user_loginfeos-org
octolytics-dimension-repository_id424905104
octolytics-dimension-repository_nwofeos-org/feos
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id424905104
octolytics-dimension-repository_network_root_nwofeos-org/feos
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6b91a7e6e46287d26887e3fb7a4161657bab8f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/feos-org/feos/discussions/326#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeos-org%2Ffeos%2Fdiscussions%2F326
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeos-org%2Ffeos%2Fdiscussions%2F326
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=feos-org%2Ffeos
Reloadhttps://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
Reloadhttps://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
Reloadhttps://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
feos-org https://patch-diff.githubusercontent.com/feos-org
feoshttps://patch-diff.githubusercontent.com/feos-org/feos
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Ffeos-org%2Ffeos
Fork 30 https://patch-diff.githubusercontent.com/login?return_to=%2Ffeos-org%2Ffeos
Star 177 https://patch-diff.githubusercontent.com/login?return_to=%2Ffeos-org%2Ffeos
Code https://patch-diff.githubusercontent.com/feos-org/feos
Issues 22 https://patch-diff.githubusercontent.com/feos-org/feos/issues
Pull requests 5 https://patch-diff.githubusercontent.com/feos-org/feos/pulls
Discussions https://patch-diff.githubusercontent.com/feos-org/feos/discussions
Actions https://patch-diff.githubusercontent.com/feos-org/feos/actions
Projects 0 https://patch-diff.githubusercontent.com/feos-org/feos/projects
Security 0 https://patch-diff.githubusercontent.com/feos-org/feos/security
Insights https://patch-diff.githubusercontent.com/feos-org/feos/pulse
Code https://patch-diff.githubusercontent.com/feos-org/feos
Issues https://patch-diff.githubusercontent.com/feos-org/feos/issues
Pull requests https://patch-diff.githubusercontent.com/feos-org/feos/pulls
Discussions https://patch-diff.githubusercontent.com/feos-org/feos/discussions
Actions https://patch-diff.githubusercontent.com/feos-org/feos/actions
Projects https://patch-diff.githubusercontent.com/feos-org/feos/projects
Security https://patch-diff.githubusercontent.com/feos-org/feos/security
Insights https://patch-diff.githubusercontent.com/feos-org/feos/pulse
Answered https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326#discussioncomment-15150844
prehnerhttps://patch-diff.githubusercontent.com/prehner
moritzhs6 https://patch-diff.githubusercontent.com/moritzhs6
Q&Ahttps://patch-diff.githubusercontent.com/feos-org/feos/discussions/categories/q-a
How can the binary parameters _epsilon_k_ab_ and _kappa_ab_ be explicitly submitted for a mixture? https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326#top
moritzhs6 https://patch-diff.githubusercontent.com/moritzhs6
Answered https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326#discussioncomment-15150844
prehnerhttps://patch-diff.githubusercontent.com/prehner
Return to tophttps://patch-diff.githubusercontent.com/feos-org/feos/discussions/326#top
Please reload this pagehttps://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
moritzhs6 https://patch-diff.githubusercontent.com/moritzhs6
Dec 3, 2025 https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326#discussion-9204475
Give feedback.https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
prehner https://patch-diff.githubusercontent.com/prehner
Dec 3, 2025 https://github.com/feos-org/feos/discussions/326#discussioncomment-15150844
View full answer https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326#discussioncomment-15150844
Oldest https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326?sort=old
Newest https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326?sort=new
Top https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326?sort=top
Please reload this pagehttps://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
prehner https://patch-diff.githubusercontent.com/prehner
Dec 3, 2025 https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326#discussioncomment-15150844
Give feedback.https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
https://patch-diff.githubusercontent.com/moritzhs6
Please reload this pagehttps://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
moritzhs6https://patch-diff.githubusercontent.com/moritzhs6
Dec 4, 2025 https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326#discussioncomment-15160171
Give feedback.https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
https://patch-diff.githubusercontent.com/prehner
Please reload this pagehttps://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
prehnerhttps://patch-diff.githubusercontent.com/prehner
Dec 5, 2025 https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326#discussioncomment-15170835
Give feedback.https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
moritzhs6https://patch-diff.githubusercontent.com/moritzhs6
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeos-org%2Ffeos%2Fdiscussions%2F326
🙏 Q&A https://patch-diff.githubusercontent.com/feos-org/feos/discussions/categories/q-a
https://patch-diff.githubusercontent.com/moritzhs6
https://patch-diff.githubusercontent.com/prehner
#325https://patch-diff.githubusercontent.com/feos-org/feos/issues/325
https://patch-diff.githubusercontent.com/feos-org/feos/discussions/326
https://patch-diff.githubusercontent.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.