-
Notifications
You must be signed in to change notification settings - Fork 71
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
How can we obtain site-mapping between specific structures along subgroup relation #247
Comments
@kyledmiller |
Of course! Thanks so much for the quick response. Here are some example structures. They are CIF formate but I had to change the extension for GitHub to allow the upload. |
Currently, we only return the transition path, but sometimes people may just want to get the atomic mapping for the purpose of symetry analysis. By a 2nd look, it seems that something similar was planned earlier. |
Thanks for the response but perhaps something went wrong with the markdown because it looks like some of the comment is missing. |
@kyledmiller Checkout my most recently commit
After that, try to run the following script assuming that you input files are BTO-ls.cif and BTO-hs.cif. from pyxtal import pyxtal
from pyxtal.supergroup import supergroups
lt = pyxtal(); lt.from_seed('BTO-ls.cif'); print(lt)
ht = pyxtal(); ht.from_seed('BTO-hs.cif'); print(ht)
strucs, _, _, path, splitters = ht.get_transition(lt, d_tol=1.0)
# from low to high symmetry
path.reverse()
path = path[1:]
sup = supergroups(lt, path=path, show=True, max_per_G=2500)
# from high to low symmetry
for sp in splitters: print(sp) I am still not sure how you want to extract the information. If you want to programmatically access the data, there may be a better way to do so. |
That is extremely helpful. Thank you very much for the quick response, Prof. Zhu. It looks like there's a missing argument in a few of the return statements. I went ahead and made a PR to touch up the changes. Or here's a diff if you prefer
|
@kyledmiller Thanks, I just merged your pull request. Let me know if you have any other request. I am glad that this function is useful for your research. |
Thanks for the work you've all done here. This library is incredibly feature-rich. I am having trouble with one specific task though.
What I want
I would like to use PyXtal to generate a mapping between sites of two specific pre-existing structures which have a group-subgroup relationship.
For example, going between cubic and tetragonal perovskite, we see a splitting of the oxygen wyckoff site. I would like to be able to import 2 cif files and then generate the information/mapping below.
What I've tried
get_transition()
-- works to obtain child and parent structures in the same setting and describing the transformation but doesn't explicitly give site mapping or wyckoff splitting infowyckoff_split()
-- provides possible splittings of a set of wyckoff sites but I can't figure out how to systematically identify which splitting occurs between two input structuresI suspect this is already possible and I'm missing some existing functionality. Any advice would be appreciated.
The text was updated successfully, but these errors were encountered: