Re: [OpenBabel-Devel] How to get force fields parameters

2016-02-02 Thread iwao aoyama
Hi I struggle for getting OBFF parameters again. In the following example code, a OBForceField instance (pFF) was down-casted on a new-defined class (ffpGaff) making an instance (pP). This works well in some cases, but an exception is thrown in other cases. Any idea instead of this would be grea

Re: [OpenBabel-Devel] How to get force fields parameters

2015-11-12 Thread iwao aoyama
Hi I gave up to get FF parameters through OBFunctions and OB member variables, and reconciled to get parameter directly from files such as gaff.dat etc. I put an experimentally implemented project in https://github.com/brhr-iwao/libavogadro1cp2k (as potGaff() function in psfpotdialog.cpp). It is

Re: [OpenBabel-Devel] How to get force fields parameters

2015-10-10 Thread iwao aoyama
I supplement the previous question. I ought to have said before that I know OBForceFiled::GetAtomTypes to get atom types. I use OB 2.3.2 with Visual Studio 2013 on Windows 10. To get the other parameters, I tried following codes: #include "src/forcefields/forcefieldgaff.h" OBFFBondCalculat

[OpenBabel-Devel] How to get force fields parameters

2015-10-09 Thread iwao aoyama
Hello, I am wondering if there is a way to get force fields parameters through OB function. When I ran some codes like: OBMol mol; OBForceField* pFF=FindForceField("GAFF"); pFF->SetLogFile(&cout); pFF->(OBFF_LOGLVL_HIGH); pFF->Setup(mol); pFF->E_Bond(); then the following log