Skip to content

Error with multiple RKKY energies #323

@brevisf

Description

@brevisf

Hello!
I'm trying to simulate a multilayer system, for example with three magnetic layers and two spacers. I want to couple Layer1 with Layer2 and Layer 2 with Layer3 through RKKY energy term. Also I need to implement two Uniaxial anisotropies, which gave me no issues, but when I try to add two RKKY interactions, the code fails: "Key Oxs_LinearScalarField:rkkyfield already in use". So, it is not possible to add more RKKY interactions?

Thanks !

Felipe Brevis

system = mm.System(name="rkky")
system.energy = (
    mm.Exchange(A=1e-12) + mm.RKKY(sigma=-1e-4, sigma2=0, subregions=['layer1', 'layer2bottom'], name="rkky_12")
    + mm.RKKY(sigma=-1e-4,sigma2=0,subregions=['layer2top', 'layer3'], name="rkky_23")
    + mm.UniaxialAnisotropy(K=0.5e6, u=(0, 0, 1), name='OOP_anisotropy') + mm.UniaxialAnisotropy(K=0.5e6, u=(1, 0, 0), name='IP_anisotropy')
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug in Ubermaghelp wantedNo resources available - help invited

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions