generate_phonon_displacements

atomate2.common.jobs.pheasy.generate_phonon_displacements(structure, supercell_matrix, displacement, num_displaced_supercells, cal_anhar_fcs, displacement_anhar, num_disp_anhar, fcs_cutoff_radius, sym_reduce, symprec, use_symmetrized_structure, kpath_scheme, code, anhar_max_order=3, anhar_fit_methods=('cocktail',), random_seed=103, verbose=False)[source]

Generate the displaced supercells with phonopy.

The small-distance set for the harmonic force constants uses the finite-displacement method (one displaced atom) when phonopy needs at most three displacements, and the random-displacement method (all atoms displaced) otherwise. With cal_anhar_fcs, a large-distance set of randomly displaced supercells is added for the anharmonic force constants. The undisplaced supercell is added last, for the residual forces.

Parameters:
  • structure (Structure object) – Fully optimized input structure for phonon run

  • supercell_matrix (np.array) – array to describe supercell matrix

  • displacement (float) – displacement in Angstrom

  • num_displaced_supercells (int) – number of harmonic random displacements, 0 for automatic. Not used when phonopy needs at most three finite displacements.

  • cal_anhar_fcs (bool) – if True, also generate the large-distance displacements used for the anharmonic force constants

  • displacement_anhar (float) – displacement in Angstrom for the anharmonic force constants

  • num_disp_anhar (int) – number of anharmonic displaced supercells, 0 to set it from the number of free force constants

  • fcs_cutoff_radius (list[float]) – cutoff radius in Bohr for each force constant order, from second order

  • sym_reduce (bool) – if True, symmetry will be used to generate displacements

  • symprec (float) – precision to determine symmetry

  • use_symmetrized_structure (str or None) – primitive, conventional or None

  • kpath_scheme (str) – scheme to generate kpath

  • code (str) – code to perform the computations

  • anhar_max_order (int) – highest anharmonic force constant order, 3 or 4

  • anhar_fit_methods (Sequence[str]) – anharmonic fit methods, used to size the anharmonic dataset

  • random_seed (int | None = 103) – Random seed for the harmonic random displacements. The anharmonic set uses random_seed + 1.

  • verbose (bool = False) – Whether to log warnings and the numbers of displaced supercells.

Return type:

list[Structure]