sknano.core.atoms.PBCAtoms¶
-
class
sknano.core.atoms.PBCAtoms(atoms=None, casttype=True, **kwargs)[source][source]¶ Atomsclass for PBC.Attributes
MTotal mass of Atoms.NatomsNumber of atoms in Atoms.elementsndarrayofAtom.elements inAtoms.fmtstrmassesndarrayofAtom.masss inAtoms.pbcsymbolsndarrayofAtom.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.set_pbc([xperiodic, yperiodic, zperiodic])sort([key, reverse])todict()translate(t[, fix_anchor_points])Translate Atomvectors byVectort.unset_pbc()wrap_coords([pbc])