This library contains the basic tools to plot the atomic orbitals using spherical harmonics as well as the vibrating function psi of the orbitals of a hydrogenlike atom, given the three integer positive numbers n, l and ml, respectively main quantic number, orbital quantic number and magnetic quantic number.
After downloading the source you'll need to go in the source folder and run the commaind
python3 orb.py n ml p s
where n, ml, p and s are the four aruments defined as follow
- n is the n quantic number (l = n-1);
- ml is the ml quantic number;
- p can be eather a 0, to print only the spherical harmonics, a 1, to print only the probability function, or a 2, to print both (the default value will be 0);
- s can be both a 0, to not save the frame, or a one to save the frame;
sostitute the letters with the numbers and send the command. For example:
python3 orb.py 3 0 0 1
The shape of the Spherical harmonics is given by the absolute value of the following complex function:
The shape of this orbital are not constant, in fact they depend on the radius from the center of the atom. In general, the function used to compute the orbitals depends on the form of the potential chosen, and it is solution of the Schrödinger equation in the spherical coordinates system.
The main file is orb.py, in which we fine the function orb() that takes as imput the
To use this class it is necessary to install:
- numpy
- matplotlib
- scipy