Stack
ParallelStack
Source code in cmtj/stack/__init__.pyi
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
__init__(junctionList, topId='free', bottomId='bottom', phaseOffset=0)
Initialises a parallel connection of junctions. Layer ids are used to identify the layers in the junctions and for resistance calculations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
junctionList |
list[cmtj.Junction]
|
list of junctions to be connected in parallel. |
required |
topId |
str
|
the string id of the top layer in the stack. Default is "free". |
'free'
|
bottomId |
str
|
the string id of the bottom layer in the stack. Default is "bottom". |
'bottom'
|
phaseOffset |
float
|
the phase offset between the junctions. Default is 0. |
0
|
Source code in cmtj/stack/__init__.pyi
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
clearLogs()
Clear all the logs, both of the stack and the junctions that constitute the stack.
Source code in cmtj/stack/__init__.pyi
23 24 25 26 27 28 |
|
getJunction(junctionId)
Get a specific junction from the stack. Returns a reference.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
junctionId |
int
|
the id of the junction (int) as passed in the init. |
required |
Source code in cmtj/stack/__init__.pyi
94 95 96 97 98 |
|
getMagnetisation(junction, layerId)
Get the magnetisation of a specific layer in a specific junction.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
junction |
int
|
the id of the junction (int) as passed in the init. |
required |
layerId |
str
|
the string id of the layer in the junction. |
required |
Source code in cmtj/stack/__init__.pyi
88 89 90 91 92 |
|
runSimulation(totalTime, timeStep=Ellipsis, writeFrequency=Ellipsis)
Run the simulation of the stack.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
totalTime |
float
|
total time of a simulation, give it in seconds. Typical length is in ~couple ns. |
required |
timeStep |
float
|
the integration step of the RK45 method. Default is 1e-13 |
Ellipsis
|
writeFrequency |
float
|
how often is the log saved to? Must be no smaller than |
Ellipsis
|
Source code in cmtj/stack/__init__.pyi
46 47 48 49 50 51 52 53 |
|
setCoupledCurrentDriver(driver)
Sets a global current driver for all junctions inside the stack. Keep in mind the current passed down the stack will be modified by the coupling constant.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
driver |
cmtj.ScalarDriver
|
the current driver to be set. |
required |
Source code in cmtj/stack/__init__.pyi
55 56 57 58 59 60 61 62 |
|
setCouplingStrength(coupling)
Coupling constant that represents the energy losses as the current passes through the stack.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
coupling |
float
|
the coupling strength (or the losses) |
required |
Source code in cmtj/stack/__init__.pyi
64 65 66 67 68 69 70 |
|
setExternalFieldDriver(driver)
Sets a external field current driver for all junctions inside the stack.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
driver |
cmtj.AxialDriver
|
the field driver to be set. |
required |
Source code in cmtj/stack/__init__.pyi
72 73 74 75 76 77 |
|
setMagnetisation(junctionId, layerId, mag)
Set magnetisation on a specific layer in a specific junction.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
junctionId |
int
|
the id of the junction (int) as passed in the init. |
required |
layerId |
str
|
the string id of the layer in the junction. |
required |
mag |
cmtj.CVector
|
the magnetisation to be set. |
required |
Source code in cmtj/stack/__init__.pyi
79 80 81 82 83 84 85 86 |
|
SeriesStack
Source code in cmtj/stack/__init__.pyi
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
|
__init__(junctionList, topId='free', bottomId='bottom', phaseOffset=0)
Initialises a series connection of junctions. Layer ids are used to identify the layers in the junctions and for resistance calculations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
junctionList |
list[cmtj.Junction]
|
list of junctions to be connected in series. |
required |
topId |
str
|
the string id of the top layer in the stack. Default is "free". |
'free'
|
bottomId |
str
|
the string id of the bottom layer in the stack. Default is "bottom". |
'bottom'
|
phaseOffset |
float
|
the phase offset between the junctions. Default is 0. |
0
|
Source code in cmtj/stack/__init__.pyi
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
|
clearLogs()
Clear all the logs, both of the stack and the junctions that constitute the stack.
Source code in cmtj/stack/__init__.pyi
118 119 120 121 122 123 |
|
getJunction(junctionId)
Get a specific junction from the stack. Returns a reference.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
junctionId |
int
|
the id of the junction (int) as passed in the init. |
required |
Source code in cmtj/stack/__init__.pyi
200 201 202 203 204 |
|
getMagnetisation(junction, layerId)
Get the magnetisation of a specific layer in a specific junction.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
junction |
int
|
the id of the junction (int) as passed in the init. |
required |
layerId |
str
|
the string id of the layer in the junction. |
required |
Source code in cmtj/stack/__init__.pyi
194 195 196 197 198 |
|
runSimulation(totalTime, timeStep=Ellipsis, writeFrequency=Ellipsis)
Run the simulation of the stack.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
totalTime |
float
|
total time of a simulation, give it in seconds. Typical length is in ~couple ns. |
required |
timeStep |
float
|
the integration step of the RK45 method. Default is 1e-13 |
Ellipsis
|
writeFrequency |
float
|
how often is the log saved to? Must be no smaller than |
Ellipsis
|
Source code in cmtj/stack/__init__.pyi
141 142 143 144 145 146 147 148 |
|
setCoupledCurrentDriver(driver)
Sets a global current driver for all junctions inside the stack. Keep in mind the current passed down the stack will be modified by the coupling constant.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
driver |
cmtj.ScalarDriver
|
the current driver to be set. |
required |
Source code in cmtj/stack/__init__.pyi
150 151 152 153 154 155 156 157 |
|
setExternalFieldDriver(driver)
Sets a external field current driver for all junctions inside the stack.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
driver |
cmtj.AxialDriver
|
the field driver to be set. |
required |
Source code in cmtj/stack/__init__.pyi
178 179 180 181 182 183 |
|
setMagnetisation(junctionId, layerId, mag)
Set magnetisation on a specific layer in a specific junction.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
junctionId |
int
|
the id of the junction (int) as passed in the init. |
required |
layerId |
str
|
the string id of the layer in the junction. |
required |
mag |
cmtj.CVector
|
the magnetisation to be set. |
required |
Source code in cmtj/stack/__init__.pyi
185 186 187 188 189 190 191 192 |
|