Ok problems solved from last post, I was missing the OBBuilder part (see
below for ethane from smiles). I think this should now be the same as what
gen3d does but with the python openbabel commands.  

import openbabel
mol = openbabel.OBMol()
cv = openbabel.OBConversion()
cv.SetInAndOutFormats('smi', 'mol2')
cv.ReadString(mol, 'cc')
bd = openbabel.OBBuilder()
bd.Build(mol)
mol.SetDimension(3)
mol.AddHydrogens()
ff = openbabel.OBForceField.FindForceField("MMFF94")
ff.Setup(mol)
ff.SteepestDescent(250, 1.0e-4)
ff.WeightedRotorSearch(200, 25)
ff.ConjugateGradients(250, 1.0e-6)
ff.UpdateCoordinates(mol)

I ran two variations of the above (changing the opt criteria and number of
steps etc) and then used the coordinates to do gaussian optimization runs
(b3lyp/6-311G(d)). For one molecule I got quite different values because it
had gone into a more contorted shape.

- If time is not an issue, any suggestions on an optimal routine for the
above code? 
- Would a systematic rotor search be more reliable (SystematicRotorSearch)?



--
View this message in context: 
http://forums.openbabel.org/Weighted-rotor-search-tp4655264p4655287.html
Sent from the General discussion mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to