Skip to content
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

Removing the structures with large distortions #357

Open
darjaved opened this issue Feb 19, 2024 · 10 comments
Open

Removing the structures with large distortions #357

darjaved opened this issue Feb 19, 2024 · 10 comments

Comments

@darjaved
Copy link

Should i remove the structures with very large distortions, as CE is not able to predict those correctly. few are the DFT ground state structures also and CE is not predicting them, what should i do? any suggestions? how should i remove them?

@xivh
Copy link
Contributor

xivh commented Feb 20, 2024

Yes, you can use the atomic_deformation and lattice_deformation properties to find these structures. The cutoff values will depend on your system, so you can find those by selecting a few distorted structures and seeing what the deformation scores are.

@darjaved
Copy link
Author

How should i decide the cutoff to remove any structure?

@xivh
Copy link
Contributor

xivh commented Feb 28, 2024

You could try fitting iteratively to see how the fit performs, or find the score for a distortion that you know about. You can query struc_score to map onto other potential prims and use that as a cutoff. For example, if you are doing a BCC cluster expansion, you can find the deformation scores to HCP and FCC prims and use that for the cutoff values.

@darjaved
Copy link
Author

{
"atomic_deformation_cost" : 0.166758947604,
"best_score" : -43.362576690000,
"energy" : -43.362576690000,
"final_path" : "/data/javeedd/CE/Na_Sn_data/casm_0.5/G56/properties.calc.json",
"has_all_required_properties" : true,
"has_any_required_properties" : true,
"import_additional_files" : false,
"import_properties" : true,
"import_structure_file" : false,
"initial_path" : "/data/javeedd/CE/Na_Sn_data/casm_0.5/G56/properties.calc.json",
"is_new_best" : true,
"is_new_config" : true,
"lattice_deformation_cost" : 0.085088893640,
"preexisting_data" : false,
"preexisting_files" : false,
"properties_origin" : "/data/javeedd/CE/Na_Sn_data/casm_0.5/G56/properties.calc.json",
"score" : -43.362576690000,
"selected" : false,
"to_configname" : "SCEL8_8_1_1_0_4_0/4"
},
{
"atomic_deformation_cost" : 0.320702395235,
"best_score" : -43.677587780000,
"energy" : -43.658807650000,
"final_path" : "/data/javeedd/CE/Na_Sn_data/casm_0.5/G57/properties.calc.json",
"has_all_required_properties" : true,
"has_any_required_properties" : true,
"import_additional_files" : false,
"import_properties" : true,
"import_structure_file" : false,
"initial_path" : "/data/javeedd/CE/Na_Sn_data/casm_0.5/G57/properties.calc.json",
"is_new_best" : false,
"is_new_config" : true,
"lattice_deformation_cost" : 0.007317252087,
"preexisting_data" : false,
"preexisting_files" : false,
"properties_origin" : "/data/javeedd/CE/Na_Sn_data/casm_0.5/G57/properties.calc.json",
"score" : -43.658807650000,
"selected" : false,
"to_configname" : "SCEL8_2_4_1_3_1_0/34"

As can be seen in the above structures the cost values. if wonder is this much atomic deformation cost ok?
cost directly determines the distortion? 

@xivh
Copy link
Contributor

xivh commented Mar 1, 2024

That score is quite large. If you look at the relaxed structure, is it similar to the starting structure? Also, is the structure near your convex hull?

@darjaved
Copy link
Author

darjaved commented Mar 2, 2024

No, the relaxed structures looks highly distorted. Mostly the structures in my case have this much deformation costs, but CE could predict their energies except some structures, i have RMS value of 11 meV/atom. Structures near the hull are highly distorted ones having the atomic deformation scores more than 0.3.

@xivh
Copy link
Contributor

xivh commented Mar 11, 2024

Is it possible that there is another parent crystal structure for that region? For example, you can have relaxations going to FCC, BCC, HCP - you would need a separate project for each parent.

Also, do you have vacancies? If so, you may be finding highly distorted structures such as Na15Sn4.

@darjaved
Copy link
Author

darjaved commented Mar 12, 2024

What do you mean by another parent crystal? Sn has two crystal structures i.e., BCT and DC, so i took the BCT one and constructed my CE based on that, but there are large distortions almost at every Na composition. but CE could predict the energies with an RMS of 10 meV/atom. there is no clear trend between the predicted energy and the distortions.

No, i don't have vacancies.

@darjaved
Copy link
Author

darjaved commented Mar 12, 2024

There are some intermetallics for this system. Moreover, since CE could predict the energies of distorted structures within a reasonable error, what should i do? By including the configurations with the very large distortion and CE predicting them with very less error, aren't we predicting the energy of the configuration incorrectly?

@xivh
Copy link
Contributor

xivh commented Mar 18, 2024

What do you mean by another parent crystal? Sn has two crystal structures i.e., BCT and DC, so i took the BCT one and constructed my CE based on that

We usually make one cluster expansion for each parent structure, such as one for FCC and one for BCC, and then filter the relaxed structures so that they match the parent structure.

Moreover, since CE could predict the energies of distorted structures within a reasonable error, what should i do?

If you are satisfied with the error, then I think it is okay, but just be aware that with deformation scores that large you could be mixing different parent crystal structures together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants