Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intensities in resfields, high-temp limit #91

Open
stestoll opened this issue May 30, 2017 · 2 comments
Open

intensities in resfields, high-temp limit #91

stestoll opened this issue May 30, 2017 · 2 comments
Labels
bug Something isn't working minor Something that only requires a little work

Comments

@stestoll
Copy link
Member

stestoll commented May 30, 2017

There is an inconsistency with intensity scaling in the high-temperature limit in resfields for systems with multiple electron spins. (resfields_perturb does not support multiple electrons.)

In the following script, the numerical values in I1 and I2 should be identical, but they are not. I1T and I2T are correct.

clear, clc

g = [2 2.1];
Sys.S = 1/2;
Sys.g = g;
Sys.lw = 1;

Sys2.S = [1/2 1/2];
Sys2.g = [g; g];
Sys2.ee = 1;
Sys2.lw = Sys.lw;

Exp.Range = [310 350];
Exp.mwFreq = 9.5;

Exp.MolFrame = [0 0 0];

Exp.Temperature = [];
[~,I1] = resfields(Sys,Exp)
[~,I2] = resfields(Sys2,Exp)

Exp.Temperature = 293;
[~,I1T] = resfields(Sys,Exp)
[~,I2T] = resfields(Sys2,Exp)
I1 =
    6.6649
I2 =
   13.3298
   13.3298
I1T =
    0.0052
I2T =
    0.0052
    0.0052
@stestoll stestoll added minor Something that only requires a little work bug Something isn't working labels Sep 18, 2019
@stestoll stestoll reopened this Sep 19, 2019
@stestoll
Copy link
Member Author

stestoll commented Mar 26, 2024

The transition rate for Sys2 is twice the transition rate for Sys1, because the Sx operators are not normalized. Therefore, the transition rate depends on the number of spins,

@stestoll
Copy link
Member Author

Here is an example that illustrates the issue. The 2-spin and 1-spin spectra have different area ratios, depending on whether Exp.Temperature is set to a finite temperature or not.

clear, clc

g1 = 2;
g2 = 2.1;
Sys1.S = 1/2;
Sys1.g = (g1+g2)/2;
Sys1.lw = 0.3;

Sys2.S = [1/2 1/2];
Sys2.g = [g1 g2];
Sys2.ee = 100;
Sys2.lw = Sys1.lw;

Exp.Range = [310 350];
Exp.mwFreq = 9.5;
Exp.Harmonic = 0;

Exp.MolFrame = [10 20 30]*pi/180;

Exp.Temperature = 293;
[B,spc1a] = pepper(Sys1,Exp);
[B,spc2a] = pepper(Sys2,Exp);

Exp.Temperature = NaN;
[B,spc1b] = pepper(Sys1,Exp);
[B,spc2b] = pepper(Sys2,Exp);

sum(spc2a)/sum(spc1a)
sum(spc2b)/sum(spc1b)

tiledlayout('vertical')
nexttile
plot(B,spc1a,B,spc2a);
legend('1 spins','2 spins')
title('Exp.Temperature = 293')

nexttile
plot(B,spc1b,B,spc2b);
legend('1 spins','2 spins')
title('Exp.Temperature = NaN')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor Something that only requires a little work
Development

No branches or pull requests

1 participant