> mol = openbabel.OBMol() > cv = openbabel.OBConversion() > cv.SetInAndOutFormats('smi', outfile_type) > cv.ReadString(mol, smiles_string) > mol.AddHydrogens() > ff = openbabel.OBForceField.FindForceField("MMFF94") # so far this has done nothing ff.SteepestDescent(1500, 1.0e-4) ff.WeightedRotorSearch(250, 25) ff.ConjugateGradients(2500, 1.0e-6) # now we've updated the coordinates internal to the ff object > ff.GetCoordinates(mol)
Hope that helps, -Geoff --- Prof. Geoffrey Hutchison Department of Chemistry University of Pittsburgh tel: (412) 648-0492 email: geo...@pitt.edu web: http://hutchison.chem.pitt.edu/ ------------------------------------------------------------------------------ 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