Investigation of nucleation processes under the influence of magnetic fields