Title: Error when computing vle of polyethylene + supercritical ethylene · feos-org/feos · Discussion #234 · GitHub
Open Graph Title: Error when computing vle of polyethylene + supercritical ethylene · feos-org/feos · Discussion #234
X Title: Error when computing vle of polyethylene + supercritical ethylene · feos-org/feos · Discussion #234
Description: Error when computing vle of polyethylene + supercritical ethylene
Open Graph Description: I tried to compute the phase equilibrium of PE and ethylene with PC-SAFT EOS to reproduce the results of [T. Spyriouni, I.G. Economou / Polymer 46 (2005) 10772–10781] I modified the code in example...
X Description: I tried to compute the phase equilibrium of PE and ethylene with PC-SAFT EOS to reproduce the results of [T. Spyriouni, I.G. Economou / Polymer 46 (2005) 10772–10781] I modified the code in example...
Opengraph URL: https://github.com/feos-org/feos/discussions/234
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Error when computing vle of polyethylene + supercritical ethylene","text":"I tried to compute the phase equilibrium of PE and ethylene with PC-SAFT EOS to reproduce the results of [T. Spyriouni, I.G. Economou / Polymer 46 (2005) 10772–10781]
\n
\nI modified the code in examples/pcsaft/PhaseDiagrmBinary.ipynb for supercritical mixture and is like this:
\nfrom feos.si import *\nfrom feos.pcsaft import *\nfrom feos.eos import *\n\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nethylene = PureRecord(\n identifier=Identifier(\n cas='74-85-1',\n name='ethylene',\n iupac_name='ethene',\n smiles='C=C',\n inchi='InChI=1/C2H4/c1-2/h1-2H2',\n formula='C2H4'\n ),\n molarweight=28.05,\n model_record=PcSaftRecord(\n m=1.593,\n sigma=3.445,\n epsilon_k=176.47,\n )\n)\n\npolyethylene = PureRecord(\n identifier=Identifier(\n cas='9002-88-4\"',\n name='polyethylene',\n iupac_name='whatever',\n smiles='whatever',\n inchi='Whatever',\n formula='[C2H4]n'\n ),\n molarweight=99000,\n model_record=PcSaftRecord(\n m=2603.7,\n sigma=3.75,\n epsilon_k=252.00,\n )\n)\n\nparams = PcSaftParameters.new_binary([ethylene, polyethylene], binary_record=0.0427)\n\nsaft = EquationOfState.pcsaft(params)\ndia_p = PhaseDiagram.binary_vle(saft, 423.15*KELVIN)\n
\nBut I got a error that
\ndia_p = PhaseDiagram.binary_vle(saft, 423.15*KELVIN)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: System is supercritical.\n
\nI also tried the mixture of supercritical ethylene with shorter alkanes, FeOs pcsaft works well. Is it a error solving equations for polymer’s properties?
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Thank you for bringing this to our attention and the comprehensive example! While PC-SAFT can and has been used to describe properties of polymers, it was not a high priority of ours during the development of FeOs. The special circumstances like the high pressures and the extremely low (molar) concentrations of the polymer pose challenges on standard phase equilibrium calculations. The calculation of properties (e.g. activity or fugacity coefficients) can be expected to work perfectly fine for polymers. However, you would need a dedicated algorithm to determine the cloud or shadow points of polymer/monomer mixtures.
","upvoteCount":1,"url":"https://github.com/feos-org/feos/discussions/234#discussioncomment-9057601"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:0b884e90-1478-2230-be26-a87c14529893 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | AB26:D2DF1:6C0094:76FAF3:698FA1A9 |
| html-safe-nonce | 44647109dcc79e74ee5fde2f7b6edac0b28476bf503209ba659013570c640010 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjI2OkQyREYxOjZDMDA5NDo3NkZBRjM6Njk4RkExQTkiLCJ2aXNpdG9yX2lkIjoiMzY2MjM3MTcxNjgwNTE4NTY5IiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | f1d34fe21f97e8d715f349fb7a4f94ebb944e41529a85e1b483a8f8bd7a18cb2 |
| hovercard-subject-tag | discussion:6482053 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/feos-org/feos/234/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/e44cfc1d02f04b8f5d253dc0fc3b1a1f78807360a9186286d87534a13b5d5a72/feos-org/feos/discussions/234 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e44cfc1d02f04b8f5d253dc0fc3b1a1f78807360a9186286d87534a13b5d5a72/feos-org/feos/discussions/234 |
| og:image:alt | I tried to compute the phase equilibrium of PE and ethylene with PC-SAFT EOS to reproduce the results of [T. Spyriouni, I.G. Economou / Polymer 46 (2005) 10772–10781] I modified the code in example... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f47eb8d0aaafbfcb6a8220a40bd81431acf688857c575e6489670c394cfa36f |
| turbo-cache-control | no-preview |
| go-import | github.com/feos-org/feos git https://github.com/feos-org/feos.git |
| octolytics-dimension-user_id | 87855701 |
| octolytics-dimension-user_login | feos-org |
| octolytics-dimension-repository_id | 424905104 |
| octolytics-dimension-repository_nwo | feos-org/feos |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 424905104 |
| octolytics-dimension-repository_network_root_nwo | feos-org/feos |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 17aba3d160d69b8c2b37695ebd174d8101af8896 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width