gen
parse_gen_file(filename)
Convert a provided DFTB+ .gen file into an array of atomic numbers, positions and lattice vectors
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
path to the .gen file to read |
required |
Returns:
| Type | Description |
|---|---|
|
List[Element], (N, 3) positions, (4, 3) lattice vectors, bool (if |
|
|
fractional) read from the given file |
Source code in chmpy/fmt/gen.py
parse_gen_string(contents, filename=None)
Convert provided DFTB+ .gen file contents into an array of atomic numbers and cartesian positions
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contents
|
text contents of the .gen file to read |
required |
Returns:
| Type | Description |
|---|---|
|
List[Element], (N, 3) positions, (4, 3) lattice vectors, bool (if |
|
|
fractional) read from the given file |