Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Frowin Ellermann
MOIN Spin Library
Commits
f22008b7
Commit
f22008b7
authored
1 year ago
by
Andrey Pravdivtsev
Browse files
Options
Downloads
Patches
Plain Diff
COSY update
parent
c6681cbf
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MOIN/functions/lib/COSY_ZULF_Spectrum.m
+4
-4
MOIN/functions/lib/COSY_ZULF_Spectrum.m
ZULF_COSY/COSY_Spectrum.m
+13
-11
ZULF_COSY/COSY_Spectrum.m
with
17 additions
and
15 deletions
MOIN/functions/lib/COSY_ZULF_Spectrum.m
+
4
−
4
View file @
f22008b7
...
...
@@ -31,10 +31,10 @@ function [spec] = COSY_ZULF_Spectrum(ex,r0,spec)
spec
.
FID
.
X
(
it2
,:)
=
spec
.
FID
.
X
(
it2
,:)
.*
exp
(
-
spec
.
AQTime1
'*
spec
.
R2
);
spec
.
FID
.
Y
(
it2
,:)
=
spec
.
FID
.
Y
(
it2
,:)
.*
exp
(
-
spec
.
AQTime1
'*
spec
.
R2
);
end
%% spectrum
spec
.
spec
.
X
=
fftshift
(
fftshift
(
fft
(
fft
(
spec
.
FID
.
X
')'
)
,
2
),
1
);
%FFT in indirect dimension
spec
.
spec
.
Y
=
fftshift
(
fftshift
(
fft
(
fft
(
spec
.
FID
.
Y
')'
)
,
2
),
1
);
%FFT in indirect dimension
%% spectrum
spec
.
spec
.
X
=
fftshift
(
fft
(
fft
(
spec
.
FID
.
X
')'
));
%FFT in indirect dimension
% 1, 2
spec
.
spec
.
Y
=
fftshift
(
fft
(
fft
(
spec
.
FID
.
Y
')'
));
%FFT in indirect dimension
% 1, 2
spec
.
FRQ2
=
(
-
spec
.
TD2
/
2
-
0.5
:
1
:
spec
.
TD2
/
2
-
1
-
0.5
)
*
spec
.
SR2
'
;
%indirect frequency domain
spec
.
FRQ1
=
(
-
spec
.
TD1
/
2
-
0.5
:
1
:
spec
.
TD1
/
2
-
1
-
0.5
)
*
spec
.
SR1
'
;
%indirect frequency domain
end
...
...
This diff is collapsed.
Click to expand it.
ZULF_COSY/COSY_Spectrum.m
+
13
−
11
View file @
f22008b7
...
...
@@ -4,22 +4,24 @@ tic
p
=
LoadPath
();
Folder
=
"out\ZULF_COSY_"
;
%% change parameters here %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
spec
.
B0
=
690
0
*
1e-9
;
% [T] observation field
spec
.
Bm
=
0
.
*
1e-9
;
% [T] mixing field
spec
.
R2
=
1
/
10
;
% phenomenological 1/T2* = [s-1]
spec
.
FWHM
=
1
/(
pi
*
spec
.
R2
);
% FWHM in Hz
spec
.
SW1
=
10
;
% spetral width in indirect dimension [Hz]
spec
.
TD1
=
64
*
2
;
% number of points in indirect dimension
spec
.
SW2
=
63
0
;
% spectral width in direct dimension [Hz]
spec
.
TD2
=
1
024
*
2
;
% spectral number of points in FID
JAX
=
1.27
;
% AX spin coupling
pA
=
0.
1
;
% polarization of spins A
pX
=
-
1
;
% polarization of the spin X
spec
.
B0
=
1076
0
*
1e-9
;
% [T] observation field
spec
.
Bm
=
1076
0
*
1e-9
;
% [T] mixing field
spec
.
R2
=
1
/
10
;
% phenomenological 1/T2* = [s-1]
spec
.
FWHM
=
1
/(
pi
*
spec
.
R2
);
% FWHM in Hz
spec
.
SW1
=
500
*
2
;
% spetral width in indirect dimension [Hz]
spec
.
TD1
=
128
*
2
*
2
;
% number of points in indirect dimension
spec
.
SW2
=
2
*
50
0
;
% spectral width in direct dimension [Hz]
spec
.
TD2
=
1
28
*
2
*
2
;
% spectral number of points in FID
JAX
=
2
;
% AX spin coupling
pA
=
0.
0
;
% polarization of spins A
pX
=
1
0
;
% polarization of the spin X
System_ID
=
46
;
% AX is system 44 %A2X is system 45; %A3X is system 46
%% Load System %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
System
=
Load_System_Name
(
System_ID
);
ex
=
Load_System
(
System
,
JAX
);
ex
.
Folder
=
Folder
+
System
+
"COSY_ZULF_.mat"
;
va
=
spec
.
B0
*
ex
.
S
.
gamma
{
1
}/(
2
*
pi
)
% Hz
vX
=
spec
.
B0
*
ex
.
S
.
gamma
{
end
}/(
2
*
pi
)
% Hz
%% Initial state %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
r0
=
DensityMatrix
(
ex
.
S
.
U
+
(
pA
*
ex
.
S
.
Dir
(
"Z"
,
1
:
ex
.
S
.
N
-
1
)
+
pX
*
ex
.
S
.
Dir
(
"Z"
,
ex
.
S
.
N
)));
%r0 = get_initial_state(12,ex);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets