aim2dat.io.cp2k
¶
Modules to read output and write input files for the CP2K code.
Submodules¶
Package Contents¶
Functions¶
|
Read the atom projected density of states from CP2K. |
|
Read band structure file from CP2K. |
|
Read optimized structures from 'restart'-files. |
|
Read structures from 'restart'-files. |
|
Read standard output file of CP2K. |
- aim2dat.io.cp2k.read_atom_proj_density_of_states(folder_path: str) dict [source]¶
Read the atom projected density of states from CP2K.
- aim2dat.io.cp2k.read_band_structure(file_name: str) dict [source]¶
Read band structure file from CP2K.
- aim2dat.io.cp2k.read_optimized_structure(folder_path: str) dict | list[dict] [source]¶
Read optimized structures from ‘restart’-files.
- Parameters:¶
folder_path (str) – Path to the folder containing the CP2K ouput-files.
- Returns:¶
dict or list – Dictionary containing the structural information. In case of a farming job a list of dictionaries is returned. In case several calculations have been run in the same folder a nested dictionary is returned.
- aim2dat.io.cp2k.read_restart_structure(folder_path: str) dict | list[dict] [source]¶
Read structures from ‘restart’-files.
- Parameters:¶
folder_path (str) – Path to the folder containing the CP2K ouput-files.
- Returns:¶
dict or list – Dictionary or list of dictionaries containing the structural information. In case of a farming job or several calculations have been run in the same folder, a list of dictionaries is returned.