-
Notifications
You must be signed in to change notification settings - Fork 922
Update rVV10 parameters for r2SCAN+rVV10 in MPScanRelaxSet() #4504
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
base: master
Are you sure you want to change the base?
Update rVV10 parameters for r2SCAN+rVV10 in MPScanRelaxSet() #4504
Conversation
-Add the code to update rVV10 parameters ("BPARAM"=11.95) for r2SCAN+rVV10 if vdw is set to "rvv10" and METAGGA is "R2SCAN"
|
Hey @junchichen21 can you take a look at how this is already done in MP24RelaxSet and perhaps merge the incar updates into a common function for both the older |
|
Also, unittests are needed. Thanks. |
Hi @esoteric-ephemera, I somehow missed your message last week. Sorry about that. No problem, I will update it soon. |
…Set for the given XC functional and dispersion correction
…eters; streamline vdw handling with _config_updates function.
…ling with _config_updates function
…correction validation
…n version compatibility
…ove dispersion handling
|
Hi @esoteric-ephemera and @shyuep, I have made some updates as shown below: Refactoring and code unification:
API and interface changes:
Validation and error handling improvements:
Test updates and additions:
Please let me know whether the above refactoring and interface changes align with the intended update policy. |
|
Looks ok to me. @esoteric-ephemera To review. |
mkhorton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @junchichen21 for this. Added a brief review just to make this more robust/future-proof.
@esoteric-ephemera if you don't have any objections to this will merge after these changes.
|
Sorry I missed this will look today and give comments |
| "pbesol": {"S6": 1.0, "S8": 1.71885698, "A1": 0.47901421, "A2": 5.96771589}, | ||
| } | ||
| if xc not in d4_pars: | ||
| raise ValueError(f"D4 parameters for XC functional '{xc_functional}' are not defined yet.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you expand this line to refer to the dftd4 code where all possible functional params are defined:
https://github.com/dftd4/dftd4/blob/30aa423f3ca90f21789c3a89a0ad4b464081290e/src/dftd4/param.f90#L353
This is also where I took the PBEsol params from
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @esoteric-ephemera , just to confirm—should I incorporate all the XC D4 parameters listed in the repository, or only the ones commonly used in materials modeling, like PBE, SCAN, and HSE06?”
|
I will wait for @mkhorton and @esoteric-ephemera 's comments to be resolved first. Thanks. |
…hods by adding IVDW_NL and LASPH settings.
…cts with XC functional and dispersion settings
…update references in MPScanRelaxSet and MP24RelaxSet.
This pull request updates the
MPScanRelaxSetclass insrc/pymatgen/io/vasp/sets.pyto improve support for the r2SCAN+rVV10 functional. It adds a new reference for r2SCAN+rVV10 and ensures that the appropriateBPARAMvalue is set in the INCAR when using this functional.Functional and documentation enhancements:
__post_init__method to automatically setBPARAM = 11.95in the INCAR whenvdwis set to"rvv10"andMETAGGAis"R2SCAN". If the user specifiesuser_incar_settings={"METAGGA": "SCAN"}, thenBPARAMkeeps the same value as defined in thevdW_parameters.yamlfile.