VelocityAtom¶
-
class
sknano.core.atoms.velocity_atoms.VelocityAtom(*args, vx=None, vy=None, vz=None, **kwargs)[source] [edit on github][source]¶ Bases:
sknano.core.atoms.atoms.AtomAn
Atomsub-class with velocity component attributes.Parameters: - element ({str, int}, optional) – A string representation of the element symbol or an integer specifying an element atomic number.
- vy, vz (vx,) – \(v_x, v_y, v_z\) components of
VelocityAtomvelocity.
Attributes
ZAtomic number \(Z\). elementElement symbol. fmtstrFormat string. mAn alias for mass.massAtomic mass \(m_a\) in atomic mass units. symbolElement symbol. 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 vectorMethods
getattr(attr[, default, recursive])Get atom attribute named attr.reset_attrs(**kwargs)Reset atom attributes. rezero([epsilon])Re-zero velocity vector components. rotate(**kwargs)Rotate Atomvelocity vector.todict()Return dictof constructor parameters.update_attrs(**kwargs)Update atom attributes. Attributes Summary
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 vectorMethods Summary
rezero([epsilon])Re-zero velocity vector components. rotate(**kwargs)Rotate Atomvelocity vector.todict()Return dictof constructor parameters.Attributes Documentation
-
v¶ \(v_x, v_y, v_z\) array of velocity components.
Returns: 3-element ndarray of [\(v_x\), \(v_y\), \(v_z\)] velocity components of VelocityAtom.Return type: ndarray
-
vx¶ \(x\) component of
VelocityAtomvelocity vector
-
vy¶ \(x\) component of
VelocityAtomvelocity vector
-
vz¶ \(z\) component of
VelocityAtomvelocity vector
Methods Documentation
-
rezero(epsilon=1e-10)[source] [edit on github][source]¶ Re-zero velocity vector components.
Set velocity vector components with absolute value less than
epsilonto zero.Parameters: epsilon (float) – smallest allowed absolute value of any \(x,y,z\) component.
-
rotate(**kwargs)[source] [edit on github][source]¶ Rotate
Atomvelocity vector.Parameters:
-
todict()[source] [edit on github][source]¶ Return
dictof constructor parameters.