epraya.JHval#

class JHval#

Bases: object

Container jax-class for hamiltonial’s parameters. Must be initialized with a variable like Ham. To change one parameter use the sintaxis Ham.S=1/2.

Parameters:
  • S (float) – Spin value ex. (1/2,0,3/2).

  • g (array_like or float) – g value of system, can be float, for isotropic case or array for anisotropic.

  • I (float) – Nuclear spin value

  • L (float) – Angular momentum

  • A (array_like or float) – Hyperfine constant, float for isotropic and array for anisotropic

  • Q (array_like or float) – Quadrupole nuclear interaction constant, float for isotropic and array for anisotropic

  • D (array_like) – Zero field interaction constants D and E, two value array [0,0]

  • Bk2 (array_like) – Stevens k=-/+2 constants

  • Bk4 (array_like) – Stevens k=-/+4 constants

  • Bk6 (array_like) – Stevens k=-/+6 constants

  • lc (float) – Spin-orbit interaction constant

  • Hpp (array_like) – Peak to peak distance for the voigtian function using [Hg,Hl], for gaussian and lorentzian distance

  • eta (float) – weight of the gaussian contribution to the voigtian function, from 0 to 1. If eta is 0, the function is lorentzian and if eta is 1, the function is gaussian.

  • weight (float) – Dummy variable by the moment

  • Nucl (str) – Isotope of the sample. Can be the quantum number and the element or only the element (‘55Mn’ or ‘Mn’)

Example

>>> import epraya as epr
>>> Ham=epr.JHval()
>>> Ham.S=1
>>> Ham.I=1/2
>>> Ham.g=[2.003,1.8,1.5]
>>> print(Ham)
JHval(S=1, g=[2.003, 1.8, 1.5], I=0.5, L=0.0, A=0.0,
Q=Array([0, 0, 0], dtype=int32),
D=Array([0, 0], dtype=int32),
Bk2=[0, 0, 0, 0, 0], Bk4=[0, 0, 0, 0, 0, 0, 0, 0, 0],
Bk6=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
lc=0.0, Hpp=Array([0, 1], dtype=int32), eta=0.5, weight=0.0)