BaseCTEMaker

class atomate2.common.flows.cte.BaseCTEMaker(name='cte', use_symmetrized_structure='primitive', bulk_relax_maker=None, phonon_maker=None, elastic_maker=None, temperatures=<factory>, mesh=(12, 12, 12), tol_imaginary_modes=0.1, min_frequency=0.001)[source]

Bases: Maker, ABC

Maker to calculate the thermal expansion from third-order force constants.

By default, the structure is first converted to the standard primitive cell, and a tight structural relaxation follows. The relaxed structure is then passed to the pheasy phonon flow, which fits the second- and third-order force constants, and to the elastic flow. The two flows do not depend on each other, so a workflow manager can run them at the same time. Neither flow may relax the structure again, so that both use the same structure in the same frame. Finally, phono3py gives the mode Grueneisen tensors on a q-point mesh, and the thermal expansion tensor follows from the heat-capacity weighted Grueneisen tensors and the elastic compliance. The mode Grueneisen tensors come from the third-order force constants at the relaxed structure. The frequencies are not renormalized with temperature.

This workflow is new and has not been tested widely. It might still change in future versions.

Parameters:
  • name (str) – Name of the flows produced by this maker.

  • use_symmetrized_structure (str or None) – Convert the input structure to the standard “primitive” or “conventional” cell before the relaxation. The phonon and elastic flows both use the converted structure. The pheasy fits can fail for cells that are not in a standard setting, so only set this to None for an input structure that already is.

  • bulk_relax_maker (.ForceFieldRelaxMaker, .BaseVaspMaker, or None) – A maker to perform a tight relaxation on the bulk. Set to None to skip the relaxation.

  • phonon_maker (.BasePhononMaker) – The pheasy phonon maker. It must have cal_anhar_fcs=True, use_symmetrized_structure=None and bulk_relax_maker=None. Its anhar_fit_methods set which force constants are used for the thermal expansion.

  • elastic_maker (.BaseElasticMaker) – Maker for the elastic tensor. It must have bulk_relax_maker=None.

  • temperatures (list[float]) – Temperatures in K.

  • mesh (tuple[int, int, int] | float) – q-point mesh for the mode Grueneisen tensors, or a q-point density used as kppa in pymatgen’s Kpoints.automatic_density for the unit cell.

  • tol_imaginary_modes (float) – If a frequency on the mesh is below -tol_imaginary_modes in THz, a warning is raised and the thermal expansion of that fit is not computed.

  • min_frequency (float) – Modes below this frequency in THz are left out of the thermal expansion.

make(structure, prev_dir=None)[source]

Make a flow to calculate the thermal expansion.

Parameters:
  • structure (Structure) – A pymatgen structure. Start with a structure that is nearly fully optimized, as the relaxation settings are strict.

  • prev_dir (str or Path or None) – A previous calculation directory to use for copying outputs.

Return type:

Flow

abstract property prev_calc_dir_argname: str | None

Name of the argument that passes the previous calculation directory.

It differs between codes, so each subclass sets it.