psiresp.charge.MoleculeChargeConstraints
- pydantic model psiresp.charge.MoleculeChargeConstraints[source]
- Fields
- field molecules: List[psiresp.molecule.Molecule] = []
- field unconstrained_atoms: List[psiresp.molecule.Atom] = []
- add_constraints_from_charges(charges)[source]
Add ChargeSumConstraints restraining atoms to the given charges, if they are not in existing charge equivalence constraints, and not in
self.unconstrained_atoms
.- Parameters
charges (np.ndarray of floats) – Charges of atoms. This should be at least as long as the total number of atoms in
self.molecules
- add_sp3_equivalences(accepted_n_hs=(2, 3))[source]
Add ChargeEquivalenceConstraints for the hydrogens attached to sp3 carbons
This will add methyls if 2 is in
accepted_n_hs
, and and methylenes if 3 is inaccepted_n_hs
.
- property n_atoms