epraya.Cristalfm#
- Cristalfm(Hamer, Exp)#
Function for the calculation of the spectrum of monocristals without producing the graphs.
- Parameters:
Hamer (Class) – Container for the hamiltonian parameters of the system.
Exp (Class) – Container for the experimental conditions.
- Returns:
espac1 (np.array) – Array of the magnetic field.
inten1 (np.array) – Array of the counts of the spectrum.
Elist (np.array) – Array of the energy values of the hamiltonian
dfdis (pandas.Dataframe) – Table of the kets and transitions of the system.
Example
>>> import epraya as epr >>> Ham,Exp,_=epr.Start() >>> Ham.S=1 >>> Ham.I=1/2 >>> Ham.g=np.array([2.003, 2, 2]) >>> Ham.A=np.array([200, 200, 200]) >>> Ham.Hpp=[0, 20] >>> Exp.Freq=9.4 >>> Exp.Points=4096 >>> Exp.Temperature=300 >>> Exp.Frange=[0,800] >>> print(epr.Cristalfm(Ham,Exp)) (array([0.00000000e+00, 1.95360195e-01, 3.90720391e-01, ..., 7.99609280e+02, 7.99804640e+02, 8.00000000e+02], shape=(4096,)), array([ 4.08051359e-12, 4.08762234e-12, 4.09474760e-12, ..., -1.55121819e-12, -1.54926300e-12, -1.54731109e-12], shape=(4096,)), array([[-2.00000000e-01, 1.00000000e-01, -2.00000000e-01, 1.00000000e-01, 1.00000000e-01, 1.00000000e-01],..., [-2.24948810e+01, -2.22939919e+01, -8.97066590e-04, 8.89091169e-04, 2.22948889e+01, 2.24939919e+01]]), Field (mT) Transition Type Field (mT) 0 332.234 |-1,1/2⟩<-> |0,1/2⟩ Allowed 164.254 1 339.302 |-1,-1/2⟩<-> |0,-1/2⟩ Allowed 171.399 2 332.154 |0,1/2⟩<-> |1,1/2⟩ Allowed 339.375 Transition Type 0 |-1,1/2⟩<-> |1,1/2⟩ Forbidden (2) 1 |-1,-1/2⟩<-> |1,-1/2⟩ Forbidden (2) 2 |0,-1/2⟩<-> |1,-1/2⟩ Allowed )