CTEMaker

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

Bases: BaseCTEMaker

Maker to calculate the thermal expansion with a force field and pheasy.

By default, the structure is converted to the standard primitive cell and relaxed tightly. 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. Neither flow relaxes the structure again. Finally, phono3py gives the mode Grueneisen tensors, and the thermal expansion tensor follows from them and the elastic tensor. The frequencies are not renormalized with temperature.

By default, all steps use MACE-MP-0. Use from_force_field_name to run every step with another force field. The phonon flow fits the force constants with the one-shot method from randomly displaced supercells with 0.03 A displacements, and builds the supercells with min_length=12.0.

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 pheasy fits can fail for cells that are not in a standard setting.

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

  • phonon_maker (.PhononMaker) – 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 (.ElasticMaker) – 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.

classmethod from_force_field_name(force_field_name, calculator_kwargs=None, **kwargs)[source]

Create a thermal expansion maker that uses one force field for all steps.

Parameters:
  • force_field_name (str or .MLFF or dict) – The name of the force field.

  • calculator_kwargs (dict or None) – Keyword arguments passed to the force field calculator.

  • **kwargs – Further keyword arguments passed to CTEMaker. A maker given here replaces the one built for the force field.

Return type:

CTEMaker

property prev_calc_dir_argname: None

Name of the argument that passes the previous calculation directory.