Title: Difference in Molar Enthalpies between EoS and DFT · Issue #68 · feos-org/feos · GitHub
Open Graph Title: Difference in Molar Enthalpies between EoS and DFT · Issue #68 · feos-org/feos
X Title: Difference in Molar Enthalpies between EoS and DFT · Issue #68 · feos-org/feos
Description: Contributions.IdealGas uses different methods for EoS and DFT (see below). Joback gives very small values for the IdealGas molar enthalpy (as fat as I tested all in the range ~1e-13 * JOULE). import numpy as np from feos.si import * from...
Open Graph Description: Contributions.IdealGas uses different methods for EoS and DFT (see below). Joback gives very small values for the IdealGas molar enthalpy (as fat as I tested all in the range ~1e-13 * JOULE). impor...
X Description: Contributions.IdealGas uses different methods for EoS and DFT (see below). Joback gives very small values for the IdealGas molar enthalpy (as fat as I tested all in the range ~1e-13 * JOULE). impor...
Opengraph URL: https://github.com/feos-org/feos/issues/68
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Difference in Molar Enthalpies between EoS and DFT","articleBody":"`Contributions.IdealGas` uses different methods for EoS and DFT (see below). \r\n\r\nJoback gives very small values for the `IdealGas` molar enthalpy (as fat as I tested all in the range ~1e-13 * JOULE). \r\n\r\n\r\n```python \r\nimport numpy as np\r\n\r\nfrom feos.si import *\r\nfrom feos.pcsaft import *\r\n\r\nfrom feos.eos import EquationOfState, Contributions\r\nfrom feos.eos import State as EosState\r\nfrom feos.eos import PhaseEquilibrium as EosPhaseEquilibrium\r\n\r\nfrom feos.dft import HelmholtzEnergyFunctional, PhaseEquilibrium\r\nfrom feos.dft import State as DftState\r\nfrom feos.dft import PhaseEquilibrium as DftPhaseEquilibrium\r\n\r\nsubstances = ['nitrogen', 'methane']\r\nparams = PcSaftParameters.from_json(substances=substances, pure_path='pure_parameters.json', binary_path='binary_parameters.json', search_option=IdentifierOption.Name)\r\n\r\neos = EquationOfState.pcsaft(params)\r\ndft = HelmholtzEnergyFunctional.pcsaft(params)\r\n\r\nvle_eos = EosPhaseEquilibrium.bubble_point(eos, temperature_or_pressure=110*KELVIN, liquid_molefracs=np.array([0.1, 0.9]))\r\nvle_dft = DftPhaseEquilibrium.bubble_point(dft, temperature_or_pressure=110*KELVIN, liquid_molefracs=np.array([0.1, 0.9]))\r\n\r\nprint(vle_eos.liquid.helmholtz_energy_contributions()) # Gives QSPR as IdealGas contribution\r\nprint(vle_dft.liquid.helmholtz_energy_contributions()) # Gives Joback as IdealGas contribution\r\n\r\nprint(vle_eos.liquid.molar_enthalpy(contributions=Contributions.ResidualNvt) - vle_dft.liquid.molar_enthalpy(contributions=Contributions.ResidualNvt)) #Gives very good agreement in the ResidualNvt contribution\r\n\r\nprint(vle_eos.liquid.molar_enthalpy(contributions=Contributions.IdealGas) - vle_dft.liquid.molar_enthalpy(contributions=Contributions.IdealGas)) # Gives large discrepancy in IdealGas contribution\r\n```\r\n","author":{"url":"https://github.com/RolfStierle","@type":"Person","name":"RolfStierle"},"datePublished":"2022-11-08T15:11:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/68/feos/issues/68"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9763b7bc-5fef-5105-a147-bd62f1141f23 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8942:13C44A:E5638E:125186B:69909153 |
| html-safe-nonce | 5d55fb785e4b27260bb65f065301b55b63d96454bbb844c1e232e671c9a8e516 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTQyOjEzQzQ0QTpFNTYzOEU6MTI1MTg2Qjo2OTkwOTE1MyIsInZpc2l0b3JfaWQiOiIzOTU3NjE5MzE5MTQwMDI4NzU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 91661f53d0237c4161523e52d6d822d1607a744afcb552531689bd4468a4351a |
| hovercard-subject-tag | issue:1440387457 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/feos-org/feos/68/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf5052cd881656a42eda17541e950c86ba1d9de1b09d0accc6f6002d9bd9278d/feos-org/feos/issues/68 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf5052cd881656a42eda17541e950c86ba1d9de1b09d0accc6f6002d9bd9278d/feos-org/feos/issues/68 |
| og:image:alt | Contributions.IdealGas uses different methods for EoS and DFT (see below). Joback gives very small values for the IdealGas molar enthalpy (as fat as I tested all in the range ~1e-13 * JOULE). impor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RolfStierle |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width