Skip to content

Unexpected Behavior of Tabulated Dihedral Angles #4960

Answered by jngrad
Marsupail asked this question in Q&A
Discussion options

You must be logged in to vote

So if I wan't to use a arbitrary tabulated potential I would have to set the force to:

$A(\phi) = -\partial_{\phi} V(\phi) / \sin(\phi)$

where I calculate the derivation numerically?

I would say yes. The source code is a bit cryptic, so I cannot answer you with full certainty.

The term $1/\sin(\phi)$ is due to how the derivative is obtained. The quantity $-\partial_{\phi} V(\phi)$ yields the magnitude of the force, but one still needs to compute the gradient of the dihedral angle with respect to the particle coordinates, in order to get a force vector.

There are several ways of expressing the derivative. Using the chain rule, and depending on whether the source code evaluates $\cos(\phi)$

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Marsupail
Comment options

@jngrad
Comment options

Answer selected by Marsupail
@Marsupail
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants