sknano.core.atoms.EnergyAtoms¶
-
class
sknano.core.atoms.EnergyAtoms(atoms=None, casttype=True, **kwargs)[source][source]¶ An
Atomssub-class forEnergyAtoms.A container class for class:
EnergyAtomobjects.Parameters: atoms : {None, sequence,
EnergyAtoms}, optionalif not None, then a list of
EnergyAtominstance objects or an existingEnergyAtomsinstance object.Attributes
MTotal mass of Atoms.NatomsNumber of atoms in Atoms.elementsndarrayofAtom.elements inAtoms.fmtstrkinetic_energiesndarrayofEnergyAtom.ke.massesndarrayofAtom.masss inAtoms.potential_energiesndarrayofEnergyAtom.pe.symbolsndarrayofAtom.symbols inAtoms.total_energiesndarrayofEnergyAtom.etotal.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.