1、
My current Mumax3 version is 3.9.1c. Can this code snippet run? (Comments removed)
Bphi_mask := NewVectorMask(Nx, Ny, Nz)
x0 := 0.0
y0 := 0.0
for i:=0; i<Nx; i++{
for j:=0; j<Ny; j++{
for k:=0; k<Nz; k++{
pos := Index2Coord(i, j, k)
x := pos.X() - x0
y := pos.Y() - y0
r := sqrt(x*x + y*y)
if r > 0 {
ex := -y/r
ey := x/r
Bphi_mask.SetVector(i, j, k, vector(ex, ey, 0))
} else {
Bphi_mask.SetVector(i, j, k, vector(0, 0, 0))
}
}
}
}
B_ext = vector(0, 0, B_bias)
B_ext.Add(
Bphi_mask,
B_max * (A*(1/(1+exp(-k1*(t-B_b))) - 1/(1+exp(-k2*(t-C_c))))
)
2、Now I want to download and install the latest version of Mumax3. Where can I find the complete installation procedure?