pymatgen.phonon.gruneisen module

This module provides classes to define a Grueneisen band structure.

class GruneisenParameter(qpoints, gruneisen, frequencies, multiplicities=None, structure=None, lattice=None)[source]

Bases: monty.json.MSONable

Class for Grueneisen parameters on a regular grid.

Parameters
  • qpoints – list of qpoints as numpy arrays, in frac_coords of the given lattice by default

  • gruneisen – list of gruneisen parameters as numpy arrays, shape: (3*len(structure), len(qpoints))

  • frequencies – list of phonon frequencies in THz as a numpy array with shape (3*len(structure), len(qpoints))

  • multiplicities – list of multiplicities

  • structure – The crystal structure (as a pymatgen Structure object) associated with the gruneisen parameters.

  • lattice – The reciprocal lattice as a pymatgen Lattice object. Pymatgen uses the physics convention of reciprocal lattice vectors WITH a 2*pi coefficient

property acoustic_debye_temp[source]

Acoustic Debye temperature in K, i.e. the Debye temperature divided by nsites**(1/3). Adapted from abipy.

average_gruneisen(t=None, squared=True, limit_frequencies=None)[source]

Calculates the average of the Gruneisen based on the values on the regular grid. If squared is True the average will use the squared value of the Gruneisen and a squared root is performed on the final result. Values associated to negative frequencies will be ignored. See Scripta Materialia 129, 88 for definitions. Adapted from classes in abipy that have been written by Guido Petretto (UCLouvain).

Parameters
  • t – the temperature at which the average Gruneisen will be evaluated. If None the acoustic Debye temperature is used (see acoustic_debye_temp).

  • squared – if True the average is performed on the squared values of the Grueneisen.

  • limit_frequencies – if None (default) no limit on the frequencies will be applied. Possible values are “debye” (only modes with frequencies lower than the acoustic Debye temperature) and “acoustic” (only the acoustic modes, i.e. the first three modes).

Returns

The average Gruneisen parameter

property debye_temp_limit[source]

Debye temperature in K. Adapted from apipy.

debye_temp_phonopy(freq_max_fit=None)[source]

Get Debye temperature in K as implemented in phonopy. :param freq_max_fit: Maximum frequency to include for fitting.

Defaults to include first quartile of frequencies.

Returns

Debye temperature in K.

property phdos[source]

PhononDos object

Type

Returns

property tdos[source]

The total DOS (re)constructed from the gruneisen.yaml file

thermal_conductivity_slack(squared=True, limit_frequencies=None, theta_d=None, t=None)[source]

Calculates the thermal conductivity at the acoustic Debye temperature with the Slack formula, using the average Gruneisen. Adapted from abipy.

Parameters
  • squared (bool) – if True the average is performed on the squared values of the Gruenisen

  • limit_frequencies – if None (default) no limit on the frequencies will be applied. Possible values are “debye” (only modes with frequencies lower than the acoustic Debye temperature) and “acoustic” (only the acoustic modes, i.e. the first three modes).

  • theta_d – the temperature used to estimate the average of the Gruneisen used in the Slack formula. If None the acoustic Debye temperature is used (see acoustic_debye_temp). Will also be considered as the Debye temperature in the Slack formula.

  • t – temperature at which the thermal conductivity is estimated. If None the value at the calculated acoustic Debye temperature is given. The value is obtained as a simple rescaling of the value at the Debye temperature.

Returns

The value of the thermal conductivity in W/(m*K)

class GruneisenPhononBandStructure(qpoints, frequencies, gruneisenparameters, lattice, eigendisplacements=None, labels_dict=None, coords_are_cartesian=False, structure=None)[source]

Bases: pymatgen.phonon.bandstructure.PhononBandStructure

This is the most generic phonon band structure data possible it’s defined by a list of qpoints + frequencies for each of them. Additional information may be given for frequencies at Gamma, where non-analytical contribution may be taken into account.

Parameters
  • qpoints – list of qpoint as numpy arrays, in frac_coords of the given lattice by default

  • frequencies – list of phonon frequencies in THz as a numpy array with shape (3*len(structure), len(qpoints)). The First index of the array refers to the band and the second to the index of the qpoint.

  • gruneisenparameters – list of Grueneisen parameters with the same structure frequencies.

  • lattice – The reciprocal lattice as a pymatgen Lattice object. Pymatgen uses the physics convention of reciprocal lattice vectors WITH a 2*pi coefficient.

  • eigendisplacements – the phonon eigendisplacements associated to the frequencies in cartesian coordinates. A numpy array of complex numbers with shape (3*len(structure), len(qpoints), len(structure), 3). he First index of the array refers to the band, the second to the index of the qpoint, the third to the atom in the structure and the fourth to the cartesian coordinates.

  • labels_dict – (dict) of {} this links a qpoint (in frac coords or cartesian coordinates depending on the coords) to a label.

  • coords_are_cartesian – Whether the qpoint coordinates are cartesian.

  • structure – The crystal structure (as a pymatgen Structure object) associated with the band structure. This is needed if we provide projections to the band structure

as_dict()[source]
Returns

MSONable (dict)

classmethod from_dict(d)[source]
Parameters

d (dict) – Dict representation

Returns

Phonon band structure with Grueneisen parameters.

Return type

GruneisenPhononBandStructure

class GruneisenPhononBandStructureSymmLine(qpoints, frequencies, gruneisenparameters, lattice, eigendisplacements=None, labels_dict=None, coords_are_cartesian=False, structure=None)[source]

Bases: pymatgen.phonon.gruneisen.GruneisenPhononBandStructure, pymatgen.phonon.bandstructure.PhononBandStructureSymmLine

This object stores a GruneisenPhononBandStructureSymmLine together with Grueneisen parameters for every frequency.

Parameters
  • qpoints – list of qpoints as numpy arrays, in frac_coords of the given lattice by default

  • frequencies – list of phonon frequencies in eV as a numpy array with shape (3*len(structure), len(qpoints))

  • gruneisenparameters – list of Grueneisen parameters as a numpy array with the shape (3*len(structure), len(qpoints))

  • lattice – The reciprocal lattice as a pymatgen Lattice object. Pymatgen uses the physics convention of reciprocal lattice vectors WITH a 2*pi coefficient

  • eigendisplacements – the phonon eigendisplacements associated to the frequencies in cartesian coordinates. A numpy array of complex numbers with shape (3*len(structure), len(qpoints), len(structure), 3). he First index of the array refers to the band, the second to the index of the qpoint, the third to the atom in the structure and the fourth to the cartesian coordinates.

  • labels_dict – (dict) of {} this links a qpoint (in frac coords or cartesian coordinates depending on the coords) to a label.

  • coords_are_cartesian – Whether the qpoint coordinates are cartesian.

  • structure – The crystal structure (as a pymatgen Structure object) associated with the band structure. This is needed if we provide projections to the band structure

classmethod from_dict(d)[source]
Parameters

d – Dict representation

Returns: GruneisenPhononBandStructureSummLine