Skip to content

Commit

Permalink
return computed Phonopy object along with thermal properties
Browse files Browse the repository at this point in the history
  • Loading branch information
PROA200 committed Oct 20, 2023
1 parent 2ec983a commit 8d5f348
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion matcalc/phonon.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ def calc(self, structure: Structure) -> dict:
phonon.produce_force_constants()
phonon.run_mesh()
phonon.run_thermal_properties(t_step=self.t_step, t_max=self.t_max, t_min=self.t_min)
return phonon.get_thermal_properties_dict()
return {
"phonon": phonon,
"thermal_properties": phonon.get_thermal_properties_dict()
}


def _calc_forces(calculator: Calculator, supercell: PhonopyAtoms) -> ArrayLike:
Expand Down

0 comments on commit 8d5f348

Please sign in to comment.