sknano.core.atoms.StructureAtom¶
-
class
sknano.core.atoms.StructureAtom(*args, *, NN=None, **kwargs)[source][source]¶ An
Atomclass for structure analysis.Parameters: element : {str, int}, optional
A string representation of the element symbol or an integer specifying an element atomic number.
id : int, optional
atom ID
mol : int, optional
molecule ID
type : int, optional
atom type
x, y, z : float, optional
\(x, y, z\) components of
StructureAtomposition vector relative to origin.vx, vy, vz : float, optional
\(v_x, v_y, v_z\) components of
StructureAtomvelocity.Attributes
CNStructureAtomcoordination number.NNNearest-neighbor Atoms.POAV1POAV1instance.POAV2POAV2instance.POAVRPOAVRinstance.ZAtomic number \(Z\). atomIDatomtypebondsReturn atom Bondsinstance.dr\(x, y, z\) components of Atomdisplacement vector.elementElement symbol. first_neighborsfmtstrFormat string. i\(i_x, i_y, i_z\) image flags idid.ix\(i_x\) image flag. iy\(i_y\) image flag. iz\(i_z\) image flag. latticeCrystal3DLattice.mmassAtomic mass \(m_a\) in atomic mass units. molmol.moleculeIDneighbor_distancesNeighbor atom distances. neighborsNeighbor atoms. pbcqCharge \(q\) as multiple of elementary charge \(e\). r\(x, y, z\) components of Atomposition vector.r0\(x, y, z\) components of Atomposition vector at t=0.rs\(x, y, z\) components of Atomposition vector.second_neighborssymbolElement symbol. third_neighborstypetype.v\(v_x, v_y, v_z\) array of velocity components. vx\(x\) component of VelocityAtomvelocity vectorvy\(x\) component of VelocityAtomvelocity vectorvz\(z\) component of VelocityAtomvelocity vectorx\(x\)-coordinate in units of Angstroms. xperiodicxs\(x\)-coordinate in units of Angstroms. y\(y\)-coordinate in units of Angstroms. yperiodicys\(y\)-coordinate in units of Angstroms. z\(z\)-coordinate in units of Angstroms. zperiodiczs\(z\)-coordinate in units of Angstroms. Methods
get_coords([asdict])Return atom coords. get_neighbors(n)rezero([epsilon])Re-zero velocity vector components. rezero_coords([epsilon])Alias for Atom.rezero_xyz.rezero_xyz([epsilon])Re-zero position vector components. rotate(**kwargs)Rotate Atomvelocity vector.set_neighbors(n, neighbors)todict()translate(t[, fix_anchor_point])Translate Atomposition vector byVectort.