Compute cw EPR resonance line positions (fields or frequencies), line amplitudes and line widths.
Pos = resfields(Sys,Param) Pos = resfields(Sys,Param,Opt) [Pos,Amp] = resfields(...) [Pos,Amp,Wid] = resfields(...) [Pos,Amp,Wid,Trans] = resfields(...) [Pos,Amp,Wid,Trans,Grad] = resfields(...)
The usage of resfields_perturb, resfreqs_matrix, and resfreqs_perturb is identical.
resfields and resfields_perturb compute resonance fields, line intensities and line widths for field-swept cw EPR spectra. resfields using matrix diagonalization and energy level diagram modelling, and resfields_perturb uses perturbation theory.
resfreqs_matrix and resfreqs_perturb compute resonance frequencies, line intensities and line widths for frequency-swept cw EPR spectra. resfreqs_matrix using matrix diagonalization, and resfreqs_perturb uses perturbation theory.
Sys is a spin system structure containing all parameters of the spin system.
Params is a structure containing the following experimental parameters.
mwFreqresfields and resfields_perturb only.)
Fieldresfreqs and resfreqs_perturb only.)
CenterSweep[center sweep] of the range which is searched for resonances. For field sweeps, the units are mT. For frequency sweeps, the units are GHz. Only resonances within this range are computed.
CenterSweep or in Range. If both are given, CenterSweep has precedence.
Range[sweepmin sweepmax] of the range which is searched for resonances. For field sweeps, the units are mT. For frequency sweeps, the units are GHz. Only resonances within this range are computed.
CenterSweep or in Range. If both are given, CenterSweep has precedence.
Temperature
This field specifies the temperature of the spin system in the EPR experiment, in kelvin. E.g., Exp.Temperature = 298 corresponds to room temperature. If given, populations are computed for all energy levels assuming thermal (Boltzmann) equilibrium, and the population differences between two levels are included in the line intensities of the corresponding EPR transition. If not given (or set to NaN), the populations are not calculated, and all transitions are assumed to have equal population difference of 1.
To specify non-equilibrium populations, use the spin system field Sys.Pop. See the user guide on spin polarization.
CrystalOrientationφ, in the first column, is the angle between the xC axis and the xCyC plane projection of the orientation of the external field (zL) in the molecular frame of the spin system. θ, in the second column, is the angle at which the external field is off the zC axis. The optional χ, in the third column, specifies the third Euler angle and fixes the xL axis of the laboratory in the crystal frame. If the third angle is not given, it is assumed to be zero.
CrystalSymmetryParam.CrystalSymmetry = 'P21/c'; % space group symbol Param.CrystalSymmetry = 11; % space group number (between 1 and 230) Param.CrystalSymmetry = 'C2h'; % point group, Schönflies notation Param.CrystalSymmetry = '2/m'; % point group, Hermann-Mauguin notation
When CrystalSymmetry is given, all symmetry-related sites in the crystal are included in the calculation. If CrystalSymmetry is not given, space group 1 (P1, point group C1, one site per unit cell) is assumed.
MolFrameParam.MolFrame=[0,pi/4,0] tilts the x and z axis of the spin system's molecular frame (xM, zM), relative to the crystal frame (xC,yC,zC).
mwPolarization'linear' (default), 'circular+', 'circular-', 'unpolarized'. 'circular+' ('circular-) means that the magnetic field component of the radiation is rotating in the positive (negative) sense around the propagation direction.
Mode'perpendicular' (default), 'parallel', [k_tilt alpha_pol], k_tilt.
Resonator experiments:
For conventional experiments involving linear polarized microwave in a standard resonator, use 'perpendicular' (default) or 'parallel'. In the perpendicular mode, the microwave field B1 is along the laboratory x axis (xL), in the parallel mode it is along the z axis (zL), parallel to the external static field B0. The perpendicular detection mode is by far the most common.
Beam experiments:
For beam experiments, specify the angle between the propagation vector k and the static magnetic field B0 in k_tilt, in radians. k_tilt = 0 corresponds to Faraday geometry, where B0 and k are parallel. k_tilt = pi/2 corresponds to Voigt geometry, where B0 and k are perpendicular. B0 is along the laboratory z axis (zL), [0; 0; 1] in the lab frame, and k is tilted from B0 towards the laboratory y axis (yL) by the angle k_tilt.
For linearly polarized mw irradiation, you also need to provide
In the lab frame, the direction of propagation is
alpha_pol, the polarization angle of the radiation. alpha_pol is the angle between the microwave magnetic field vector B1 and the intersection of the zL-yL plane and the plane perpendicular to the propagation vector k. In other words, if alpha_pol is zero, then B1 is in the zL-yL plane, and if alpha_pol is pi/2, then B1 is along xL. alpha_pol is only allowed for linearly polarized excitation (Param.mwPolarization = 'linear').
nk = [0; sin(k_tilt); cos(k_tilt)]
and the direction of the linearly polarized B1 field is
nB1 = [sin(alpha_pol); -cos(alpha_pol)*cos(k_tilt); cos(alpha_pol)*sin(k_tilt)]
The structure Opt contains computational options. The separate fields as well as the structure as a whole are optional. If a field or the structure are missing, the function defaults to standard settings.
The fields are different for resfields/resfreqs_matrix (matrix diagonalization function) and resfields_perturb/resfreqs_perturb (perturbation theory function).
For resfields and resfreqs_matrix, the option fields are
Transitions'all'resfields uses them and skips its
automatic transition selection scheme. State pairs are specified in Transitions(k,:) by the level numbers which start with 1 for the
lowest-energy level. E.g., Opt.Transitions=[1 3; 2 6; 4 6]; specifies three transitions, where the third is between levels 4 and 6.
'all' is given, all transitions are included.
Thresholdresfields's transition pre-selection. Any transition with an estimated relative average amplitude less than this number is not included in the calculation. The relative average amplitude of the strongest transition is 1, the default is 1e-4. The pre-selection is an approximate procedure, and it might miss transitions for complicated spin systems. In these cases, setting it to zero will include all transitions in the computation.
SitesOpt.Sites is empty or not given, all sites are included. If given, it must be a list of site numbers. The number of sites depends on the space group given in Exp.CrystalSymmetry. E.g. the following set limits the simulation to sites 1 and 3 of the 4 magnetically distinct sites in crystal of space group no. 47.
Exp.CrystalSymmetry = 47; % space group Pmmm Opt.Sites = [1 3];In powder simulations,
Opt.Sites is ignored.
SparseVerbosityOpt.Verbosity=0, nothing is shown. 1 logs relevant information, 2 gives more details.
For resfields_perturb and resfreqs_perturb, the option fields are
PerturbOrderVerbosityOpt.Verbosity=0, nothing is shown. 1 logs relevant information, 2 gives more details.
There are up to five outputs from resfields, resfields_perturb, resfreqs_matrix, and resfreqs_perturb.
Pos, in units of mT. The various transitions are along columns, each column corresponding to a separate orientation.
Int output contains the intensities, with the same layout as Pos.
Wid, again in mT. They are Gaussian FWHM (full widths at half maximum).
Trans is the list of computed transitions. This list has the same format as the Transitions option in Opt.
A comparison between the resonance field position obtained from resfields (spline modelling approach) and eigfields (exact solution) shows that differences are negligible.
First we compute the resonance fields for an axial spin system with two equivalent protons.
Sys = struct('S',.5,'g',[2.3,2.3,2],...
'Nucs','1H,1H','A',[10 10 500; 10 10 500]);
Param = struct('mwFreq',9.5,'Range',[200 400]);
[p,t] = sphgrid('Dinfh',201);
Param.CrystalOrientation = [p;t].'';
x = resfields(Sys,Param);
Next we compute line positions using eigfields, which is much slower.
xr = []; for i=1:length(p) Param.CrystalOrientation = [p(i),t(i)]; xr(:,i) = eigfields(Sys,Param); end
After plotting the result
h = plot(t*180/pi,xr,'k.',t*180/pi,x,'r');
ylim([290 360]);
xlabel('theta [deg]'); ylabel('field [mT]');
we see that the resonances obtained by the two methods are practically identical.
eigfields, garlic, levels, levelsplot, pepper