epraya.JLorentzp#
- JLorentzp(field, Int, rfield, Hpp)#
Defines the lorentzian profile of the spectrum, using the resonant fields and calculated intensities.
- Parameters:
field (jax.np.array) – Array of the field values of the spectrum.
Int (jax.np.array) – Array of the intensity calculated in the field values
rfield (jax.np.array) – List of the resonant fields of the system.
Hpp (float) – Peak to peak distance in mT.
- Returns:
espec (jax.np.array) – EPR spectrum
Example
import matplotlib.pyplot as plt import epraya as epr import numpy as np Ham,Exp,_=epr.Jstart() Ham.Hpp=[0,2] Exp.Frange=[200,500] Exp.Points=2000 fieldr=np.linspace(Exp.Frange[0],Exp.Frange[1],Exp.Points) mu=350 sigma=50 rsonant=np.array([300,350,320]) inten=np.random.normal(mu,sigma,len(rsonant)) spc=epr.JLorentzp(fieldr,inten,rsonant,Ham.Hpp[1]) plt.plot(fieldr,spc) plt.grid() plt.show()