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

Vibrational analysis recipe for VASP #2242

Closed
wants to merge 44 commits into from

Conversation

benshi97
Copy link
Contributor

Summary of Changes

>> New VASP recipe for performing vibrational analysis (using ASE Vibrations) to obtain thermodynamic properties.

@buildbot-princeton
Copy link
Collaborator

Can one of the admins verify this patch?

Copy link

codecov bot commented Jun 12, 2024

Codecov Report

Attention: Patch coverage is 94.28571% with 2 lines in your changes missing coverage. Please review.

Project coverage is 99.02%. Comparing base (d227f84) to head (44626fb).
Report is 1 commits behind head on main.

Current head 44626fb differs from pull request most recent head d62da1b

Please upload reports for the commit d62da1b to get more accurate results.

Files Patch % Lines
src/quacc/recipes/vasp/_base.py 90.90% 1 Missing ⚠️
src/quacc/schemas/ase.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2242      +/-   ##
==========================================
- Coverage   99.07%   99.02%   -0.06%     
==========================================
  Files          85       82       -3     
  Lines        3561     3477      -84     
==========================================
- Hits         3528     3443      -85     
- Misses         33       34       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Andrew-S-Rosen Andrew-S-Rosen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @benshi97! Overall, this looks plenty good to me.

Two things:

  1. I have a variety of comments related to the choice of settings. Please review them and make the changes as you see fit.
  2. As discussed over Slack, we need to add support for a HarmonicThermo usage here rather than just IdealGasThermo

A few other small things:

src/quacc/recipes/vasp/core.py Outdated Show resolved Hide resolved
src/quacc/recipes/vasp/core.py Outdated Show resolved Hide resolved
src/quacc/recipes/vasp/core.py Outdated Show resolved Hide resolved
src/quacc/recipes/vasp/core.py Outdated Show resolved Hide resolved
src/quacc/recipes/vasp/core.py Outdated Show resolved Hide resolved
Copy link
Member

@Andrew-S-Rosen Andrew-S-Rosen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @benshi97! Thank you for these updates. This looks splendid! I only have a few very minor comments. I'll be happy to merge thereafter!

src/quacc/recipes/vasp/_base.py Outdated Show resolved Hide resolved
src/quacc/recipes/vasp/_base.py Show resolved Hide resolved
src/quacc/recipes/vasp/_base.py Outdated Show resolved Hide resolved
src/quacc/recipes/vasp/core.py Outdated Show resolved Hide resolved
src/quacc/runners/thermo.py Show resolved Hide resolved
src/quacc/schemas/ase.py Outdated Show resolved Hide resolved
src/quacc/schemas/ase.py Outdated Show resolved Hide resolved
atoms.center(vacuum=1)
output = freq_job(atoms, kpts=(1, 1, 1))
assert output["parameters"]["ediff"] == 1e-07
assert len(output["results"]["vib_freqs_raw"]) == 3 * len(atoms)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also test the "actual" number of vibrational modes (3N-5 for linear)? Just to make sure that's being done correctly...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the symmetry isn't being read for the 'ideal_gas' case; so the "vib_freqs" doesn't differ from "vib_freq_raw"

tests/core/schemas/test_ase.py Outdated Show resolved Hide resolved
@Andrew-S-Rosen
Copy link
Member

Closing in favor of #2362.

Andrew-S-Rosen added a commit that referenced this pull request Jul 27, 2024
#2360+#2242.

---------

Co-authored-by: benshi97 <bxs21@cam.ac.uk>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@benshi97 benshi97 deleted the vasp_vib branch October 2, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants