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
Generate random ordered structures from disordered structure #3049
Comments
Could you share how this differs from |
Also, thank you for the clearly described and illustrated issue. |
Hi @mkhorton, thank you very much for your comment! I just found out about |
hello, exenGT, I'm wondering how did you show the crystal strucuture in this Issue, please inform me, thank you very much !!! |
Hi @HegemonyTao, sorry for my late reply. The crystal structures here are visualized with VESTA. Hope that helps! |
Problem
For molecular dynamics simulation and machine learning data generation of random structures, one might desire to have a routine that transforms a given disordered structure$S$ to a set of randomly ordered structures $\{S'_i\}$ , where each randomly ordered structure $S'_i$ has the same overall composition as the disordered structure $S$ .
Currently for this purpose, there exists
OrderDisorderedStructureTransformation
intransformations/standard_transformations.py
. However, this function over-complicates the problem by using the Ewald energy to rank the generated randomly ordered structures. When the structure in question is very large (e.g. >= thousands of atoms in a typical MD simulation), this approach simply won't work due to the combinatorially increasing search space. Instead, what we actually want is very simple: a set of randomly ordered structures. The energy ranking is not of concern here.Proposed Solution
We have implemented a new standard transformation routine, named
RandomStructureTransformation
. Given a disorderedstructure
, and a numbernum_copies
, its methodapply_transformation
returns a set ofnum_copies
copies of randomly ordered structures. This routine distinguishes between inequivalent sublattices of the crystal.Additional Info
The following example shows the usage of this routine:
Below are the screenshots of the generated random structures:
If this feature is desired, I can initiate a pull request.
The text was updated successfully, but these errors were encountered: