Convergence study of a Schrödinger-equation algorithm and structure-factor determination from the wavefunction.