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

Defect: Allow bulk SC calculation to be skipped. #742

Merged
merged 73 commits into from
Jul 18, 2024

Conversation

jmmshn
Copy link
Contributor

@jmmshn jmmshn commented Feb 26, 2024

Defect Calcs: Allow bulk SC calculation to be skipped.

Upstream changes now allow arbitrary UC Locpots to be used for the Freysoldt correction.
materialsproject/pymatgen-analysis-defects#171

So you can just start with the UC LOCPOT and the SC defect LOCPOT and obtain the correction value.
For the large-scale runs that we are doing this is a lot easier for bookkeeping purposes.

Additionally, using a relaxed bulk supercell is not directly comparable with the output of defect SC relaxation with selective dynamics.
So skipping the bulk relax calculation should also be better in that situation.

update structure matcher

update structure matcher

update structure matcher

update structure matcher

update structure matcher
debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging
dev script change

dev script change

dev script change

dev script change

dev script change

dev script change

dev script change

test
@yuan-gist
Copy link

Thanks a lot for clarifying. I am building a defect database, though it will not be large scale. I really like the "get_defect_entry", which combines different charge states of a defect. The previous one also contains more bulk info. These greatly facility the query. The only thing I feel missing is the "electrostatic potential" for Kumagai corrections. I am considering adding them to the "get_defect_entry". It is just because sometimes I do not want to do the original FNV corrections because of anisotropy in dielectric constant.

@yuan-gist
Copy link

I would also like to suggest the MP_id and formula_pretty can be added somewhere to facilitate database organization and query.

@jmmshn
Copy link
Contributor Author

jmmshn commented Feb 29, 2024

The way the old function works should not be changed at all with this update.
The changes should just skip a few steps and delegate some of the stuff to the builders if you choose to do so.

Adding MP-ids and stuff will have to be done by a builder at a later, the closest you can get to that right now is through updating metadata.

@yuan-gist
Copy link

Hi @jmmshn Not sure there will be adding atomic-site electrostatic potential to get_defect_entry? I did it locally.

@jmmshn
Copy link
Contributor Author

jmmshn commented Mar 15, 2024

@yuan-gist Can you start a WIP PR for that? I think it will be really useful.

@yuan-gist
Copy link

@yuan-gist Can you start a WIP PR for that? I think it will be really useful.

Sure. Will be done by next week

@utf
Copy link
Member

utf commented Mar 28, 2024

Is this still WIP?

@jmmshn jmmshn changed the title [WIP] Defect: Allow bulk SC calculation to be skipped. Defect: Allow bulk SC calculation to be skipped. May 14, 2024
@jmmshn jmmshn marked this pull request as ready for review May 14, 2024 22:23
@jmmshn
Copy link
Contributor Author

jmmshn commented May 14, 2024

@utf missed the message above. I have been running this and some downstream builders at scale and wanted to get a good handle on the results to see if more changes are needed.
This should be good to go now.

@utf
Copy link
Member

utf commented Jul 18, 2024

Thanks @jmmshn. Appologies for the delay.

@utf utf merged commit 7b719e5 into materialsproject:main Jul 18, 2024
6 checks passed
@utf utf added the enhancement Improvements to existing features label Jul 18, 2024
@jmmshn
Copy link
Contributor Author

jmmshn commented Jul 18, 2024

Thanks @jmmshn. Appologies for the delay.

@utf No worries! I'm actually able to scale this workflow to do some real science for the first time.
Doing some data cleanup before writing the manuscript, but I will send that to you once completed!

BryantLi-BLI pushed a commit to BryantLi-BLI/atomate2 that referenced this pull request Jul 29, 2024
* start electrodes

* start electrode

* start electrode

* start electrode

* start electrode

* start electrode

* VASP electrode job

* VASP electrode job

* lint

* n steps

* n steps

* n steps

* n steps

* rm defect changes

* rm defect changes

* update

* update

* update

* update structure matcher

update structure matcher

update structure matcher

update structure matcher

update structure matcher

update structure matcher

* debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

* debugging

* debugging

* debugging

* debugging

* append names

* append names

* append names

* append names

* append names

* dev script change

dev script change

dev script change

dev script change

dev script change

dev script change

dev script change

dev script change

test

* working test

* typo

* lint

* lint

* lint

* lint

* allow different bulk relax

* update

* update

* update

* update

* hydrogen

* update emmet

* ulid tests

* emmet

* uc_bulk

* update docs

* update docs

* update depent

* get charge state calcs ASAP

---------

Co-authored-by: Alex Ganose <[email protected]>
hrushikesh-s pushed a commit to hrushikesh-s/atomate2 that referenced this pull request Nov 16, 2024
* start electrodes

* start electrode

* start electrode

* start electrode

* start electrode

* start electrode

* VASP electrode job

* VASP electrode job

* lint

* n steps

* n steps

* n steps

* n steps

* rm defect changes

* rm defect changes

* update

* update

* update

* update structure matcher

update structure matcher

update structure matcher

update structure matcher

update structure matcher

update structure matcher

* debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

debugging

* debugging

* debugging

* debugging

* debugging

* append names

* append names

* append names

* append names

* append names

* dev script change

dev script change

dev script change

dev script change

dev script change

dev script change

dev script change

dev script change

test

* working test

* typo

* lint

* lint

* lint

* lint

* allow different bulk relax

* update

* update

* update

* update

* hydrogen

* update emmet

* ulid tests

* emmet

* uc_bulk

* update docs

* update docs

* update depent

* get charge state calcs ASAP

---------

Co-authored-by: Alex Ganose <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants