DoubleRelaxMaker

class atomate2.vasp.flows.core.DoubleRelaxMaker(name='double relax', relax_maker1=<factory>, relax_maker2=<factory>)[source]

Bases: Maker

Maker to perform a double VASP relaxation.

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

  • relax_maker1 (.BaseVaspMaker) – Maker to use to generate the first relaxation.

  • relax_maker2 (.BaseVaspMaker) – Maker to use to generate the second relaxation.

make(structure, prev_dir=None)[source]

Create a flow with two chained relaxations.

Parameters:
  • structure (.Structure) – A pymatgen structure object.

  • prev_dir (str or Path or None) – A previous VASP calculation directory to copy output files from.

Returns:

A flow containing two relaxations.

Return type:

Flow

classmethod from_relax_maker(relax_maker)[source]

Instantiate the DoubleRelaxMaker with two relax makers of the same type.

Parameters:

relax_maker (.BaseVaspMaker) – Maker to use to generate the first and second relaxations.

Return type:

Self