Core
AxialDriver
Axial driver class.
Source code in cmtj/core/__init__.pyi
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 |
|
CVector
CVector class. Represents a 3D vector.
Source code in cmtj/core/__init__.pyi
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
|
__init__(x, y, z)
Initialises a 3D vector.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
float
|
x component of the vector |
required |
y |
float
|
y component of the vector |
required |
z |
float
|
z component of the vector |
required |
Source code in cmtj/core/__init__.pyi
185 186 187 188 189 190 |
|
length()
Returns the length of the vector.
Source code in cmtj/core/__init__.pyi
192 193 194 |
|
normalize()
Normalizes the vector.
Source code in cmtj/core/__init__.pyi
196 197 198 |
|
tolist()
Converts the vector to a list.
Source code in cmtj/core/__init__.pyi
200 201 202 |
|
Junction
Source code in cmtj/core/__init__.pyi
229 230 231 232 233 234 235 236 237 238 239 240 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 288 289 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 333 334 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 383 384 385 386 387 388 389 390 391 392 393 394 395 396 |
|
clearLog()
Reset current simulation state.
Source code in cmtj/core/__init__.pyi
274 275 276 |
|
getLayer(layerId)
Get a specific layer from the junction. Returns a reference.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
layerId |
str
|
the id of the layer (string) as passed in the init. |
required |
Source code in cmtj/core/__init__.pyi
392 393 394 395 396 |
|
getLayerMagnetisation(layerId)
Get the magnetisation of a layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
layerId |
str
|
the layer id |
required |
Source code in cmtj/core/__init__.pyi
278 279 280 281 |
|
getLog()
Retrieve the simulation log [data].
Source code in cmtj/core/__init__.pyi
283 284 285 |
|
runSimulation(totalTime, timeStep=Ellipsis, writeFrequency=Ellipsis, persist=Ellipsis, log=Ellipsis, calculateEnergies=Ellipsis)
Main run simulation function. Use it to run the simulation.
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
|
persist |
bool
|
whether to save to the filename specified in the Junction constructor. Default is true |
Ellipsis
|
log |
bool
|
if you want some verbosity like timing the simulation. Default is false |
Ellipsis
|
calculateEnergies |
bool
|
[WORK IN PROGRESS] log energy values to the log. Default is false. |
Ellipsis
|
Source code in cmtj/core/__init__.pyi
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 |
|
setIECDriver(bottomLayer, topLayer, driver)
Set IEC interaction between two layers. The names of the params are only for convention. The IEC will be set between bottomLyaer or topLayer, order is irrelevant.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bottomLayer |
str
|
the first layer id |
required |
topLayer |
str
|
the second layer id |
required |
Source code in cmtj/core/__init__.pyi
308 309 310 311 312 313 314 315 |
|
setLayerAnisotropyDriver(layerId, driver)
Set anisotropy driver for a layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
layerId |
str
|
the id of the layer. |
required |
driver |
ScalarDriver
|
the anisotropy driver to be set. |
required |
Source code in cmtj/core/__init__.pyi
333 334 335 336 337 338 |
|
setLayerCurrentDriver(layerId, driver)
Set a current driver for a layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
layerId |
str
|
the layer id |
required |
driver |
ScalarDriver
|
the driver |
required |
Source code in cmtj/core/__init__.pyi
340 341 342 343 344 345 |
|
setLayerDampingLikeTorqueDriver(layerId, driver)
Set the damping like torque driver for a layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
layerId |
str
|
the layer id |
required |
driver |
ScalarDriver
|
the driver |
required |
Source code in cmtj/core/__init__.pyi
369 370 371 372 373 374 |
|
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 |
Source code in cmtj/core/__init__.pyi
347 348 349 350 351 352 |
|
setLayerFieldLikeTorqueDriver(layerId, driver)
Set the field like torque driver for a layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
layerId |
str
|
the layer id |
required |
driver |
ScalarDriver
|
the driver |
required |
Source code in cmtj/core/__init__.pyi
376 377 378 379 380 381 |
|
setLayerMagnetisation(layerId, mag)
Set the magnetisation of a layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
layerId |
str
|
the layer id |
required |
mag |
CVector
|
the magnetisation |
required |
Source code in cmtj/core/__init__.pyi
354 355 356 357 358 359 |
|
setLayerOneFNoise(layerId, sources, bias, scale)
Set 1/f noise for a layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
layerId |
str
|
the layer id |
required |
sources |
int
|
the number of generation sources (the more the slower, but more acc.) |
required |
bias |
float
|
the bias of the noise (p in the Multinomial distribution) |
required |
scale |
float
|
the scale of the noise, additional scaling factor |
required |
Source code in cmtj/core/__init__.pyi
383 384 385 386 387 388 389 390 |
|
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 |
Source code in cmtj/core/__init__.pyi
326 327 328 329 330 331 |
|
setQuadIECDriver(bottomLayer, topLayer, driver)
Set secondary (biquadratic term) IEC interaction between two layers. The names of the params are only for convention. The IEC will be set between bottomLyaer or topLayer, order is irrelevant.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bottomLayer |
str
|
the first layer id |
required |
topLayer |
str
|
the second layer id |
required |
Source code in cmtj/core/__init__.pyi
317 318 319 320 321 322 323 324 |
|
Layer
Source code in cmtj/core/__init__.pyi
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 437 438 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 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
|
__init__(id, mag, anis, Ms, thickness, cellSurface, demagTensor, temperature=Ellipsis, damping=Ellipsis)
The basic structure is a magnetic layer.
Its parameters are defined by the constructor and may be altered
by the drivers during the simulation time.
If you want STT, remember to set the reference vector for the polarisation of the layer.
Use setReferenceLayer
function to do that.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
identifiable name for a layer -- e.g. "bottom" or "free". |
required |
mag |
CVector
|
initial magnetisation. Must be normalised (norm of 1). Used for quicker convergence. |
required |
anis |
CVector
|
anisotropy of the layer. A normalised vector |
required |
Ms |
float
|
magnetisation saturation. Unit: Tesla [T]. |
required |
thickness |
float
|
thickness of the layer. Unit: meter [m]. |
required |
cellSurface |
float
|
surface of the layer, for volume calculation. Unit: meter^2 [m^2]. |
required |
damping |
float
|
often marked as alpha in the LLG equation. Damping of the layer. Default 0.011. Dimensionless |
Ellipsis
|
Source code in cmtj/core/__init__.pyi
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 |
|
createBufferedAlphaNoise(bufferSize)
Create a buffered alpha noise generator.
Source code in cmtj/core/__init__.pyi
482 483 484 |
|
createSOTLayer(id, mag, anis, Ms, thickness, cellSurface, demagTensor, damping=0.11, fieldLikeTorque=0, dampingLikeTorque=0)
staticmethod
Create SOT layer -- including damping and field-like torques that are calculated based on the effective Spin Hall angles.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
identifiable name for a layer -- e.g. "bottom" or "free". |
required |
mag |
CVector
|
initial magnetisation. Must be normalised (norm of 1). Used for quicker convergence. |
required |
anis |
CVector
|
anisotropy of the layer. A normalised vector |
required |
Ms |
float
|
magnetisation saturation. Unit: Tesla [T]. |
required |
thickness |
float
|
thickness of the layer. Unit: meter [m]. |
required |
cellSurface |
float
|
surface of the layer, for volume calculation. Unit: meter^2 [m^2]. |
required |
damping |
float
|
often marked as alpha in the LLG equation. Damping of the layer. Default 0.011. Dimensionless. |
0.11
|
Source code in cmtj/core/__init__.pyi
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 |
|
createSTTLayer(id, mag, anis, Ms, thickness, cellSurface, demagTensor, damping=0.011, SlonczewskiSpacerLayerParameter=1.0, beta=0.0, spinPolarisation=0.0)
staticmethod
Create STT layer -- with the standard Slomczewski formulation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
identifiable name for a layer -- e.g. "bottom" or "free". |
required |
mag |
CVector
|
initial magnetisation. Must be normalised (norm of 1). Used for quicker convergence. |
required |
anis |
CVector
|
anisotropy of the layer. A normalised vector |
required |
Ms |
float
|
magnetisation saturation. Unit: Tesla [T]. |
required |
thickness |
float
|
thickness of the layer. Unit: meter [m]. |
required |
cellSurface |
float
|
surface of the layer, for volume calculation. Unit: meter^2 [m^2]. |
required |
damping |
float
|
often marked as alpha in the LLG equation. Damping of the layer. Default 0.011. Dimensionless. |
0.011
|
SlonczewskiSpacerLayerParameter |
float
|
Slomczewski parameter. Often marked as lambda. |
1.0
|
beta |
float
|
beta parameter that scales FL/DL ratio. |
0.0
|
spinPolarisation |
float
|
the spin effectiveness. |
0.0
|
Source code in cmtj/core/__init__.pyi
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 |
|
getId()
Get Id of the layer
Source code in cmtj/core/__init__.pyi
551 552 553 |
|
setAlphaNoise(alpha, std, scale, axis=Axis.all)
Set alpha noise for the layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alpha |
float
|
Alpha parameter |
required |
std |
float
|
Standard deviation |
required |
scale |
float
|
Scale |
required |
axis |
Axis
|
Axis, by default all axes are used |
Axis.all
|
Source code in cmtj/core/__init__.pyi
486 487 488 489 490 491 492 493 |
|
setAlternativeSTT(setAlternative)
Switch to an alternative STT forumulation (Taniguchi et al.) https://iopscience.iop.org/article/10.7567/APEX.11.013005
Parameters:
Name | Type | Description | Default |
---|---|---|---|
setAlternative |
bool
|
whether to set the alternative STT formulation |
required |
Source code in cmtj/core/__init__.pyi
555 556 557 558 559 560 |
|
setAnisotropyDriver(driver)
Set anisotropy driver for the layer. It's scalar. The axis is determined in the layer constructor
Source code in cmtj/core/__init__.pyi
495 496 497 498 |
|
setBottomDipoleTensor(tensor)
Set a dipole tensor from the bottom layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tensor |
list[CVector]
|
the dipole tensor to be set. |
required |
Source code in cmtj/core/__init__.pyi
545 546 547 548 549 |
|
setDampingLikeTorqueDriver(driver)
Set a driver for the damping like torque of the layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
driver |
ScalarDriver
|
the driver to be set. |
required |
Source code in cmtj/core/__init__.pyi
516 517 518 519 |
|
setFieldLikeTorqueDriver(driver)
Set a driver for the field like torque of the layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
driver |
ScalarDriver
|
the driver to be set. |
required |
Source code in cmtj/core/__init__.pyi
521 522 523 524 |
|
setKappa(kappa)
Set the kappa parameter for the layer -- determines SOT mixing Hdl * kappa + Hfl Allows you to turn off Hdl. Turning Hfl is via beta parameter.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
kappa |
float
|
the kappa parameter |
required |
Source code in cmtj/core/__init__.pyi
562 563 564 565 566 567 568 |
|
setMagnetisation(mag)
Set the magnetisation of the layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mag |
CVector
|
the magnetisation to be set. |
required |
Source code in cmtj/core/__init__.pyi
506 507 508 509 |
|
setOerstedFieldDriver(driver)
Set an Oersted field driver for the layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
driver |
AxialDriver
|
the field driver to be set. |
required |
Source code in cmtj/core/__init__.pyi
511 512 513 514 |
|
setReferenceLayer(ref)
Set a reference layer for the STT.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ref |
CVector
|
the reference layer vector. |
required |
Source code in cmtj/core/__init__.pyi
526 527 528 529 |
|
setTemperatureDriver(driver)
Set a driver for the temperature of the layer. Automatically changes the solver to Euler-Heun.
Source code in cmtj/core/__init__.pyi
500 501 502 503 |
|
setTopDipoleTensor(tensor)
Set a dipole tensor from the top layer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tensor |
list[CVector]
|
the dipole tensor to be set. |
required |
Source code in cmtj/core/__init__.pyi
539 540 541 542 543 |
|
NullDriver
Bases: ScalarDriver
Source code in cmtj/core/__init__.pyi
570 571 572 573 574 575 576 |
|
__init__()
An empty driver that does nothing. Use in Axial Driver when the axis is to be id.
Source code in cmtj/core/__init__.pyi
571 572 573 574 575 576 |
|
Reference
Reference layer indicator.
Source code in cmtj/core/__init__.pyi
691 692 693 694 695 696 697 |
|
ScalarDriver
Source code in cmtj/core/__init__.pyi
578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 |
|
getConstantDriver(constantValue)
staticmethod
Constant driver produces a constant signal of a fixed amplitude.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
constant value of the driver (constant offset/amplitude) |
required |
Source code in cmtj/core/__init__.pyi
587 588 589 590 591 592 593 |
|
getCurrentScalarValue(time)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
time |
float
|
time in seconds |
required |
Returns:
Type | Description |
---|---|
float
|
the scalar value of the driver at time. |
Source code in cmtj/core/__init__.pyi
580 581 582 583 584 585 |
|
getGaussianImpulseDriver(constantValue, amplitude, t0, sigma)
staticmethod
Gaussian impulse driver. It has amplitude starts at t0 and falls off with sigma.
Formula: A * exp(-((t - t0) 2) / (2 * sigma 2))
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
offset of the pulse (vertical) |
required |
amplitude |
float
|
amplitude that is added on top of the constantValue |
required |
t0 |
float
|
start of the pulse |
required |
sigma |
float
|
fall-off of the Gaussian pulse |
required |
Source code in cmtj/core/__init__.pyi
645 646 647 648 649 650 651 652 653 654 655 656 657 |
|
getGaussianStepDriver(constantValue, amplitude, t0, sigma)
staticmethod
Gaussian step driver (erf function). It has amplitude starts at t0 and falls off with sigma.
Formula: f(t) = constantValue + amplitude * (1 + erf((t - t0) / (sigma * sqrt(2))))
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
offset of the pulse (vertical) |
required |
amplitude |
float
|
amplitude that is added on top of the constantValue |
required |
t0 |
float
|
start of the pulse |
required |
sigma |
float
|
fall-off of the Gaussian pulse |
required |
Source code in cmtj/core/__init__.pyi
659 660 661 662 663 664 665 666 667 668 669 670 671 |
|
getPosSineDriver(constantValue, amplitude, frequency, phase)
staticmethod
Produces a positive sinusoidal signal with some offset (constantValue), amplitude frequency and phase offset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
vertical offset. The sine will oscillate around this value. |
required |
amplitude |
float
|
amplitude of the sine wave |
required |
frequency |
float
|
frequency of the sine |
required |
phase |
float
|
phase of the sine in radians. |
required |
Source code in cmtj/core/__init__.pyi
673 674 675 676 677 678 679 680 681 |
|
getPulseDriver(constantValue, amplitude, period, cycle)
staticmethod
Produces a square pulse of certain period and cycle
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
offset (vertical) of the pulse. The pulse amplitude will be added to this. |
required |
amplitude |
float
|
amplitude of the pulse signal |
required |
period |
float
|
period of the signal in seconds |
required |
cycle |
float
|
duty cycle of the signal -- a fraction between [0 and 1]. |
required |
Source code in cmtj/core/__init__.pyi
595 596 597 598 599 600 601 602 603 604 |
|
getSineDriver(constantValue, amplitude, frequency, phase)
staticmethod
Produces a sinusoidal signal with some offset (constantValue), amplitude frequency and phase offset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
vertical offset. The sine will oscillate around this value. |
required |
amplitude |
ScalarDriver
|
amplitude of the sine wave |
required |
frequency |
float
|
frequency of the sine |
required |
phase |
float
|
phase of the sine in radians. |
required |
Source code in cmtj/core/__init__.pyi
606 607 608 609 610 611 612 613 614 615 |
|
getStepDriver(constantValue, amplitude, timeStart, timeStop)
staticmethod
Get a step driver. It has amplitude between timeStart and timeStop and 0 elsewhere
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
offset of the pulse (vertical) |
required |
amplitude |
float
|
amplitude that is added on top of the constantValue |
required |
timeStart |
float
|
start of the pulse |
required |
timeStop |
float
|
when the pulse ends |
required |
Source code in cmtj/core/__init__.pyi
617 618 619 620 621 622 623 624 625 626 |
|
getTrapezoidDriver(constantValue, amplitude, timeStart, edgeTime, steadyTime)
staticmethod
Create Trapezoid driver. Has a rising and a falling edge.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
offset of the pulse (vertical) |
required |
amplitude |
float
|
amplitude that is added on top of the constantValue |
required |
timeStart |
start of the pulse |
required | |
edgeTime |
float
|
time it takes to reach the maximum amplitude |
required |
steadyTime |
float
|
time it spends in a steady state |
required |
Source code in cmtj/core/__init__.pyi
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 |
|
SolverMode
SolverMode Indicator
Source code in cmtj/core/__init__.pyi
683 684 685 686 687 688 689 |
|
c_dot(arg0, arg1)
Compute dot (scalar) product of two CVectors.
Source code in cmtj/core/__init__.pyi
10 11 12 |
|
constantDriver(constant)
Constant driver produces a constant signal of a fixed amplitude.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constant |
float
|
constant value of the driver (constant offset/amplitude) |
required |
Source code in cmtj/core/__init__.pyi
14 15 16 17 18 19 |
|
gaussianImpulseDriver(constantValue, amplitude, t0, sigma)
Gaussian impulse driver. It starts with an max amplitude at t0 and falls off with sigma.
Formula:
\(A \exp(-(t - t_0)^2 / (2\sigma^2))\)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
offset of the pulse (vertical) |
required |
amplitude |
float
|
amplitude that is added on top of the constantValue |
required |
t0 |
float
|
start of the pulse |
required |
sigma |
float
|
fall-off of the Gaussian pulse |
required |
Source code in cmtj/core/__init__.pyi
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
gaussianStepDriver(constantValue, amplitude, t0, sigma)
Gaussian step driver (erf function). It starts at t0 and falls off with sigma.
Formula:
\(f(t) = c + A + A\mathrm{erf}((t - t_0) / (\sigma \sqrt(2)))\)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
offset of the pulse (vertical) |
required |
amplitude |
float
|
amplitude that is added on top of the constantValue |
required |
t0 |
float
|
start of the pulse |
required |
sigma |
float
|
fall-off of the Gaussian pulse |
required |
Source code in cmtj/core/__init__.pyi
46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
posSineDriver(constantValue, amplitude, frequency, phase)
Produces a positive sinusoidal signal with some offset (constantValue), amplitude frequency and phase offset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
vertical offset. The sine will oscillate around this value. |
required |
amplitude |
float
|
amplitude of the sine wave |
required |
frequency |
float
|
frequency of the sine |
required |
phase |
float
|
phase of the sine in radians. |
required |
Source code in cmtj/core/__init__.pyi
60 61 62 63 64 65 66 67 |
|
pulseDriver(constantValue, amplitude, period, cycle)
Produces a square pulse of certain period and cycle
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
offset (vertical) of the pulse. The pulse amplitude will be added to this. |
required |
amplitude |
float
|
amplitude of the pulse signal |
required |
period |
float
|
period of the signal in seconds |
required |
cycle |
float
|
duty cycle of the signal -- a fraction between [0 and 1]. |
required |
Source code in cmtj/core/__init__.pyi
69 70 71 72 73 74 75 76 77 |
|
sineDriver(constantValue, amplitude, frequency, phase)
Produces a sinusoidal signal with some offset (constantValue), amplitude frequency and phase offset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
vertical offset. The sine will oscillate around this value. |
required |
amplitude |
float
|
amplitude of the sine wave |
required |
frequency |
float
|
frequency of the sine |
required |
phase |
float
|
phase of the sine in radians. |
required |
Source code in cmtj/core/__init__.pyi
21 22 23 24 25 26 27 28 29 |
|
stepDriver(constantValue, amplitude, timeStart, timeStop)
Get a step driver. It has amplitude between timeStart and timeStop and 0 elsewhere
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
offset of the pulse (vertical) |
required |
amplitude |
float
|
amplitude that is added on top of the constantValue |
required |
timeStart |
float
|
start of the pulse |
required |
timeStop |
float
|
when the pulse ends |
required |
Source code in cmtj/core/__init__.pyi
79 80 81 82 83 84 85 86 87 |
|
trapezoidDriver(constantValue, amplitude, timeStart, edgeTime, steadyTime)
Create Trapezoid driver. Has a rising and a falling edge.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
constantValue |
float
|
offset of the pulse (vertical) |
required |
amplitude |
float
|
amplitude that is added on top of the constantValue |
required |
timeStart |
start of the pulse |
required | |
edgeTime |
float
|
time it takes to reach the maximum amplitude |
required |
steadyTime |
float
|
time it spends in a steady state |
required |
Source code in cmtj/core/__init__.pyi
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|