sknano.core.atoms.DipoleAtoms¶
-
class
sknano.core.atoms.DipoleAtoms(atoms=None, casttype=True, **kwargs)[source][source]¶ An
Atomssub-class forDipoleAtoms.A container class for
DipoleAtomobjects.Parameters: atoms : {None, sequence,
DipoleAtoms}, optionalif not None, then a list of
DipoleAtominstance objects or an existingDipoleAtomsinstance object.Attributes
MTotal mass of Atoms.NatomsNumber of atoms in Atoms.PReturn the total net dipole moment vector of DipoleAtoms.dipole_momentsReturn array of DipoleAtomdipole moments.elementsndarrayofAtom.elements inAtoms.fmtstrmassesndarrayofAtom.masss inAtoms.symbolsndarrayofAtom.symbols inAtoms.Methods
append(atom)clear()copy()count(item)extend(other)filter(condition[, invert])Filter Atomsby condition.filtered(condition[, invert])Return new list of Atomsfiltered by condition.get_atoms([asarray])Return list of Atoms.getatomattr(attr)Get ndarrayof atom attributes attr.index(item, *args)insert(i, item)mapatomattr([from_attr, to_attr, attrmap])Set/update atom attribute from another atom attribute with dict. pop([i])remove(item)reverse()rezero([epsilon])Set values with absolute value less than epsilon to zero. rotate(**kwargs)Rotate Atomvectors.sort([key, reverse])todict()translate(t[, fix_anchor_points])Translate Atomvectors byVectort.