epraya.Powder#
- Powder(Hamer, Expe, graph=True)#
Wrap function for the simulation of the EPR spectrum for powder samples.
- Parameters:
Hamer (Class) – Container for the hamiltonian parameters of the system.
Expe (Class) – Container for the experimental conditions.
graph (Bool) – Plots the resulting spectrum.
- Returns:
Bfield (np.array) – Array of the magnetic field.
Intensity (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() Ham.S=3/2 Ham.I=1 Ham.g=np.array([2.003, 2, 2]) Ham.A=np.array([200, 200, 200]) #Hyperfine constant Ham.D=np.array([800,200]) #Zero field D and E Ham.Hpp=[0, 10] Ham.Nucl='Cr' Exp.Freq=9.4 Exp.Points=4096 Exp.Temperature=300 Exp.Frange=[0,800] B,spc=epr.Powder(Ham,Exp)