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 |
|
__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 |
|
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 54 55 |
|
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
57 58 59 60 61 62 63 64 |
|
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
66 67 68 69 70 71 72 |
|
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
74 75 76 77 78 79 |
|
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
81 82 83 84 85 86 87 88 89 90 91 92 |
|
SeriesStack
Source code in cmtj/stack/__init__.pyi
94 95 96 97 98 99 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 |
|
__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
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
|
clearLogs()
Clear all the logs, both of the stack and the junctions that constitute the stack.
Source code in cmtj/stack/__init__.pyi
112 113 114 115 116 117 |
|
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
192 193 194 195 196 |
|
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
135 136 137 138 139 140 141 142 143 144 |
|
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
146 147 148 149 150 151 152 153 |
|
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
174 175 176 177 178 179 |
|
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
181 182 183 184 185 186 187 188 189 190 |
|