resfields, resfields_perturb, resfreqs_matrix, resfreqs_perturb

Compute cw EPR resonance line positions (fields or frequencies), line amplitudes and line widths.

Syntax
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.

Description

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.

Input: Spin system

Sys is a spin system structure containing all parameters of the spin system.

Input: Parameters

Params is a structure containing the following experimental parameters.

mwFreq
Gives the spectrometer's operating frequency in GHz. (resfields and resfields_perturb only.)
Field
Gives the spectrometer's static field, in mT. (resfreqs and resfreqs_perturb only.)
CenterSweep
Defines the center and width [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.
The range can be specified either in CenterSweep or in Range. If both are given, CenterSweep has precedence.
Range
Defines the start and end [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.
The range can be specified either in 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
A list of orientations for which resonance fields should be computed. It can be either a nx2 or a nx3 array, giving either two or three Euler angles, in radians, per row to describe each orientation. The angles describe the transformation from the crystal frame (C) to the lab frame(L). The external field is along the lab z axis (zL), and the microwave field is along the lab x axis (xL). Resonance fields and frequencies depend only on the first two angles, intensities also on the third.

φ, 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.

CrystalSymmetry
Specifies the symmetry of the crystal. You can give either the number of the space group (between 1 and 230), the symbol of the space group, or the symbol for the point group of the space group (in either Schönflies or Hermann-Mauguin notation).
Param.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.

MolFrame
The three Euler angles, in radians, for the transformation of the crystal frame to the molecular frame. Use this field when specifying a crystal containing spin systems that are tilted with respect to the crystal frame. E.g. Param.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
Gives the polarization of the incident radiation. The following values are possible: '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
Determines the excitation mode. Possible values: '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 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').

In the lab frame, the direction of propagation is

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)]
Input: Options

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
mx2 vector of integer, or 'all'
Determines the transitions (state pairs) which are used in the resonance field calculation. If given, 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.
If 'all' is given, all transitions are included.
Threshold
Specifies the threshold for resfields'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.
Sites
In crystal simulations, this gives a list of crystal sites to include in the simulation. If Opt.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.
Sparse
0 or 1. Determines whether to use sparse or full matrices for the calculations. Sparse matrices reduce memory demands for large spin systems.
Verbosity
Determines how much information is printed to the command window. If Opt.Verbosity=0, nothing is shown. 1 logs relevant information, 2 gives more details.

For resfields_perturb and resfreqs_perturb, the option fields are

PerturbOrder
Determines the perturbation theory order. Can be 1 or 2.
Verbosity
Determines how much information is printed to the command window. If Opt.Verbosity=0, nothing is shown. 1 logs relevant information, 2 gives more details.
Outputs

There are up to five outputs from resfields, resfields_perturb, resfreqs_matrix, and resfreqs_perturb.

Examples

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.

See also

eigfields, garlic, levels, levelsplot, pepper