Dear ubermag team,
I am running some simulations in mumax and would like to implement a damping constant in the form of a field. The code (see relevant snippet below) runs successfully with oommf but not with mumax3, which returns the error in the attached image. However, when I replace the value of alpha by a constant, the program runs without any issues. I know this is potentially an error or a limitation of mumax but I was wondering if you could provide any insight or any possible work-arounds.
Code regarding damping:
def alpha_fun(position):
x,y,z = position
return (((x-2.5e-6)/(2.5-6))**100 + ((y-1e-6)/(1e-6))**100)
alpha_field = df.Field(mesh, nvdim = 1, value = alpha_fun)
system.dynamics = mm.Damping(alpha = alpha_field) + mm.Precession(gamma0 = gamma)
The error message:

Kind regards
Dear ubermag team,
I am running some simulations in mumax and would like to implement a damping constant in the form of a field. The code (see relevant snippet below) runs successfully with oommf but not with mumax3, which returns the error in the attached image. However, when I replace the value of alpha by a constant, the program runs without any issues. I know this is potentially an error or a limitation of mumax but I was wondering if you could provide any insight or any possible work-arounds.
Code regarding damping:
def alpha_fun(position):
x,y,z = position
return (((x-2.5e-6)/(2.5-6))**100 + ((y-1e-6)/(1e-6))**100)
alpha_field = df.Field(mesh, nvdim = 1, value = alpha_fun)
system.dynamics = mm.Damping(alpha = alpha_field) + mm.Precession(gamma0 = gamma)
The error message:

Kind regards