Skip to content

Issue with damping for subregions #92

Description

@mjoelln

Hi,

I work with a heterostructure simulation, in which I want to assign different damping constants "alpha" to different subregions. Using ubermag, it does work well with oommf, but not with mumax3c. The created .mx3 file shows for example alpha = {'region1': 0.01, 'region2': 0.2}. Changing line 27 and 52 in scripts\driver.py from
mx3 += f"alpha = {alpha}"
to this
mx3 += mc.scripts.set_parameter( parameter=alpha, name="alpha", system=system, ovf_format=ovf_format, )
worked for me. I assume this is a decent fix?

I'm a bit new to github/pull requests so I opened this as an issue first for someone to double check.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

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