sith.g09_stretching.from_extreme package
Submodules
- sith.g09_stretching.from_extreme.info_from_opt.continuous_e2e(pattern, index1, index2, dir_output='e2e_continuous')[source]
From a set of configurations in xyz files with pattern <all><pattern><all>.xyz, it guarantees that consecutive changes in the distance between the atoms with index1 and index2 are lower than 0.2A.
- Parameters:
pattern (str) – pattern of the input files. All the files with <all><pattern><all>.xyz will be read.
index1 (int) – index of the first atom to align in the x axis. 1-base indexing.
index2 (int) – index of the second atom to align in the x axis. 1-base indexing.
dir_output (str. Default='e2e_continuous') – directory where to save the output files.
- Returns:
(ase.Atoms) new trajectory with continuous distance between index1 and
index2. It creates the xyz files in dir_output.
- sith.g09_stretching.from_extreme.info_from_opt.delta_angles_continuous(d_ij, nrs)[source]
Make the difference of the angles continuous considering the periodicity of them.
- Parameters:
d_ij (numpy.Array) – set of delta dofs with form [structure][DOF]
nrs (int) – Number of distances.
- Return type:
(numpy.Array) new set of delta DOFs with delta angles continuous.
Note
Here, it is assumed that the first <nrs> DOFs in d_ij are distances and the rest are angles.
- sith.g09_stretching.from_extreme.info_from_opt.info_from_opt(logfile, pattern)[source]
Extracts configurations from a gaussian optimization trajectory and removes the structures that are outliers in the total energy.
- Parameters:
logfile (str) – gaussian log file.
pattern (str) – pattern of the output. The results are xyz files called <pattern><i>.xyz
- Returns:
(ase.Atoms) new trajectory without the outliers. It creates the xyz files
in between.
Note
You can use
sith.g09_stretching.from_extreme.info_from_opt.reduce_struct()to make the DOFs of output trajectory continuous.
- sith.g09_stretching.from_extreme.info_from_opt.reduce_structs(dir, pattern, print_reduced=False)[source]
Check all the <all>-dofs.dat files and remove those files that represent irrelevant changes. It creates intermedias to guarantee continuous dofs.
- Parameters:
dir (str) – path to the directory containing all the <all>-dofs.dat files.
pattern (str) – pattern for the output files, all of them will be then <pattern><i>.dat
- Returns:
(numpy.array) new set of DOFs [structure][DOF], which are reduced. In
between, it also creates all <pattern><i>,dat.
Module contents
continuous_path
[script] sith/g09_stretching/from_extreme/continuous_path.sh
workflow_from_extreme
[script] sith/g09_stretching/from_extreme/workflow_from_extreme.sh
opt_and_forces
[script] sith/g09_stretching/from_extreme/opt_and_forces.sh
extr_dofs
[script] sith/g09_stretching/from_extreme/extr_dofs.sh