Title: Questions about the implementation of DQterm · feos-org/feos · Discussion #294 · GitHub
Open Graph Title: Questions about the implementation of DQterm · feos-org/feos · Discussion #294
X Title: Questions about the implementation of DQterm · feos-org/feos · Discussion #294
Description: Questions about the implementation of DQterm
Open Graph Description: Hi, I'm working for the implementation of polar term in our project, and have some questions about the implementaion of DQ polar term in feos. the constans of CDQ have significant differences with ...
X Description: Hi, I'm working for the implementation of polar term in our project, and have some questions about the implementaion of DQ polar term in feos. the constans of CDQ have significant differences w...
Opengraph URL: https://github.com/feos-org/feos/discussions/294
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Questions about the implementation of DQterm","text":"Hi,
\nI'm working for the implementation of polar term in our project, and have some questions about the implementaion of DQ polar term in feos.
\n\n- the constans of CDQ have significant differences with original paper.
\n
\npub const CDQ: [[f64; 2]; 3] = [\n [0.795009692, -2.099579397],\n [3.386863396, -5.941376392],\n [0.475106328, -0.178820384],\n];
\n
\nFor the implementation of polar term in feos, there are differences with original paper for other constans too, like ADQ, BDQ, ...
\nbut the differences is small, and i think it might be introduced from rounding off.
\n\n- the sign of phi3 is different from original paoper.
\n
\n for k in 0..p.ndipole {\n let dk = p.dipole_comp[k];\n phi3 += rho[di] * rho[qj] * rho[dk] * mu2_term[i] * q2_term[j] * mu2_term[k]\n / (p.sigma_ij[[di, qj]] * p.sigma_ij[[di, dk]] * p.sigma_ij[[qj, dk]])\n .powi(2)\n * triplet_integral_ijk_dq(mdqd[[i, j, k]], &etas, &CDQ);\n }\n for k in 0..p.nquadpole {\n let qk = p.quadpole_comp[k];\n phi3 += rho[di] * rho[qj] * rho[qk] * mu2_term[i] * q2_term[j] * q2_term[k]\n / (p.sigma_ij[[di, qj]] * p.sigma_ij[[di, qk]] * p.sigma_ij[[qj, qk]])\n .powi(2)\n * ALPHA\n * triplet_integral_ijk_dq(mdqq[[i, j, k]], &etas, &CDQ);\n }
\n
\nThe sign of original paper is negative, but the sign of feos positive, I don't know if it's a bug.
","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"Hi,
\nthanks for the questions. We will check the sign of $A_3^\\text{DQ}$ and come back to you with an answer.
\nRegarding the constants - the constants in the code are consistent with those of the publication. They are simply divided by $\\pi^2$ . $A_3^\\text{DQ}$ is then multiplied by $\\pi^2$ before returning.
","upvoteCount":1,"url":"https://github.com/feos-org/feos/discussions/294#discussioncomment-14116132"}}}
| 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:c94f28e7-3de9-2bc5-01fb-8d4404d3d266 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | A96A:2FC1A:56405:71F0E:698E957D |
| html-safe-nonce | 4d327506d6bbeb2279e873fc8057c8d587ef13c996dcccf6e8aa60f52bd7653a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTZBOjJGQzFBOjU2NDA1OjcxRjBFOjY5OEU5NTdEIiwidmlzaXRvcl9pZCI6IjI3NTc1OTI3OTUwNzM5MTAxNDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5f3eb967229542d267a55c1f6af1185805b2740665694a87b02c9bd9e2996690 |
| hovercard-subject-tag | discussion:8735321 |
| 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/294/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/d726799b89f28d528a1953bb015357953e8429b91fc796f2b22fffd62c9f4588/feos-org/feos/discussions/294 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d726799b89f28d528a1953bb015357953e8429b91fc796f2b22fffd62c9f4588/feos-org/feos/discussions/294 |
| og:image:alt | Hi, I'm working for the implementation of polar term in our project, and have some questions about the implementaion of DQ polar term in feos. the constans of CDQ have significant differences with ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width