sknano.core.atoms.VelocityAtoms¶
-
class
sknano.core.atoms.VelocityAtoms(atoms=None, casttype=True, **kwargs)[source][source]¶ An
Atomsclass forVelocityAtoms.A container class for
VelocityAtomobjects.Parameters: atoms : {None, sequence,
VelocityAtoms}, optionalif not None, then a list of
VelocityAtominstance objects or an existingVelocityAtomsinstance object.Attributes
MTotal mass of Atoms.NatomsNumber of atoms in Atoms.elementsndarrayofAtom.elements inAtoms.fmtstrmassesndarrayofAtom.masss inAtoms.symbolsndarrayofAtom.symbols inAtoms.vAlias for velocities.velocitiesndarrayofVelocityAtomvelocities.vxndarrayofAtoms vx components.vyndarrayofAtoms vy components.vzndarrayofAtoms vz components.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.