epraya.Music#
- Music(Hamer, Exper, graph=True, table=True)#
Wrap function that calculates the spectrum and table of transitions of multisystems. If there is an interaction between the systems (electron-eletron or hiperfine), solves the total hamiltonian. Otherwise, use the function Cristalfm and sums the contributions to the total spectrum.
- Parameters:
Hamer (Class) – Container for the hamiltonian parameters of the system.
Expe (Class) – Container for the experimental conditions.
graph (Bool) – Plots the resulting spectrum and energy diagrams.
table (Bool) – Generates the resonant fields and transitions table.
- Returns:
fild1 (np.array) – Array of the magnetic field.
sumespct (np.array) – Array of the counts of the spectrum.
Example
import matplotlib.pyplot as plt import epraya as epr import numpy as np Ham,Exp,_=epr.Start(2) Ham.S2=1 Ham.S1=1 Ham.I1=1/2 Ham.g1=np.array([2.003, 2, 2]) Ham.A1=np.array([200, 200, 200]) Ham.Hpp1=[0, 20] Ham.I2=1/2 Ham.g2=np.array([3.003, 3, 3]) Ham.A2=np.array([100, 100, 100]) Exp.Freq1=9.4 Exp.Points1=4096 Exp.Temperature1=300 Exp.Frange1=[0,800] B,spc=epr.Music(Ham,Exp)