Step 2. Generate a structure of the system and assign the magnetic quantities (Jij, Si, Ki and distance between the nodes rij) to each i-th node. In this stage, the nodes should be considered atoms with a localized magnetic moment and the parameters should reflect their exchange coupling, magnetic moment and anisotropy.