Atom¶
-
class
Atom(atomic_number, charge, max_valence)[source]¶ Bases:
objectAn atom of a molecule.
Parameters: - atomic_number (
int) – The atomic number of the atom. - charge (
int) – The formal charge of the atom. - max_valence (
int) – The maximum valence the atom is allowed to have.
Methods
get_atomic_number(self)Return the atomic number of the atom. get_charge(self)Return the formal charge of the atom. get_max_valence(self)Return the maximum valence the atom is allowed to have. -
get_atomic_number(self)[source]¶ Return the atomic number of the atom.
Returns: The atomic number of the atom. Return type: int
- atomic_number (