Include arbitrary external potential in HPMC #1991
-
Hello, However, it's not clear to which class |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The Python user facing code must subclass hoomd-blue/hoomd/hpmc/ExternalPotential.h Lines 13 to 22 in fe4836b The hpmc-energy-template repository shows a fully working C++ example: https://github.com/glotzerlab/hpmc-energy-template/blob/trunk/src/ExampleExternalPotential.cc
If you are asking how to do this in pure Python then the answer is that it is not possible. I am currently working on a new code that will make user-defined data and potentials possible at every level of the implementation without the need to write C++ code. I will make a complete announcement it when it is ready to share. |
Beta Was this translation helpful? Give feedback.
The Python user facing code must subclass
hoomd.hpmc.external.External
and be backed by a C++ implementation that subclassesExternalPotential
:hoomd-blue/hoomd/hpmc/ExternalPotential.h
Lines 13 to 22 in fe4836b