mumax / 3

GPU-accelerated micromagnetic simulator
Other
447 stars 150 forks source link

set the regions' m of a cylinder ,but table.text can not show the correct setting of m #305

Open xzcwchen opened 2 years ago

xzcwchen commented 2 years ago

I am a new guy of mumax3, when i set the some layers ' cylinder , each layer has itself m, then run it, the table.txt can not show mysetting about the m of different layers , could you help me ?
SetGridsize (25,25,5) SetCellsize(2e-9,2e-9,0.4e-9) top:=cylinder(50e-9,0.8e-9).transl(0,0,0.6e-9) bottom:=cylinder(50e-9,1.2e-9).transl(0,0,-0.4e-9) setgeom(top.add(bottom)) save(geom) defRegion(0, bottom) defRegion(1, top) save(regions) Ku1.setregion(0, 1.2e6) Ku1.setregion(1, 1.2e6) Msat.setregion(0,1.26e6) Msat.setregion(1,1.26e6) Aex.setregion(0, 3e-11) Aex.setregion(1, 3e-11) anisU.setRegion(0,vector(0,0,1)) anisU.setRegion(1,vector(0,0,1)) RKKY :=-2 // 1mJ/m2 scale :=(RKKY0.4e-9)/(2Aex.average()) ext_scaleExchange(0,1,scale) print(scale) alpha=0.01 m.setregion(0,uniform(0,0,1)) m.setregion(1,uniform(0,0,1)) tableadd(m.region(0)) tableadd(m.region(1)) tableautosave(0.01e-9) autosave(m,0.01e-9) run(5e-9)

the table.text can't show the correct m.region0