public class MMFF94PartialCharges extends Object implements IChargeCalculator
HydrogenAdder hAdder = new HydrogenAdder();
SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IAtomContainer ac = sp.parseSmiles("CC");
hAdder.addExplicitHydrogensToSatisfyValency((Molecule)ac);
MMFF94PartialCharges mmff = new MMFF94PartialCharges();
mmff.assignMMFF94PartialCharges(ac);
and for each atom, the value is given by:
( (Double)atom.getProperty("MMFF94charge") ).doubleValue().
Note: This class delegates to Mmff and charges are also assigned
directly to the atom attribute IAtom.getCharge().Mmff.partialCharges(IAtomContainer)| Modifier and Type | Field and Description |
|---|---|
static String |
MMFF_94_CHARGE |
| Constructor and Description |
|---|
MMFF94PartialCharges()
Constructor for the MMFF94PartialCharges object
|
| Modifier and Type | Method and Description |
|---|---|
IAtomContainer |
assignMMFF94PartialCharges(IAtomContainer ac)
Main method which assigns MMFF94 partial charges
|
void |
calculateCharges(IAtomContainer container) |
public static final String MMFF_94_CHARGE
public MMFF94PartialCharges()
public IAtomContainer assignMMFF94PartialCharges(IAtomContainer ac) throws CDKException
ac - AtomContainerCDKExceptionpublic void calculateCharges(IAtomContainer container) throws CDKException
calculateCharges in interface IElectronicPropertyCalculatorCDKExceptionCopyright © 2018. All Rights Reserved.