We calculate the ground-state electronic density of each atom by using ab initio self-consistent method, and then we obtain the total ground state energy of atoms from using the ground-state electronic density of each atom. We can use the ground-state electronic density of each atom to construct the pseudo wave function which corresponds to the wave function of valence states. In the end, we can obtain the pseudopotential of the pseudo wave function for each angular momentum.