Skip to content

Group interactions

GroupInteraction

__init__(coordinateMatrix, junctionList, topId='free')

Initialize GroupInteraction for coupled junctions.

Parameters:

Name Type Description Default
coordinateMatrix list[CVector]

List of position vectors for each junction

required
junctionList list[Junction]

List of junctions to couple

required
topId str

ID of the top layer to use for interactions (default: "free")

'free'

Raises:

Type Description
RuntimeError

If coordinate and junction lists have different sizes or are empty

clearLogs()

Clear the logs

runSimulation(totalTime, timeStep=1e-13, writeFrequency=1e-13)

Run the coupled simulation.

Parameters:

Name Type Description Default
totalTime float

Total simulation time

required
timeStep float

Time step for integration

1e-13
writeFrequency float

How often to write data to logs

1e-13

Raises:

Type Description
RuntimeError

If timeStep > writeFrequency or junctions have incompatible solver modes

setInteractionFunction(function)

Set the interaction function for the coupled junctions.

Parameters:

Name Type Description Default
function Callable[[CVector, CVector, Layer, Layer], CVector]

Interaction function. Either computeDipoleInteraction or computeDipoleInteractionNoumra or nullDipoleInteraction or provide your own custom function.

required

computeDipoleInteraction(r1, r2, layer1, layer2)

Compute dipole interaction between two junctions (Kanao et al. 2019 PRA).

Parameters:

Name Type Description Default
r1 CVector

Position vector of the first junction

required
r2 CVector

Position vector of the second junction

required
layer1 Layer

Magnetic layer of the first junction

required
layer2 Layer

Magnetic layer of the second junction

required

Returns:

Type Description
CVector

Dipole interaction vector

computeDipoleInteractionNoumra(r1, r2, layer1, layer2)

Compute dipole interaction between two junctions (Nomura et al. 2019 JJAP).

Parameters:

Name Type Description Default
r1 CVector

Position vector of the first junction

required
r2 CVector

Position vector of the second junction

required
layer1 Layer

Magnetic layer of the first junction

required
layer2 Layer

Magnetic layer of the second junction

required

Returns:

Type Description
CVector

Dipole interaction vector

nullDipoleInteraction(r1, r2, layer1, layer2)

Compute null dipole interaction between two junctions. This is a placeholder function that returns a zero vector.

Parameters:

Name Type Description Default
r1 CVector

Position vector of the first junction

required
r2 CVector

Position vector of the second junction

required
layer1 Layer

Magnetic layer of the first junction

required
layer2 Layer

Magnetic layer of the second junction

required

Returns:

Type Description
CVector

Zero vector