Skip to content

How to compute a custom force for each particle MD simulation #1717

Answered by joaander
Adrien-Berard asked this question in Support
Discussion options

You must be logged in to vote

As the error message states, members of forces must be subclasses of hoomd.md.force.Force and override the appropriate methods. The guide How to apply arbitrary forces in MD in the documentation gives an overview of methods to apply arbitrary forces. Follow the links for details on each method.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Adrien-Berard
Comment options

@joaander
Comment options

Answer selected by joaander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants