getForce() can't get a new subclass Force
Posted: Mon Jan 06, 2020 7:17 am
Hello everyone,
I create a new subclass Force (named BForce) and BForceGenerator though a plugin(Bplugin), and added it into system. It works. However, getForce() can't get the new subclass Force. It print "<simtk.openmm.openmm.Force; proxy of <Swig Object of type 'OpenMM::Force *' at 0x7faed11c6de0> >". Others force can be obtained, such as "<simtk.openmm.openmm.HarmonicBondForce; proxy of <Swig Object of type 'OpenMM::HarmonicBondForce *' at 0x7faed11c6de0> >".
I hope to get 'OpenMM::BForce'.What is the best way of doing this?
Thanks!
Huanxi
I create a new subclass Force (named BForce) and BForceGenerator though a plugin(Bplugin), and added it into system. It works. However, getForce() can't get the new subclass Force. It print "<simtk.openmm.openmm.Force; proxy of <Swig Object of type 'OpenMM::Force *' at 0x7faed11c6de0> >". Others force can be obtained, such as "<simtk.openmm.openmm.HarmonicBondForce; proxy of <Swig Object of type 'OpenMM::HarmonicBondForce *' at 0x7faed11c6de0> >".
I hope to get 'OpenMM::BForce'.What is the best way of doing this?
Thanks!
Huanxi