-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add read_gtensor
and read_hyperfine_coupling
to txtSileORCA
#722
Conversation
I'm unsure about how we should handle units. ORCA reports the hfi-coupling in units of MHz. We could convert with a factor |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #722 +/- ##
==========================================
+ Coverage 86.82% 86.85% +0.03%
==========================================
Files 399 399
Lines 50835 50936 +101
==========================================
+ Hits 44137 44240 +103
+ Misses 6698 6696 -2 ☔ View full report in Codecov by Sentry. |
I just had a glance at the molecule3_property.txt output, some comments and suggestions:
Thanks for this @tfrederiksen ! |
Definitely we should add these things to the base units in sisl! |
And, should |
I think people working with hyperfine interactions are used to the abbreviation "HFI", but I'm also fine with choosing a more descriptive name, perhaps |
I would be in favor of that 👍 |
I don't quite see the relevance of that. Within the EPRNMR module there is (as far as I understand) just a single g-tensor corresponding to the given (global) electron spin state computed. In case of
Do you mean that the use of
I am not sufficiently familiar with ORCA to answer this. I think in practice, the way we have used it, is to first determine a molecular geometry, then to switch to a specialized basis and to compute the g-tensor and HFIs.
In the case of
However, the user may choose to compute for just a subset of nuclei. According to the ORCA manual:
It is therefore not clear which nuclei to be found in the output.
I tend to think |
It was more if ORCA enabled one to split stuff into molecules, and then this would return for
Ok, the point of the silebinder would be to do
Ok, so disregard my all atoms return value. It should then return for all available atoms. So here, a few comments. AFAIK, the current implementation would do: So I would suspect the I would still advocate on moving this to A question, is the pre-factor something that should be factored on the |
OK I see. Will change this.
OK, will do.
A list of dicts would be easier for me at this stage (how we currently have it in our scripts).
To my understanding the raw tensor already contains "everything" (dipolar + Fermi contact contributions). I am not sure why the output also provides a prefactor value (varies per nuclear species) but it is a factor that the code has used to get the raw tensor. Maybe some users will want it, I don't know. |
Great! Thanks! |
Maybe ready now? |
read_gtensor
and read_hfi
to txtSileORCA
read_gtensor
and read_hyperfine_coupling
to txtSileORCA
e91296e
to
c9b5648
Compare
Many thanks @tfrederiksen ! |
This PR enables easy reading of the electronic g-tensor and the hyperfine tensors from ORCA.
isort .
andblack .
[24.2.0] at top-leveldocs/
CHANGELOG.md