-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
46 lines (36 loc) · 1.34 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <iostream>
//#include <C_thread_bench.h>
#include "C_matrix.h"
#include "c_el_hahn.h"
//using namespace std;
int main()
{
C_el_hahn spin;
spin.Bz0=1.0;
spin.Bxy=0.02;
spin.gamma=1000;
spin.T1=0.5; spin.T2=2.0; spin.tw=Pi/(2.0*spin.gamma*spin.Bxy); spin.TE=30.0*spin.tw;
double dw=1.0*spin.gamma*spin.Bz0/100.0;
spin.muz0 = 1.0;//1.0*(1.0+(dw/(spin.gamma*spin.Bz0))); the shift is computed in the methods of C_el_hahn
spin.DW=spin.gamma*spin.Bz0/20.0;
spin.D = 0.0*0.0000005;
spin.G = 1.0;//0.001;
//spin.monochromatic(0.0, 0.0, 1.0, 0.0*dw);
//spin.biChromatic(0.0, 0.0, 1.0, dw);
//spin.multiChrome(0.0, 0.0, 1.0, 200);
//spin.monochromaticDiffusion(0.0, 0.0, 1.0, 0.0*dw);
spin.multiChromeDiffusion(0.0, 0.0, 1.0, 200);
return 0;
}
//ok pour echo
//C_el_hahn spin;
//spin.Bz0=1.0;
//spin.Bxy=0.02;
//spin.gamma=1000;
//spin.T1=0.5; spin.T2=2.0; spin.tw=Pi/(2.0*spin.gamma*spin.Bxy); spin.TE=30.0*spin.tw;
//double dw=1.0*spin.gamma*spin.Bz0/100.0;
//spin.muz0 = 1.0;//1.0*(1.0+(dw/(spin.gamma*spin.Bz0))); the shift is computed in the methods of C_el_hahn
//spin.DW=spin.gamma*spin.Bz0/10.0;
////spin.monochromatic(0.0, 0.0, 1.0, 0.0*dw, true);
////spin.biChromatic(0.0, 0.0, 1.0, dw, true);
//spin.multiChrome(0.0, 0.0, 1.0, 1000, true);