Vdw potentials
Sets up parameters for vdw potential.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ia_specs_t), | intent(inout) | :: | specs |
Calculates the energy due to a single interacting pair of atoms.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in), | dimension(3) | :: | ri |
Coordinate of atom i |
|
| real(kind=rp), | intent(in), | dimension(3) | :: | rj |
Coordinate of atom j |
|
| type(ia_specs_t), | intent(in) | :: | specs | |||
| real(kind=rp), | intent(out) | :: | enrg | |||
| integer, | intent(out) | :: | ierr |
Setter for LJ interaction. params(1) = eps, params(2) = sigma, params(3) = rcut cache(1) = sigma**2, cache(2) = U(rcut)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ia_specs_t), | intent(inout) | :: | specs |
Calculates energy for LJ interaction. params(1) = eps, params(2) = sigma, params(3) = rcut cache(1) = sigma**2, cache(2) = U(rcut)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | r | |||
| type(ia_specs_t), | intent(in) | :: | specs | |||
| real(kind=rp), | intent(out) | :: | enrg | |||
| integer, | intent(out) | :: | ierr |
Calculates energy for hard sphere interaction. Overlap will be indicated
with ierr = 1.
params(1) = r1, params(2) = r2, params(3) = tol
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | r | |||
| type(ia_specs_t), | intent(in) | :: | specs | |||
| real(kind=rp), | intent(out) | :: | enrg | |||
| integer, | intent(out) | :: | ierr |
Calculates energy for square well interaction. Overlap will be indicated
with ierr = 1.
params(1) = eps, params(2) = sigma, params(3) = width
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | r | |||
| type(ia_specs_t), | intent(in) | :: | specs | |||
| real(kind=rp), | intent(out) | :: | enrg | |||
| integer, | intent(out) | :: | ierr |
Setter for Gaussian interaction. params(1) = A, params(2) = B, params(3) = rcut cache(1) = V(rcut)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ia_specs_t), | intent(inout) | :: | specs |
Calculates energy for Gaussian interaction. params(1) = A, params(2) = B, params(3) = rcut cache(1) = V(rcut)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | r | |||
| type(ia_specs_t), | intent(in) | :: | specs | |||
| real(kind=rp), | intent(out) | :: | enrg | |||
| integer, | intent(out) | :: | ierr |
Setter for tabulated interaction. params(1) = vtltmin, params(2) = vtgtmax, params(3) = intrp_meth, params(4) = flag_bc cache(1) = tmin, cache(2) = tmax
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ia_specs_t), | intent(inout) | :: | specs |
Calculates energy for tabulated interaction.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | r | |||
| type(ia_specs_t), | intent(in) | :: | specs | |||
| real(kind=rp), | intent(out) | :: | enrg | |||
| integer, | intent(out) | :: | ierr |