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

[WIP] Change MP input sets #3405

Closed
wants to merge 0 commits into from

Conversation

matthewkuner
Copy link
Contributor

@matthewkuner matthewkuner commented Oct 12, 2023

Follow-up to #3322.

  • Change LMAXMIX to 6 for all MP input sets
  • Change LREAL to False for MPRelaxSet and MPScanRelaxSet
  • add logic to set EDIFF = min(1e-4, NSITES * EDIFF_PER_ATOM) as per @esoteric-ephemera

TODO:

  • add logic for setting ISMEAR, SIGMA, and KPOINTS/KSPACING based on bandgap. Are we considering changing from KPOINTS to KSPACING like in the r2SCANRelaxSet?
  • Add a bandgap.setter like in
    @structure.setter
    This would enable bandgap to be set later in the same way as Structures (UPDATE: @utf said to leave this detail out of this PR, as he will address it in a future PR.)

@janosh @munrojm @esoteric-ephemera

@matthewkuner
Copy link
Contributor Author

matthewkuner commented Oct 12, 2023

What should the new logic be for setting ISMEAR/SIGMA/KPOINTS? @esoteric-ephemera

Maybe something like this?

if self.bandgap == None:
    self._config_dict["INCAR"].update({"ISMEAR": 0, "SIGMA": 0.05})
    self._config_dict["KPOINTS"]["reciprocal_density"] = 200 #kpoint density for metals (higher)
elif self.bandgap < 1e-4:
    self._config_dict["INCAR"].update({"ISMEAR": 1, "SIGMA": 0.2})
    self._config_dict["KPOINTS"]["reciprocal_density"] = 200 #kpoint density for metals (higher)
else:
    self._config_dict["INCAR"].update({"ISMEAR": 0, "SIGMA": 0.05})
    self._config_dict["KPOINTS"]["reciprocal_density"] = 64 #kpoint density for nonmetals (lower)

@janosh
Copy link
Member

janosh commented Oct 12, 2023

Do we want to change the input sets in place or create new versions? I think new versions are better.

@shyuep
Copy link
Member

shyuep commented Oct 12, 2023

Just change the existing sets.

@matthewkuner
Copy link
Contributor Author

I agree w/ changing existing sets. Otherwise we would have >10 different versions of MPRelaxSet

@janosh
Copy link
Member

janosh commented Oct 12, 2023

We also have 377 versions of pymatgen.

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

Successfully merging this pull request may close these issues.

3 participants