ChargedAtom¶
-
class
sknano.core.atoms.charged_atoms.
ChargedAtom
(*args, q=0.0, **kwargs)[source] [edit on github][source]¶ Bases:
sknano.core.atoms.atoms.Atom
An
Atom
class with an electric charge attribute.Parameters: - element ({str, int}, optional) – A string representation of the element symbol or an integer specifying an element atomic number.
- q ({int, float}, optional) – Net charge of
ChargedAtom
.
Attributes
Z
Atomic number Z. element
Element symbol. fmtstr
Format string. m
An alias for mass
.mass
Atomic mass ma in atomic mass units. q
Charge q as multiple of elementary charge e. symbol
Element symbol. Methods
getattr
(attr[, default, recursive])Get atom attribute named attr
.reset_attrs
(**kwargs)Reset atom attributes. rezero
(*args, **kwargs)todict
()update_attrs
(**kwargs)Update atom attributes. Attributes Summary
q
Charge q as multiple of elementary charge e. Methods Summary
todict
()Attributes Documentation
-
q
¶ Charge q as multiple of elementary charge e.
Methods Documentation
-
todict
()[source] [edit on github][source]¶