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

diel in OCEAN #195

Open
FCMeng opened this issue Sep 20, 2023 · 7 comments
Open

diel in OCEAN #195

FCMeng opened this issue Sep 20, 2023 · 7 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@FCMeng
Copy link
Collaborator

FCMeng commented Sep 20, 2023

In the basic jupyter note book, there is a code block like:

ocean_params = OCEANParameters(
    edge="K",
    diel=6.84,
    cards=mycards,
    kpoints=lightshow.common.kpoints.GenericEstimatorKpoints(cutoff=33),
    nbands=lightshow.common.nbands.UnitCellVolumeEstimate(e_range=40)
)

If there are multiple materials provided, diel should not set to a given value, since this will be assigned to all the materials. The easiest way is to get this value from MP. @deyulu I remember you had collaboration work using OCEAN. Please double check if this setting is correct or not.

@matthewcarbone matthewcarbone added the bug Something isn't working label Sep 27, 2023
@matthewcarbone
Copy link
Contributor

@deyulu this looks like a bug which we can easily fix by setting diel=None in the parameters and then, if it is None, using the provided value from the Materials Project. Thoughts?

@deyulu
Copy link
Collaborator

deyulu commented Sep 27, 2023

@matthewcarbone dielectric constant is a required parameter in ocean. If there is no value retrieved from MP, we need to throw an error message, so that user can fix it. Does it make sense? @jtv3, what do you think?

@matthewcarbone
Copy link
Contributor

@deyulu Yeah all sounds good. So I think the plan should be to

  1. If diel=None, set the value from the MP
  2. If diel is not None, then use that value for all materials (maybe throw a warning that this is not recommended)

@jtv3
Copy link
Collaborator

jtv3 commented Sep 27, 2023 via email

@matthewcarbone
Copy link
Contributor

@jtv3 does that mean you think we shouldn't provide a sensible default from the MP? What do you recommend?

@jtv3
Copy link
Collaborator

jtv3 commented Sep 27, 2023 via email

@matthewcarbone matthewcarbone added enhancement New feature or request help wanted Extra attention is needed and removed bug Something isn't working labels Sep 27, 2023
@matthewcarbone
Copy link
Contributor

Seems then like this is a request for a new feature, basically. Anyone want to do it? If not I'll get to it, eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants