Setter for cosine interaction.
The potential U is given by:
U = A*[1 + cos(pi*r/rcut)], r < rcut 0, r >= rcut
The potential as well as its derivative is zero at r = rcut.
User-set parameters:
ArcutInternally stored parameters:
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(inout), | dimension(:) | :: | params | ||
| real(kind=rp), | intent(in), | optional | :: | A | ||
| real(kind=rp), | intent(in), | optional | :: | rcut |