Applications of the Heisenberg magnetic model in nanoscience