xnn.ffnn.models.oplslib.rb_to_fourier#
- xnn.ffnn.models.oplslib.rb_to_fourier(c)[source]#
Convert Ryckaert-Bellemans coefficients to OPLS Fourier form.
Exact inverse of
fourier_to_rb(); any constant that the four cosine terms cannot represent lands inV0.- Parameters:
c (sequence of float) –
(C0, C1, C2, C3, C4)or(C0, ..., C5)withC5 = 0.- Returns:
[V0, V1, V2, V3, V4]in the same energy unit.- Return type:
- Raises:
ValueError – If a non-zero
C5is given (not representable by the OPLS form).