-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExcStStudyScript.m
75 lines (67 loc) · 2.15 KB
/
ExcStStudyScript.m
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
i = 1;
myexp = repmat(EnergyCalcExp(), [1 8]);
for field = 0:0.1:0.7
myece = ECEParams('AM1', {0; [90 93 135 180]}, true, field, 100, 25);
myexp(i) = EnergyCalcExp(myece,...
's:\2 angles\stilbene.dat',...
[6 14],...
['s:\2 angles\stilbene-ExcStStudy-',num2str(field),'VA.mat'],...
'o:\',...
'p:\',...
false,...
['Stilbene Excited State Study - ',num2str(field),'VA']);
myexp(i).run(true, 60, true);
i = i + 1;
end
%%
i = 1;
myexp = repmat(EnergyCalcExp(), [1 6]);
for field = 0:0.01:0.05
myece = ECEParams('AM1', {}, true, field, 500, 25);
myexp(i) = EnergyCalcExp(myece,...
'C:\Users\Christian\Documents\Research\Yaron\dyes2\12-merPPV\Exp\NoAngles\12-merPPV.dat',...
[6 94],...
['C:\Users\Christian\Documents\Research\Yaron\dyes2\12-merPPV\Exp\NoAngles\stilbene-ExcStStudy-',num2str(field),'VA.mat'],...
'C:\Users\Christian\Documents\Research\Yaron\dyes2\12-merPPV\INDOLib\',...
'C:\Users\Christian\Documents\Research\Yaron\dyes2\12-merPPV\GSLib\',...
false,...
['12-merPPV Excited State Study - ',num2str(field),'VA']);
myexp(i).run(true, 60, true);
i = i + 1;
end
%%
stilenergy = zeros(6,25);
stilgstint = zeros(6,25);
stilfestint = zeros(6,25,3);
sfi = zeros(6,25);
for i = 1:6
% amp = myexp(i).get_field('ampac.Hf') * 1/23.06;
indE = myexp(i).get_field('indo.esci',1);
stilenergy(i,:) = myexp(i).get_field('Eexc',:) + indE;
stilgstint(i,:) = myexp(i).get_field('Tint',:);
stilfestint(i,:,:) = myexp(i).get_field('indo.r',2,:,:);
for j = 1:25;
sfi(i,j) = (stilenergy(i,j) - stilenergy(i,2)) * sum(stilfestint(i,j,:) .^ 2, 3);
end
end
%%
figure(5)
hold on
xaxis = 0:0.01:0.05;
for i = 1:25
plot(xaxis, stilenergy(:,i), 'g^');
end
maxgsint = max(max(stilgstint));
for i = 1:6
for j = 1:25
plot(xaxis(i), stilenergy(i,j), 'bo', 'MarkerSize', (stilgstint(i,j)*30 / maxgsint) + 1e-3);
end
end
maxfsi = max(max(sfi));
for i = 1:6
for j = 1:25
if (sfi(i,j) > 0)
plot(xaxis(i), stilenergy(i,j), 'rs', 'MarkerSize', (sfi(i,j)*30 / maxfsi) + 1e-3);
end
end
end