Skip to content

Issue with using a field for damping #98

@filvag

Description

@filvag

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:
Image

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions