Resistance functions
Those functions are used to compute the resistance of a given system.
They are all defined in the resistance
module for version upside of 1.2.0.
GMR_expr()
Get the symbolic expression for the GMR.
Returns:
Type | Description |
---|---|
GMR function |
Source code in cmtj/utils/resistance.py
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 |
|
Rxx_parallel_bilayer_expr()
Get the symbolic expressions for the parallel and linearised resistance of a bilayer system.
Returns:
Type | Description |
---|---|
linearised and parallel resistance functions Signals: - GMR: GMR - AMR1: AMR of layer 1 - SMR1: SMR of layer 1 - AMR2: AMR of layer 2 - SMR2: SMR of layer 2 - stationary angles: [t1, p1, t2, p2] - linearised angles: [dt1, dp1, dt2, dp2] Function signatures - Rlin_func: linearised resistance function f(GMR, AMR1, SMR1, AMR2, SMR2, [t1, p1, t2, p2], [dt1, dp1, dt2, dp2]) - R_func: series resistance function f(GMR, AMR1, SMR1, AMR2, SMR2, [t1, p1, t2, p2]) |
Source code in cmtj/utils/resistance.py
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 |
|
Rxx_series_bilayer_expr()
Get the symbolic expressions for the series and linearised resistance of a bilayer system.
Returns:
Type | Description |
---|---|
linearised and series resistance functions Signals: - GMR: GMR - AMR1: AMR of layer 1 - SMR1: SMR of layer 1 - AMR2: AMR of layer 2 - SMR2: SMR of layer 2 - stationary angles: [t1, p1, t2, p2] - linearised angles: [dt1, dp1, dt2, dp2] Function signatures - Rlin_func: linearised resistance function f(GMR, AMR1, SMR1, AMR2, SMR2, [t1, p1, t2, p2], [dt1, dp1, dt2, dp2]) - R_func: series resistance function f(GMR, AMR1, SMR1, AMR2, SMR2, [t1, p1, t2, p2]) |
Source code in cmtj/utils/resistance.py
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
|
Rxx_symbolic(id, AMR, SMR)
cached
Compute the Rxx resistance for a given layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
layer id |
required |
AMR |
float
|
anisotropic magnetoresistance |
required |
SMR |
float
|
spin Hall magnetoresistance |
required |
Source code in cmtj/utils/resistance.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
|
Rxy_symbolic(id, AMR, SMR, AHE, w_l)
cached
Compute the Rxy resistance for a given layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
layer id |
required |
AMR |
float
|
anisotropic magnetoresistance |
required |
SMR |
float
|
spin Hall magnetoresistance |
required |
AHE |
float
|
anomalous Hall effect |
required |
w_l |
float
|
width to length ratio |
required |
Source code in cmtj/utils/resistance.py
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
|
angular_calculate_resistance_gmr(Rp, Rap, theta_1, phi_1, theta_2, phi_2)
Computes the GMR using parallel and antiparallel resistance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Rp |
float
|
parallel resistance |
required |
Rap |
float
|
antiparallel resistance |
required |
theta_1 |
np.ndarray
|
angle of layer 1 |
required |
phi_1 |
np.ndarray
|
angle of layer 1 |
required |
theta_2 |
np.ndarray
|
angle of layer 2 |
required |
phi_2 |
np.ndarray
|
angle of layer 2 |
required |
Source code in cmtj/utils/resistance.py
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 |
|
calculate_linearised_resistance(GMR, AMR, SMR)
Compute the resistance of the two FM bilayer system from the linearised angles.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
GMR |
float
|
GMR |
required |
AMR |
list[float]
|
AMR |
required |
SMR |
list[float]
|
SMR |
required |
Source code in cmtj/utils/resistance.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
|
calculate_linearised_resistance_parallel(GMR, AMR, SMR, stationary_angles, linearised_angles)
Compute the parallel resistance of the two FM bilayer system from the linearised angles.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
GMR |
float
|
GMR |
required |
AMR |
list[float]
|
AMR |
required |
SMR |
list[float]
|
SMR |
required |
stationary_angles |
list[float]
|
stationary angles [t1, p1, t2, p2] |
required |
linearised_angles |
list[float]
|
linearised angles [dt1, dp1, dt2, dp2] |
required |
Source code in cmtj/utils/resistance.py
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 |
|
calculate_linearised_resistance_series(GMR, AMR, SMR, stationary_angles, linearised_angles)
Compute the resistance of the two FM bilayer system from the linearised angles.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
GMR |
float
|
GMR |
required |
AMR |
list[float]
|
AMR |
required |
SMR |
list[float]
|
SMR |
required |
stationary_angles |
list[float]
|
stationary angles [t1, p1, t2, p2] |
required |
linearised_angles |
list[float]
|
linearised angles [dt1, dp1, dt2, dp2] |
required |
Source code in cmtj/utils/resistance.py
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
|
calculate_magnetoresistance(Rp, Rap, m)
Computes the magnetoresistance using parallel and antiparallel resistance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Rp |
float
|
parallel resistance |
required |
Rap |
float
|
antiparallel resistance |
required |
m |
np.ndarray
|
magnetisation, 2 layers of shape [2, 3, T] where T is the time component |
required |
Source code in cmtj/utils/resistance.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|
calculate_resistance_parallel(Rx0, Ry0, AMR, AHE, SMR, m, l, w)
Calculates the resistance of the system in parallel. If you want to compute the resistance for an entire time series, pass m as a 3D array. [number_of_layers, 3, T] where T is the time component. Uses Kim's formula from the paper: https://link.aps.org/doi/10.1103/PhysRevLett.116.097201
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Rx0 |
list[float]
|
resistance offset in longitudinal direction |
required |
Ry0 |
list[float]
|
resistance offset in transverse direction |
required |
AMR |
list[float]
|
anisotropic magnetoresistance |
required |
AHE |
list[float]
|
anomalous Hall effect |
required |
SMR |
list[float]
|
spin Hall magnetoresistance |
required |
m |
list[float]
|
magnetisation of the layers. Shape [number_of_layers, 3, T] |
required |
l |
list[float]
|
length of the layers |
required |
w |
list[float]
|
width of the layers |
required |
Source code in cmtj/utils/resistance.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
|
calculate_resistance_series(Rx0, Ry0, AMR, AHE, SMR, m, l, w)
Calculates the resistance of the system in series. If you want to compute the resistance for an entire time series, pass m as a 3D array. [number_of_layers, 3, T] where T is the time component. Uses Kim's formula from the paper: https://link.aps.org/doi/10.1103/PhysRevLett.116.097201
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Rx0 |
list[float]
|
resistance offset in longitudinal direction |
required |
Ry0 |
list[float]
|
resistance offset in transverse direction |
required |
AMR |
list[float]
|
anisotropic magnetoresistance |
required |
AHE |
list[float]
|
anomalous Hall effect |
required |
SMR |
list[float]
|
spin Hall magnetoresistance |
required |
m |
list[float]
|
magnetisation of the layers. Shape [number_of_layers, 3, T] |
required |
l |
list[float]
|
length of the layers |
required |
w |
list[float]
|
width of the layers |
required |
Source code in cmtj/utils/resistance.py
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 |
|
compute_gmr(Rp, Rap, m1, m2)
Computes the GMR using parallel and antiparallel resistance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Rp |
float
|
parallel resistance |
required |
Rap |
float
|
antiparallel resistance |
required |
m1 |
np.ndarray
|
magnetisation of layer 1 |
required |
m2 |
np.ndarray
|
magnetisation of layer 2 |
required |
Source code in cmtj/utils/resistance.py
63 64 65 66 67 68 69 |
|
compute_resistance(Rx0, Ry0, AMR, AHE, SMR, m, l, w)
Computes the resistance of the system. If you want to compute the resistance for an entire time series, pass m as a 3D array with shape [number_of_layers, 3, T], where T is the time component. [number_of_layers, 3, T] where T is the time component.
Source code in cmtj/utils/resistance.py
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 |
|
compute_sd(dynamic_r, dynamic_i, integration_step)
Computes the SD voltage.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dynamic_r |
np.ndarray
|
magnetoresistance from log |
required |
dynamic_i |
np.ndarray
|
excitation current |
required |
integration_step |
float
|
integration paramemter from run_simulation |
required |
Source code in cmtj/utils/resistance.py
12 13 14 15 16 17 18 19 20 21 22 23 |
|