Re: [Open Babel] Fwd: debug openbabel

2011-12-11 Thread Geoff Hutchison
> Seems like the debugger is looking for files located on ghutchis's computer. 
> How do I create and link the .o files myself? Do I need to make modifications 
> to CMakeLists.txt file?

Are you trying to link against the binary install of libopenbabel.dylib? If so, 
it's built for "-g -O2" flags. Some things may be debuggable, but probably not 
too much.

I'd suggest if you're doing this, to build from source. The instructions are 
here:
http://openbabel.org/wiki/Install_(source_code)

Hope that helps,
-Geoff
--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


Re: [Open Babel] bond stretch constant

2011-12-11 Thread Geoff Hutchison
> Where are kr, kth, vn_half, etc. defined? They don't seem to be explicitly 
> stated in the gaff.dat file. For example, kr is defined as

These things are usually in the appropriate journal articles. So for example:

> bondcalc.kr = KCAL_TO_KJ * parameter->_dpar[0];

Since Open Babel uses kJ/mol by default, this is a conversion for the 
stretching constant.

> Can someone explain what _dpar[0]? I surmise that it references a number in 
> gaff.dat in some fashion though I'm not sure how. All I need to know is which 
> number _dpar[0] corresponds to in the .dat file, and how this correspondence 
> is achieved.

The _dpar are floating-point constants, and the _ipar are integer constants (in 
all of the Open Babel force field classes).

You can see how they're parsed in   bool OBForceFieldGaff::ParseParamFile()

So for example, I see:
> parameter._a = vs[0]; //KNDSYM
> parameter._dpar.push_back(atof(vs[1].c_str())); // AMASS
> parameter._dpar.push_back(atof(vs[2].c_str())); // ATPOL [A^3]


Hope that helps,
-Geoff--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss