TDCRPy 1.8.15__py3-none-any.whl → 1.8.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of TDCRPy might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TDCRPy
3
- Version: 1.8.15
3
+ Version: 1.8.16
4
4
  Summary: TDCR model
5
5
  Home-page: https://pypi.org/project/TDCRPy/
6
6
  Author: RomainCoulon (Romain Coulon)
@@ -1,9 +1,9 @@
1
- tdcrpy/TDCRPy.py,sha256=XJHHuGwsp_yn422nupus6luRAp4a58vZPT9PO8ilOVE,53211
1
+ tdcrpy/TDCRPy.py,sha256=Bum4D8UYnWrr2Fa--2RdvvpTaeqIZ4KGc2o230hyt8A,53469
2
2
  tdcrpy/TDCRPy1.py,sha256=QTBZh5B5JWnGB0BQfD-cFmwA9W080OD4sG-aj50-ejo,38106
3
- tdcrpy/TDCR_model_lib.py,sha256=eVM1CrraMJx6PxFUohGS4d1ht_J7FNfTbeuoOsqzYXg,96252
3
+ tdcrpy/TDCR_model_lib.py,sha256=k1SYxO5qZyL-IOn-EX465zXa8H4DY8eNZHqVqlkoI8k,98155
4
4
  tdcrpy/TDCRoptimize.py,sha256=c2XIGveeLdVYYek4Rg6dygMvVA2xIrIkMb3L-_jUucM,6496
5
5
  tdcrpy/__init__.py,sha256=vQslGLsoZPIceaitnSHOqN6lUdjEyJ3YhfJ6tYdXt-s,127
6
- tdcrpy/config.toml,sha256=n6RdM0st4et_hlc7vO7wTcjLK8pnplJ2mLD0NJawl14,1648
6
+ tdcrpy/config.toml,sha256=Qm7_Mo3nBKUfNLqhUMP4zA-pjNksy9DzRb7LVR135oY,1876
7
7
  tdcrpy/test2.py,sha256=poLLXJyIaCeqh1VSkwgbi-udvY7lQjxz_YStKjJXGhU,501
8
8
  tdcrpy/EfficiencyCurves/Ag-108/EffD_Ag-108_[1]_1e-05.txt,sha256=OUoMuqPTw3fXLu5qaHUFN2iW0dPJ9cRyh99a6mUcEus,43
9
9
  tdcrpy/EfficiencyCurves/Ag-108/EffS_Ag-108_[1]_1e-05.txt,sha256=hojCq_MFAw8ONjoDmQfeE9gCXISwhScgAk-N0Pjbg00,45
@@ -1041,6 +1041,8 @@ tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-beta-_200_2000k.txt,sha256=mqo4-
1041
1041
  tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_1_200k.txt,sha256=kxDaTMq-3H_telytHRV-bJXynqSyW9SmUMRVDW6y3yY,4213603
1042
1042
  tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_2000_10000k.txt,sha256=oKl_dTNoQCPAliK1erzvtO1PHBCRItAZvY0wkBa_qN4,16872466
1043
1043
  tdcrpy/MCNP-MATRIX/matrice/fichier/matrice_16ml-photon_200_2000k.txt,sha256=B1f_TWs6wzreI4mbYYJDOkm2aDik49w4yQ96tR7Awe0,18978766
1044
+ tdcrpy/Micelle/2nmfaq01.csv,sha256=nLnOq8HyJGJSHeJ91-ZLRUZPgmaogiHcQk1SicHYaqE,1340
1045
+ tdcrpy/Micelle/faq01.csv,sha256=qltui-MvcFMlgH3czHx-EknHNE2LdCvN5S3SN-OAdmw,4065
1044
1046
  tdcrpy/Quenching/QuenchEnergyAlpha_0.015.txt,sha256=kaSid3pQuBSwIeJ7CTmx6NsFgr2_A6u5GOgMqJiVvQA,195818
1045
1047
  tdcrpy/Quenching/QuenchEnergyAlpha_1.1e-05.txt,sha256=lozxOyzSB4FAukpuTQUGbtQHqiWldqMXXMgstEC76sc,182522
1046
1048
  tdcrpy/Quenching/QuenchEnergyAlpha_1.2e-05.txt,sha256=pjH7BVj9ohsPjL6hD6nJvL76nIL6HhkcVsmRYskI7dU,182825
@@ -1078,8 +1080,8 @@ tdcrpy/docs/_build/html/source/modules.html,sha256=Jf-qxVBId0UgpwyvYuyjtMNG-ezPO
1078
1080
  tdcrpy/docs/_build/html/source/tdcrpy.html,sha256=-38lHMNFB22p1tWJEeN3yDqfDiCYE304vxDamO1-iRc,3779
1079
1081
  tdcrpy/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1080
1082
  tdcrpy/test/test_tdcrpy.py,sha256=3b9PeT2ROGGEFM_G4EVlDQMdP4B3ONp4a0kh1bKyVkI,4003
1081
- TDCRPy-1.8.15.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1082
- TDCRPy-1.8.15.dist-info/METADATA,sha256=K1sUlZPjiGH_knFFaIrDZIexMXvKho6iVJWC8T55sSY,15600
1083
- TDCRPy-1.8.15.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1084
- TDCRPy-1.8.15.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1085
- TDCRPy-1.8.15.dist-info/RECORD,,
1083
+ TDCRPy-1.8.16.dist-info/LICENCE.md,sha256=ZTpWyGU3qv_iwEpgvCijoCuCYpOPpyzJCgOk46WpUKU,1066
1084
+ TDCRPy-1.8.16.dist-info/METADATA,sha256=gsWRh4ib9yuqUMqvBvaOOnraTBbMRJ6mQcOoqZgiI9g,15600
1085
+ TDCRPy-1.8.16.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1086
+ TDCRPy-1.8.16.dist-info/top_level.txt,sha256=f4vzFFcKSEnonAACs0ZXuRczmroLLqtPTqXFymU_VU0,14
1087
+ TDCRPy-1.8.16.dist-info/RECORD,,
@@ -0,0 +1,150 @@
1
+ 10;0.9
2
+ 20;0.84
3
+ 30;0.84
4
+ 40;0.84
5
+ 50;0.84
6
+ 60;0.85
7
+ 70;0.85
8
+ 80;0.86
9
+ 90;0.86
10
+ 100;0.87
11
+ 110;0.87
12
+ 120;0.87
13
+ 130;0.87
14
+ 140;0.87
15
+ 150;0.88
16
+ 160;0.88
17
+ 170;0.88
18
+ 180;0.88
19
+ 190;0.88
20
+ 200;0.89
21
+ 210;0.89
22
+ 220;0.89
23
+ 230;0.89
24
+ 240;0.89
25
+ 250;0.89
26
+ 260;0.89
27
+ 270;0.89
28
+ 280;0.89
29
+ 290;0.89
30
+ 300;0.89
31
+ 310;0.89
32
+ 320;0.89
33
+ 330;0.89
34
+ 340;0.89
35
+ 350;0.89
36
+ 360;0.89
37
+ 370;0.89
38
+ 380;0.89
39
+ 390;0.89
40
+ 400;0.89
41
+ 410;0.89
42
+ 420;0.89
43
+ 430;0.89
44
+ 440;0.89
45
+ 450;0.89
46
+ 460;0.89
47
+ 470;0.89
48
+ 480;0.89
49
+ 490;0.89
50
+ 500;0.89
51
+ 510;0.89
52
+ 520;0.89
53
+ 530;0.89
54
+ 540;0.89
55
+ 550;0.89
56
+ 560;0.89
57
+ 570;0.89
58
+ 580;0.89
59
+ 590;0.89
60
+ 600;0.89
61
+ 610;0.89
62
+ 620;0.89
63
+ 630;0.89
64
+ 640;0.89
65
+ 650;0.89
66
+ 660;0.89
67
+ 670;0.89
68
+ 680;0.89
69
+ 690;0.89
70
+ 700;0.89
71
+ 710;0.89
72
+ 720;0.89
73
+ 730;0.89
74
+ 740;0.89
75
+ 750;0.89
76
+ 760;0.89
77
+ 770;0.89
78
+ 780;0.89
79
+ 790;0.89
80
+ 800;0.89
81
+ 810;0.89
82
+ 820;0.89
83
+ 830;0.89
84
+ 840;0.89
85
+ 850;0.89
86
+ 860;0.89
87
+ 870;0.89
88
+ 880;0.89
89
+ 890;0.89
90
+ 900;0.89
91
+ 910;0.89
92
+ 920;0.89
93
+ 930;0.89
94
+ 940;0.89
95
+ 950;0.89
96
+ 960;0.89
97
+ 970;0.89
98
+ 980;0.89
99
+ 990;0.89
100
+ 1000;0.9
101
+ 1010;0.9
102
+ 1020;0.9
103
+ 1030;0.9
104
+ 1040;0.9
105
+ 1050;0.9
106
+ 1060;0.9
107
+ 1070;0.9
108
+ 1080;0.9
109
+ 1090;0.9
110
+ 1100;0.9
111
+ 1110;0.9
112
+ 1120;0.9
113
+ 1130;0.9
114
+ 1140;0.9
115
+ 1150;0.9
116
+ 1160;0.9
117
+ 1170;0.9
118
+ 1180;0.9
119
+ 1190;0.9
120
+ 1200;0.9
121
+ 1210;0.9
122
+ 1220;0.9
123
+ 1230;0.9
124
+ 1240;0.9
125
+ 1250;0.9
126
+ 1260;0.9
127
+ 1270;0.9
128
+ 1280;0.9
129
+ 1290;0.9
130
+ 1300;0.9
131
+ 1310;0.9
132
+ 1320;0.9
133
+ 1330;0.9
134
+ 1340;0.9
135
+ 1350;0.9
136
+ 1360;0.9
137
+ 1370;0.9
138
+ 1380;0.9
139
+ 1390;0.9
140
+ 1400;0.9
141
+ 1410;0.9
142
+ 1420;0.9
143
+ 1430;0.9
144
+ 1440;0.9
145
+ 1450;0.9
146
+ 1460;0.9
147
+ 1470;0.9
148
+ 1480;0.9
149
+ 1490;0.9
150
+ 1500;0.9
@@ -0,0 +1,151 @@
1
+ 0;0.9;0.9;0.9;0.9;0.9
2
+ 10;0.9;0.9;0.9;0.9;0.9
3
+ 20;0.88;0.84;0.75;0.66;0.58
4
+ 30;0.88;0.84;0.76;0.67;0.6
5
+ 40;0.88;0.84;0.76;0.67;0.6
6
+ 50;0.88;0.84;0.76;0.67;0.6
7
+ 60;0.88;0.85;0.76;0.67;0.6
8
+ 70;0.88;0.85;0.77;0.69;0.61
9
+ 80;0.88;0.86;0.78;0.7;0.62
10
+ 90;0.88;0.86;0.79;0.71;0.63
11
+ 100;0.88;0.87;0.8;0.72;0.64
12
+ 110;0.89;0.87;0.8;0.73;0.65
13
+ 120;0.89;0.87;0.81;0.74;0.67
14
+ 130;0.89;0.87;0.82;0.75;0.68
15
+ 140;0.89;0.87;0.82;0.76;0.69
16
+ 150;0.89;0.88;0.83;0.77;0.71
17
+ 160;0.89;0.88;0.83;0.78;0.72
18
+ 170;0.89;0.88;0.84;0.79;0.74
19
+ 180;0.89;0.88;0.84;0.81;0.76
20
+ 190;0.89;0.88;0.85;0.82;0.78
21
+ 200;0.9;0.89;0.86;0.83;0.8
22
+ 210;0.9;0.89;0.86;0.84;0.8
23
+ 220;0.9;0.89;0.86;0.84;0.81
24
+ 230;0.9;0.89;0.86;0.85;0.82
25
+ 240;0.9;0.89;0.86;0.85;0.82
26
+ 250;0.9;0.89;0.86;0.86;0.83
27
+ 260;0.9;0.89;0.86;0.86;0.83
28
+ 270;0.9;0.89;0.86;0.86;0.84
29
+ 280;0.9;0.89;0.86;0.87;0.85
30
+ 290;0.9;0.89;0.86;0.87;0.85
31
+ 300;0.9;0.89;0.87;0.87;0.86
32
+ 310;0.9;0.89;0.87;0.87;0.86
33
+ 320;0.9;0.89;0.87;0.87;0.86
34
+ 330;0.9;0.89;0.87;0.87;0.86
35
+ 340;0.9;0.89;0.87;0.87;0.86
36
+ 350;0.9;0.89;0.87;0.87;0.86
37
+ 360;0.9;0.89;0.87;0.87;0.86
38
+ 370;0.9;0.89;0.87;0.87;0.86
39
+ 380;0.9;0.89;0.87;0.87;0.86
40
+ 390;0.9;0.89;0.87;0.87;0.86
41
+ 400;0.9;0.89;0.88;0.87;0.86
42
+ 410;0.9;0.89;0.88;0.87;0.86
43
+ 420;0.9;0.89;0.88;0.87;0.86
44
+ 430;0.9;0.89;0.88;0.87;0.86
45
+ 440;0.9;0.89;0.88;0.87;0.86
46
+ 450;0.9;0.89;0.88;0.87;0.86
47
+ 460;0.9;0.89;0.88;0.87;0.86
48
+ 470;0.9;0.89;0.88;0.87;0.86
49
+ 480;0.9;0.89;0.88;0.87;0.87
50
+ 490;0.9;0.89;0.88;0.87;0.87
51
+ 500;0.9;0.89;0.89;0.87;0.87
52
+ 510;0.9;0.89;0.89;0.88;0.87
53
+ 520;0.9;0.89;0.89;0.88;0.87
54
+ 530;0.9;0.89;0.89;0.88;0.87
55
+ 540;0.9;0.89;0.89;0.88;0.87
56
+ 550;0.9;0.89;0.89;0.88;0.87
57
+ 560;0.9;0.89;0.89;0.88;0.87
58
+ 570;0.9;0.89;0.89;0.88;0.87
59
+ 580;0.9;0.89;0.89;0.88;0.87
60
+ 590;0.9;0.89;0.89;0.88;0.87
61
+ 600;0.9;0.89;0.89;0.88;0.87
62
+ 610;0.9;0.89;0.89;0.88;0.87
63
+ 620;0.9;0.89;0.89;0.88;0.87
64
+ 630;0.9;0.89;0.89;0.88;0.87
65
+ 640;0.9;0.89;0.89;0.88;0.87
66
+ 650;0.9;0.89;0.89;0.88;0.87
67
+ 660;0.9;0.89;0.89;0.88;0.87
68
+ 670;0.9;0.89;0.89;0.88;0.87
69
+ 680;0.9;0.89;0.89;0.89;0.87
70
+ 690;0.9;0.89;0.89;0.89;0.87
71
+ 700;0.9;0.89;0.89;0.89;0.87
72
+ 710;0.9;0.89;0.89;0.89;0.87
73
+ 720;0.9;0.89;0.89;0.89;0.87
74
+ 730;0.9;0.89;0.89;0.89;0.87
75
+ 740;0.9;0.89;0.89;0.89;0.87
76
+ 750;0.9;0.89;0.89;0.89;0.87
77
+ 760;0.9;0.89;0.89;0.89;0.88
78
+ 770;0.9;0.89;0.89;0.89;0.88
79
+ 780;0.9;0.89;0.89;0.89;0.88
80
+ 790;0.9;0.89;0.89;0.89;0.88
81
+ 800;0.9;0.89;0.89;0.89;0.88
82
+ 810;0.9;0.89;0.89;0.89;0.88
83
+ 820;0.9;0.89;0.89;0.89;0.88
84
+ 830;0.9;0.89;0.89;0.89;0.88
85
+ 840;0.9;0.89;0.89;0.89;0.88
86
+ 850;0.9;0.89;0.89;0.89;0.88
87
+ 860;0.9;0.89;0.89;0.89;0.88
88
+ 870;0.9;0.89;0.89;0.89;0.88
89
+ 880;0.9;0.89;0.89;0.89;0.88
90
+ 890;0.9;0.89;0.89;0.89;0.88
91
+ 900;0.9;0.89;0.89;0.89;0.88
92
+ 910;0.9;0.89;0.89;0.89;0.88
93
+ 920;0.9;0.89;0.89;0.89;0.88
94
+ 930;0.9;0.89;0.89;0.89;0.89
95
+ 940;0.9;0.89;0.89;0.89;0.89
96
+ 950;0.9;0.89;0.89;0.89;0.89
97
+ 960;0.9;0.89;0.89;0.89;0.89
98
+ 970;0.9;0.89;0.89;0.89;0.89
99
+ 980;0.9;0.89;0.89;0.89;0.89
100
+ 990;0.9;0.89;0.89;0.89;0.89
101
+ 1000;0.9;0.9;0.9;0.9;0.9
102
+ 1010;0.9;0.9;0.9;0.9;0.9
103
+ 1020;0.9;0.9;0.9;0.9;0.9
104
+ 1030;0.9;0.9;0.9;0.9;0.9
105
+ 1040;0.9;0.9;0.9;0.9;0.9
106
+ 1050;0.9;0.9;0.9;0.9;0.9
107
+ 1060;0.9;0.9;0.9;0.9;0.9
108
+ 1070;0.9;0.9;0.9;0.9;0.9
109
+ 1080;0.9;0.9;0.9;0.9;0.9
110
+ 1090;0.9;0.9;0.9;0.9;0.9
111
+ 1100;0.9;0.9;0.9;0.9;0.9
112
+ 1110;0.9;0.9;0.9;0.9;0.9
113
+ 1120;0.9;0.9;0.9;0.9;0.9
114
+ 1130;0.9;0.9;0.9;0.9;0.9
115
+ 1140;0.9;0.9;0.9;0.9;0.9
116
+ 1150;0.9;0.9;0.9;0.9;0.9
117
+ 1160;0.9;0.9;0.9;0.9;0.9
118
+ 1170;0.9;0.9;0.9;0.9;0.9
119
+ 1180;0.9;0.9;0.9;0.9;0.9
120
+ 1190;0.9;0.9;0.9;0.9;0.9
121
+ 1200;0.9;0.9;0.9;0.9;0.9
122
+ 1210;0.9;0.9;0.9;0.9;0.9
123
+ 1220;0.9;0.9;0.9;0.9;0.9
124
+ 1230;0.9;0.9;0.9;0.9;0.9
125
+ 1240;0.9;0.9;0.9;0.9;0.9
126
+ 1250;0.9;0.9;0.9;0.9;0.9
127
+ 1260;0.9;0.9;0.9;0.9;0.9
128
+ 1270;0.9;0.9;0.9;0.9;0.9
129
+ 1280;0.9;0.9;0.9;0.9;0.9
130
+ 1290;0.9;0.9;0.9;0.9;0.9
131
+ 1300;0.9;0.9;0.9;0.9;0.9
132
+ 1310;0.9;0.9;0.9;0.9;0.9
133
+ 1320;0.9;0.9;0.9;0.9;0.9
134
+ 1330;0.9;0.9;0.9;0.9;0.9
135
+ 1340;0.9;0.9;0.9;0.9;0.9
136
+ 1350;0.9;0.9;0.9;0.9;0.9
137
+ 1360;0.9;0.9;0.9;0.9;0.9
138
+ 1370;0.9;0.9;0.9;0.9;0.9
139
+ 1380;0.9;0.9;0.9;0.9;0.9
140
+ 1390;0.9;0.9;0.9;0.9;0.9
141
+ 1400;0.9;0.9;0.9;0.9;0.9
142
+ 1410;0.9;0.9;0.9;0.9;0.9
143
+ 1420;0.9;0.9;0.9;0.9;0.9
144
+ 1430;0.9;0.9;0.9;0.9;0.9
145
+ 1440;0.9;0.9;0.9;0.9;0.9
146
+ 1450;0.9;0.9;0.9;0.9;0.9
147
+ 1460;0.9;0.9;0.9;0.9;0.9
148
+ 1470;0.9;0.9;0.9;0.9;0.9
149
+ 1480;0.9;0.9;0.9;0.9;0.9
150
+ 1490;0.9;0.9;0.9;0.9;0.9
151
+ 1500;0.9;0.9;0.9;0.9;0.9
tdcrpy/TDCRPy.py CHANGED
@@ -167,6 +167,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
167
167
  config.read(file_conf)
168
168
  tau=config["Inputs"].getfloat("tau")
169
169
  Y=config["Inputs"].getboolean("Y")
170
+ micCorr=config["Inputs"].getboolean("micCorr")
170
171
  radListPureBeta=config["Inputs"].get("radListPureBeta")
171
172
  radListPureBeta=radListPureBeta.replace(" ","")
172
173
  radListPureBeta=radListPureBeta.split(',')
@@ -659,6 +660,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
659
660
  e_quenching.append(energy_vec[i])
660
661
  elif p == "electron" or p == "positron":
661
662
  energy_vec[i] = tl.Em_e(energy_vec_initial[i]*1e3,energy_vec[i]*1e3,kB*1e3,nE_electron)*1e-3
663
+ if micCorr: energy_vec[i] = energy_vec[i]*tl.micelleLoss(energy_vec_initial[i])
662
664
  e_quenching.append(energy_vec[i])
663
665
  else:
664
666
  e_quenching.append(0)
@@ -677,6 +679,7 @@ def TDCRPy(L, TD, TAB, TBC, TAC, Rad, pmf_1, N, kB, V, mode, mode2, Display=Fals
677
679
  e_quenching2.append(energy_vec2[i])
678
680
  elif p == "electron" or p == "positron":
679
681
  energy_vec2[i] = tl.Em_e(energy_vec_initial2[i]*1e3,energy_vec2[i]*1e3,kB*1e3,nE_electron)*1e-3
682
+ if micCorr: energy_vec2[i] = energy_vec2[i]*tl.micelleLoss(energy_vec_initial2[i])
680
683
  e_quenching2.append(energy_vec2[i])
681
684
  else:
682
685
  e_quenching2.append(0)
tdcrpy/TDCR_model_lib.py CHANGED
@@ -40,6 +40,8 @@ A = config["Inputs"].getfloat("A")
40
40
  depthSpline = config["Inputs"].getint("depthSpline")
41
41
  Einterp_a = config["Inputs"].getfloat("Einterp_a")
42
42
  Einterp_e = config["Inputs"].getfloat("Einterp_e")
43
+ diam_micelle = config["Inputs"].getfloat("diam_micelle")
44
+ fAq = config["Inputs"].getfloat("fAq")
43
45
 
44
46
  # import PenNuc data
45
47
  with importlib.resources.as_file(files('tdcrpy').joinpath('decayData')) as data_path:
@@ -179,6 +181,17 @@ for ikB in kB_e:
179
181
  Em_electron.append(line)
180
182
 
181
183
 
184
+ micelle_E = []; micelle_S = []
185
+ with importlib.resources.as_file(files('tdcrpy').joinpath('Micelle')) as data_path:
186
+ tamptxt = "faq01.csv"
187
+ fid = open(data_path / tamptxt)
188
+ line = fid.readlines()
189
+ for iline in line:
190
+ iline=iline.replace("\n","").split(";")
191
+ micelle_E.append(float(iline[0]))
192
+ micelle_S.append([float(x) for x in iline[1:]])
193
+ micelle_S = np.asarray(micelle_S)
194
+
182
195
  """
183
196
  ======= Library of functions =======
184
197
  """
@@ -965,9 +978,40 @@ def Em_e(Ei, Ed, kB, nE, Et = Einterp_e*1e3, kB_vec = kB_e):
965
978
  return r
966
979
 
967
980
 
981
+ #============================================================================================
982
+
983
+ #============================================================================================
968
984
 
985
+ #========================= Reverse micelle treatment ========================================
969
986
 
987
+ def micelleLoss(E,*, fAq=fAq, diam_micelle=diam_micelle, e_vec=micelle_E, data=micelle_S):
988
+ """
989
+ Estimation of the energy deposited ratio due to loss in reversed micelles.
990
+ The function carries out interpolation in values estimated with GENAT4-DNA
991
+ in: Nedjadi et al. Applied Radiation and Isotopes, Volume 125, 2017, Pages 94-107,
992
+ https://doi.org/10.1016/j.apradiso.2017.04.020
993
+
994
+ Parameters
995
+ ----------
996
+ E : float
997
+ Initial energy of the electron. (in keV)
998
+ fAq : float, optional
999
+ Aqueous fraction. The default is fAq.
1000
+ diam_micelle : float, optional
1001
+ Diameter of micelles (in nm). The default is diam_micelle.
1002
+ e_vec : list, optional
1003
+ Tabulated data of considered energies (in eV). The default is micelle_E.
1004
+ data : list, optional
1005
+ Tabulated data of energy deposited ratio. The default is micelle_S.
970
1006
 
1007
+ Returns
1008
+ -------
1009
+ S : float
1010
+ energy deposited ratio (keV)
1011
+ """
1012
+ micDiam = np.array([0.5, 1.0, 2.0, 3.0, 4.0]) #nm
1013
+ S=np.interp(E*1e3, e_vec, micelle_S[:,np.argwhere(micDiam==diam_micelle)[0][0]])*(1-fAq)/0.9
1014
+ return S
971
1015
 
972
1016
 
973
1017
  #============================================================================================
tdcrpy/config.toml CHANGED
@@ -32,6 +32,13 @@ pN = 0.000302
32
32
  pO = 0.082022
33
33
  pP = 0.000092
34
34
  pCl = 0.000071
35
+ # properties on reverse micelles
36
+ # applied reverse micelle correction
37
+ micCorr = True
38
+ # diameter of the micelles in nm (possible values: 0.5, 1.0, 2.0, 3.0, 4.0)
39
+ diam_micelle = 2
40
+ # acqueous fraction of the scintillator
41
+ fAq = 0.1
35
42
 
36
43
  ## PROPERTIES OF THE COUNTER
37
44
  # Coincidence resolving time (ns)