Create the available_basis_functions
used by lobster.
#171
Replies: 8 comments
-
Hey, I'm not quite certain what is the outcome you want to achieve here, do you have some more details? |
Beta Was this translation helpful? Give feedback.
-
I hope to get the same output as the following:
|
Beta Was this translation helpful? Give feedback.
-
It is hard to guess what are those entries in the file whose output you are trying to reproduce. It does not seem these are electronic configurations since entry for Li is Regardless I noticed the other difference is ordering of orbitals, where your files follows principal quantum number first whereas mendeleev prints aufbau ordering by default. Here is how you can reorder orbitals to match the output you are showing: from mendeleev import element
from mendeleev.econf import ORBITALS
for atomic_number in range(1, 104):
elem = element(atomic_number)
conf = sorted(elem.ec.conf, key=lambda x: (x[0], ORBITALS.index(x[1])))
conf_str = " ".join(f"{n}{o}" for n,o in conf)
print(f"{elem.atomic_number} {elem.symbol} {conf_str}") which produces the following
Hope that helps. |
Beta Was this translation helpful? Give feedback.
-
According to the description here, the
I tried the code snippet above, but the results still differ a little from the |
Beta Was this translation helpful? Give feedback.
-
It's not sufficiently specified what the required format should be for the file you're trying to produce. Feel free to modify the snippet to fit your needs if that's an option. This is not really an issue with mendeleev so I'm going to close it. You are welcome to move it to github discussions. |
Beta Was this translation helpful? Give feedback.
-
How to move it to github discussions? |
Beta Was this translation helpful? Give feedback.
-
Here are the github discussions for |
Beta Was this translation helpful? Give feedback.
-
What I mean is that it seems like the repository owner can convert an issue into a discussion, instead of creating it from scratch. |
Beta Was this translation helpful? Give feedback.
-
I try to create the
available_basis_functions
used by lobster as follows:But the above result is very different from the target file format, as shown below:
I wonder whether I can generate the exact same target file by using this package. Any tips/comments will be appreciated.
All the files mentioned above are attached.
availabe_basis_functions.zip
Regards,
Zhao
Beta Was this translation helpful? Give feedback.
All reactions