Declaration of the cyclic cluster Wigner-Seitz type, generation, and weight evaluation
Periodic cyclic cluster Wigner-Seitz model for DFT-D4 and related models following: - E. Caldeweyher, J.-M. Mewes, S. Ehlert and S. Grimme, Phys. Chem. Chem. Phys., 2020, 22, 8499-8512. DOI: 10.1039/D0CP00502A
Wigner-Seitz cell and its nearest image translations.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=i8), | public, | allocatable | :: | itr_list(:) |
Flattened atom-pair image offsets used by CSR neighbor lists |
||
| integer, | public, | allocatable | :: | nimg(:,:) |
Number of images for each atom pair (nat, nat) |
||
| integer, | public, | allocatable | :: | nimg_list(:) |
Number of images per CSR neighbor-list pair |
||
| integer, | public | :: | nimg_max | = | 0 |
Maximum number of images per atom pair |
|
| real(kind=wp), | public, | allocatable | :: | trans(:,:) |
Lattice translation vectors (3, ntrans) |
||
| integer, | public, | allocatable | :: | tridx(:,:,:) |
Translation indices for each atom pair (nimg_max, nat, nat) |
||
| integer, | public, | allocatable | :: | tridx_list(:) |
Flattened translation indices used by CSR neighbor lists |
Find the competing nearest images of an interatomic vector.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | trans(:,:) |
Translation vectors |
||
| real(kind=wp), | intent(in) | :: | rij(3) |
Interatomic vector |
||
| integer, | intent(out) | :: | nimg |
Number of images within the switching interval |
||
| integer, | intent(inout) | :: | list(:) |
Indices of the nearest translation images |
||
| real(kind=wp), | intent(out) | :: | min_r2 |
Minimum squared distance found |
Generate lattice translations containing all competing nearest images.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(structure_type), | intent(in) | :: | mol |
Molecular structure data |
||
| real(kind=wp), | intent(out), | allocatable | :: | trans(:,:) |
Lattice translation vectors |
|
| type(error_type), | intent(out), | allocatable | :: | error |
Error handling |
Evaluate smooth weights for competing nearest Wigner-Seitz images
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(wignerseitz_cell), | intent(in) | :: | self |
Wigner-Seitz cell instance |
||
| integer, | intent(in) | :: | jat |
Index of examined atom in the Wigner-Seitz image arrays |
||
| integer, | intent(in) | :: | iat |
Index of reference atom in the Wigner-Seitz image arrays |
||
| real(kind=wp), | intent(in) | :: | rij(3) |
Cartesian pair vector |
||
| real(kind=wp), | intent(out) | :: | weight(:) |
Normalized image weights |
||
| real(kind=wp), | intent(out), | optional | :: | dwdr(:,:) |
Weight derivatives with respect to the pair vector |
|
| real(kind=wp), | intent(out), | optional | :: | dwdL(:,:,:) |
Weight derivatives with respect to strain |
Construct a Wigner-Seitz cell for a molecular structure
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(wignerseitz_cell), | intent(out) | :: | self |
Wigner-Seitz cell instance |
||
| type(structure_type), | intent(in) | :: | mol |
Molecular structure data |
||
| type(error_type), | intent(out), | allocatable | :: | error |
Error handling |