-
I have a cif file of molecules, and I'm creating a supercell and I want to be able to access the coordinates of the molecules of the original cell (each molecule individually), so that I can calculate distance distributions to other molecules (e.g., within minimum image convention). How can I do this? struct = Structure.from_file("227799.cif") This only gives a single unique molecule (I want the central molecules in their original positions in the unit cell as molecular objects that I can manipulate). Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Dan, This function is working as intended -- it is intended to extract a list of unique molecules. The functionality you want does sound useful however. Perhaps you can take a look at the code in Hope this helps, Matt |
Beta Was this translation helpful? Give feedback.
Hi Dan,
This function is working as intended -- it is intended to extract a list of unique molecules.
The functionality you want does sound useful however. Perhaps you can take a look at the code in
get_subgraphs_as_molecules()
and see how it might be adapted for the functionality you want? I can imagine it already does most of what you need.Hope this helps,
Matt