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] Implementation of quasi-harmonic approximation #891

Closed
wants to merge 19 commits into from
Closed
Prev Previous commit
Next Next commit
test imaginary modes!
JaGeo committed Jun 20, 2024
commit f9596c67a410850348c61517d9ad83a2ba4914fc
10 changes: 6 additions & 4 deletions src/atomate2/common/jobs/qha.py
Original file line number Diff line number Diff line change
@@ -79,13 +79,15 @@ def analyze_free_energy(eos_outputs, phonon_outputs
free_energies[temp]=[]
for output in phonon_outputs:
# convert all units to eV, normalize per formula unit
free_energy_eV=output.free_energies[itemp]*1.036*(10**(-5))
free_energies[temp].append(output.total_dft_energy_per_formula_unit+free_energy_eV)
volume.append(output.volume_per_formula_unit)
# check if imaginary modes
if not output.has_imaginary_modes:
free_energy_eV=output.free_energies[itemp]*1.036*(10**(-5))
free_energies[temp].append(output.total_dft_energy+free_energy_eV)
volume.append(output.volume_per_formula_unit)

# add fit here


print(len(volume))

return free_energies