CNAtom¶
-
class
sknano.core.atoms.cn_atoms.
CNAtom
(*args, CN=0, **kwargs)[source] [edit on github][source]¶ Bases:
sknano.core.atoms.atoms.Atom
An
Atom
class with a coordination number attribute.Parameters: CN ({int}, optional) – Coordination number. Attributes
CN
Return CNAtom
coordination number.Z
Atomic number \(Z\). element
Element symbol. fmtstr
Format string. m
An alias for mass
.mass
Atomic mass \(m_a\) in atomic mass units. symbol
Element symbol. Methods
getattr
(attr[, default, recursive])Get atom attribute named attr
.reset_attrs
(**kwargs)Reset atom attributes. rezero
(*args, **kwargs)todict
()Return dict
ofCNAtom
constructor parameters.update_attrs
(**kwargs)Update atom attributes. Attributes Summary
CN
Return CNAtom
coordination number.Methods Summary
todict
()Return dict
ofCNAtom
constructor parameters.Attributes Documentation
Methods Documentation