Feature Requests item #3073164, was opened at 2010-09-22 06:32
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428743&aid=3073164&group_id=40728

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: API
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Publicly access the values of the gradients

Initial Comment:
I am considering to include OpenBabel force fields in on of my applications, 
studying conformational transitions of (macro)molecules.
To this end, I need the values of the molecular energy, gradients and 
(possibly) the second derivatives.

I managed to write a wrapper that gives me the energy of a configuration, but I 
could not find a way to access the values of the gradients (using the API's of 
openbabel-2.2.3).
As far as I understand, this is so because the routines that calculate the 
gradients are declared "private" in include/openbabel/forcefield.h, but I 
cannot see why this has to be so.

Therefore, I am suggesting to extend/modify the API to allow access of the 
force-field gradients to general programs making use of the library.

As a first step to this goal, I managed to patch the source code of openbabel, 
moving the declaration of GetGradients and friends in the public section of the 
relevant classes (see the attached file).
After recompiling the library,  I am now able to access the forces, after 
calling the method Energy of OBForceField with the value "true".
This is probably not the most elegant hack around, but it "works for me" and 
might be useful to other people.

Finally, let me just thank all the developers of this impressive code for their 
valuable efforts.

Best regards.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428743&aid=3073164&group_id=40728

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to