epraya.chaframe#

chaframe(Ham, Exp)#

Adds the rotations for the constants g, A, Q and D, described by the conditions gframe, Aframe, Qframe and D.frame.

Parameters:
  • Ham (Class) – Container of the Hamiltonian parameters.

  • Exp (Class) – Container of the Experimental conditions.

Returns:

Ham (Class) – Container of the Hamiltonian parameters, with the corrected values.

Example

>>> import epraya as epr
>>> Ham,Exp,_=epr.Start()
>>> Ham.g=[2.0003,2.5,2.5]
>>> Ham.Q=[0.5,10.0,0]
>>> Exp.gframe=[20,30,0]
>>> print(Ham)
>>> Ham=epr.chaframe(Ham,Exp)
>>> print(Ham)
Hval(S=0.5, g=[2.0003, 2.5, 2.5], I=0.0, L=0.0,
A=array([0, 0, 0]), Q=[0.5, 10.0, 0], D=array([0, 0]),
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]), eta=0.5, weight=0.0, Nucl='None')
Hval(S=0.5, g=array([[ 2.16906535,  0.162221  ,  0.20332735],
[ 0.162221  ,  2.722244  , -0.09966912],
[ 0.20332735, -0.09966912,  2.375075  ]]), I=0.0, L=0.0,
A=array([[0., 0., 0.], [0., 0., 0.], [0., 0., 0.]]),
Q=array([[ 0.5,  0. ,  0. ],  [ 0. , 10. ,  0. ],
   [ 0. ,  0. ,  0. ]]),
D=array([[0., 0., 0.], [0., 0., 0.],[0., 0., 0.]]),
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]), eta=0.5, weight=0.0, Nucl='None')