Hi Jingyang,
If some ions are missing, you can specify their scattering factors using
[See "help(pdfc.scatteringfactortable)" for a brief usage info.]
pdfc.scatteringfactortable.setCustomAs("P5+", "Ne")
or
pdfc.scatteringfactortable.setCustomAs("P5+", "P", 10)
The first form in effect treats P5+ atoms as Neons,
and the second one rescales f_P(Q) dependence to equal 10 at Q=0.
This makes no difference for PDFCalculator, because it only uses
the f(Q) value at Q=0 which is in both cases 10. For DebyePDFCalculator,
which evaluates f_P over a Q-range, the Q-dependencies would differ giving a
slightly different results.
Removing the "5+" charge as Monica suggested is also a way to go,
however note these 2 options produce different PDF amplitudes,
because they set scattering powers at P sites as 10 and 15.
[The best approximation might be somewhere in between
reflecting the actual electron distribution in the P-O bonds.]
Best wishes,
Pavol