sknano.core.atoms.ForceAtoms¶
-
class
sknano.core.atoms.ForceAtoms(atoms=None, casttype=True, **kwargs)[source][source]¶ An
Atomssub-class forForceAtoms.Sub-class of
Atomsclass, and a container class for lists ofForceAtominstances.Parameters: atoms : {None, sequence,
ForceAtoms}, optionalif not None, then a list of
ForceAtominstance objects or an existingForceAtomsinstance object.Attributes
MTotal mass of Atoms.NatomsNumber of atoms in Atoms.elementsndarrayofAtom.elements inAtoms.fAlias for forces.fmtstrforcesndarrayofForceAtomforces.fxndarrayofAtoms fx components.fyndarrayofAtoms fy components.fzndarrayofAtoms fz components.massesndarrayofAtom.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.