sknano.core.atoms.XYZAtom¶
-
class
sknano.core.atoms.XYZAtom(*args, *, x=None, y=None, z=None, **kwargs)[source][source]¶ An
Atomclass with x, y, z attributes.Parameters: element : {str, int}, optional
A string representation of the element symbol or an integer specifying an element atomic number.
x, y, z : float, optional
\(x, y, z\) components of
XYZAtomposition vector relative to origin.Attributes
ZAtomic number \(Z\). dr\(x, y, z\) components of Atomdisplacement vector.elementElement symbol. fmtstrFormat string. mmassAtomic mass \(m_a\) in atomic mass units. r\(x, y, z\) components of Atomposition vector.r0\(x, y, z\) components of Atomposition vector at t=0.symbolElement symbol. x\(x\)-coordinate in units of Angstroms. y\(y\)-coordinate in units of Angstroms. z\(z\)-coordinate in units of Angstroms. Methods
get_coords([asdict])Return atom coords. rezero([epsilon])Alias for Atom.rezero_xyz, but calls super classrezeromethod as well.rezero_coords([epsilon])Alias for Atom.rezero_xyz.rezero_xyz([epsilon])Re-zero position vector components. rotate(**kwargs)Rotate Atomposition vector.todict()translate(t[, fix_anchor_point])Translate Atomposition vector byVectort.