{"action":"opened","issue":{"url":"https://api.github.com/repos/mumax/3/issues/183","repository_url":"https://api.github.com/repos/mumax/3","labels_url":"https://api.github.com/repos/mumax/3/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/mumax/3/issues/183/comments","events_url":"https://api.github.com/repos/mumax/3/issues/183/events","html_url":"https://github.com/mumax/3/issues/183","id":336565998,"node_id":"MDU6SXNzdWUzMzY1NjU5OTg=","number":183,"title":"Are randommag() and randommagseed() functions really random?","user":{"login":"pankajmandal4003","id":40660252,"node_id":"MDQ6VXNlcjQwNjYwMjUy","avatar_url":"https://avatars0.githubusercontent.com/u/40660252?v=4","gravatar_id":"","url":"https://api.github.com/users/pankajmandal4003","html_url":"https://github.com/pankajmandal4003","followers_url":"https://api.github.com/users/pankajmandal4003/followers","following_url":"https://api.github.com/users/pankajmandal4003/following{/other_user}","gists_url":"https://api.github.com/users/pankajmandal4003/gists{/gist_id}","starred_url":"https://api.github.com/users/pankajmandal4003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pankajmandal4003/subscriptions","organizations_url":"https://api.github.com/users/pankajmandal4003/orgs","repos_url":"https://api.github.com/users/pankajmandal4003/repos","events_url":"https://api.github.com/users/pankajmandal4003/events{/privacy}","received_events_url":"https://api.github.com/users/pankajmandal4003/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-28T10:35:09Z","updated_at":"2018-06-28T10:35:09Z","closed_at":null,"author_association":"NONE","body":"I tried to run the same simulation for my magnetic geometry with initialisation of moments using randommag() or randommagseed(). However, at every run, I see the initial random configuration of moments are the same. This therefore gives me the same relaxed output. Which means I can not check whether my relaxed geometry is a computational artefact or real physical stuff.\r\n\r\nAny help or suggestion is welcome. Below is the code! \r\n\r\nMsat  = 5.68e3                           \r\nanisU = vector(0, 0, 1)                 \r\nKu1   = 2.84e3                           \r\nAex   = 7.2e-13                      \r\nalpha = 0.3                              \r\n\r\nd := 1.0e-9                                  // 1 nm\r\nSizex := 250*d                           // magnet size x\r\nSizey := 250*d\r\nSizez := 10*d\r\n\r\nSetGridSize(256, 256, 4)                \r\nSetCellSize(Sizex/256, Sizey/256, Sizez/4)\r\n\r\nEdgeSmooth = 8\r\n\r\na := cylinder(Sizex, Sizez)\r\nb := cylinder(Sizex/2, Sizez)\r\nsetgeom( a.sub(b) )\r\nsaveas(geom, \"Torus\")\r\n\r\nm = randommag()                  // initial mag along z (easy axis)\r\nsaveas(m, \"m_initial\")\r\ntablesave()\r\n\r\nrelax()  \r\nsave(m)  \r\n\r\nsaveas(m, \"m_final\")                    // remanent magnetization\r\nsaveas(B_demag, \"Magnetostat-field\")   // Magnetostatic field\r\ntablesave()\r\n\r\n"}}
{"actor":{"display_login":"pankajmandal4003"}}