3D simulation of a silicon quantum dot in a magnetic field based on current spin density functional theory