LLGB
LLGBJunction
LLGB Junction class.
__init__(layers)
Initialises a LLGB junction with layers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layers
|
list[LLGBLayer]
|
list of LLGB layers. |
required |
clearLog()
Clears the simulation log of the junction.
getLog()
Returns the simulation log of the junction.
runSimulation(totalTime, timeStep=..., writeFrequency=..., log=..., solverMode=...)
Runs the simulation of the junction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
totalTime
|
float
|
total simulation time. |
required |
timeStep
|
float
|
time step. |
...
|
writeFrequency
|
float
|
frequency of writing to the log. |
...
|
log
|
bool
|
whether to log the simulation. |
...
|
solverMode
|
SolverMode
|
solver mode. |
...
|
saveLogs(arg0)
Saves the simulation logs to a file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arg0
|
str
|
file path. |
required |
setLayerExternalFieldDriver(layerId, driver)
Set an external field driver for a layer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layerId
|
str
|
the id of the layer. |
required |
driver
|
AxialDriver
|
the field driver to be set. |
required |
setLayerTemperatureDriver(layerId, driver)
Set a temperature driver for a layer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layerId
|
str
|
the id of the layer. |
required |
driver
|
ScalarDriver
|
the temperature driver to be set. |
required |
LLGBLayer
LLGB Layer class.
__init__(id, mag, anis, Ms, thickness, cellSurface, demagTensor, damping, Tc, susceptibility, me)
Creates a LLGB layer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
layer id. |
required |
mag
|
CVector
|
magnetisation. |
required |
anis
|
CVector
|
anisotropy axis. |
required |
Ms
|
float
|
saturation magnetisation. |
required |
thickness
|
float
|
thickness. |
required |
cellSurface
|
float
|
cell surface. |
required |
demagTensor
|
list[CVector]
|
demagnetisation tensor. |
required |
damping
|
float
|
damping factor. |
required |
Tc
|
float
|
Curie temperature. |
required |
susceptibility
|
float
|
susceptibility. |
required |
me
|
float
|
equilibrium magnetisation. |
required |
setAnisotropyDriver(driver)
Sets an anisotropy driver.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
driver
|
ScalarDriver
|
the anisotropy driver to be set. |
required |
setExternalFieldDriver(driver)
Sets an external field driver.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
driver
|
AxialDriver
|
the field driver to be set. |
required |
setTemperatureDriver(driver)
Sets a temperature driver.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
driver
|
ScalarDriver
|
the temperature driver to be set. |
required |
MFAWeissCurie(me, T, J0, relax=..., tolerance=..., maxIter=...)
Mean Field Approximation for Weiss Curie temperature.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
me
|
float
|
equilibrium magnetisation. |
required |
T
|
float
|
temperature. |
required |
J0
|
float
|
exchange coupling. |
required |
relax
|
float
|
relaxation factor. |
...
|
tolerance
|
float
|
tolerance for convergence. |
...
|
maxIter
|
int
|
maximum number of iterations. |
...
|