Computational techniques for spherical boundary conditions