Simulation sheds light on Earth’s magnetic field generation while advancing neuromorphic computing