Generic interface to define damping functions for the DFT-D4 model
Evaluation of the dispersion energy expression
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(damping_param), | intent(in) | :: | self |
Damping parameters |
||
class(structure_type), | intent(in) | :: | mol |
Molecular structure data |
||
real(kind=wp), | intent(in) | :: | trans(:,:) |
Lattice points |
||
real(kind=wp), | intent(in) | :: | cutoff |
Real space cutoff |
||
real(kind=wp), | intent(in) | :: | r4r2(:) |
Expectation values for r4 over r2 operator |
||
real(kind=wp), | intent(in) | :: | c6(:,:) |
C6 coefficients for all atom pairs. |
||
real(kind=wp), | intent(in), | optional | :: | dc6dcn(:,:) |
Derivative of the C6 w.r.t. the coordination number |
|
real(kind=wp), | intent(in), | optional | :: | dc6dq(:,:) |
Derivative of the C6 w.r.t. the partial charges |
|
real(kind=wp), | intent(inout) | :: | energy(:) |
Dispersion energy |
||
real(kind=wp), | intent(inout), | optional | :: | dEdcn(:) |
Derivative of the energy w.r.t. the coordination number |
|
real(kind=wp), | intent(inout), | optional | :: | dEdq(:) |
Derivative of the energy w.r.t. the partial charges |
|
real(kind=wp), | intent(inout), | optional | :: | gradient(:,:) |
Dispersion gradient |
|
real(kind=wp), | intent(inout), | optional | :: | sigma(:,:) |
Dispersion virial |
Evaluation of the pairwise representation of the dispersion energy
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(damping_param), | intent(in) | :: | self |
Damping parameters |
||
class(structure_type), | intent(in) | :: | mol |
Molecular structure data |
||
real(kind=wp), | intent(in) | :: | trans(:,:) |
Lattice points |
||
real(kind=wp), | intent(in) | :: | cutoff |
Real space cutoff |
||
real(kind=wp), | intent(in) | :: | r4r2(:) |
Expectation values for r4 over r2 operator |
||
real(kind=wp), | intent(in) | :: | c6(:,:) |
C6 coefficients for all atom pairs. |
||
real(kind=wp), | intent(inout) | :: | energy(:,:) |
Pairwise representation of the dispersion energy |
procedure(dispersion_interface), public, deferred :: get_dispersion2 | |
procedure(dispersion_interface), public, deferred :: get_dispersion3 | |
procedure(pairwise_dispersion_interface), public, deferred :: get_pairwise_dispersion2 | |
procedure(pairwise_dispersion_interface), public, deferred :: get_pairwise_dispersion3 |