trapped particle fluxes

This commit is contained in:
liuyihui 2022-05-13 00:18:42 +08:00
parent 58584fc666
commit 0c082f63db
15 changed files with 85323 additions and 15 deletions

View File

@ -71,6 +71,15 @@ Dose Estimation by Simulation of China Space Station
电子能量可达$7\ \mathrm{MeV}$,质子能量可达$600\ \mathrm{MeV}$,重带电粒子可达$50\ \mathrm{MeV/u}$,绝大部分是中低能量。
使用`VDL`的`AE8/AP8`模型,计算轨道上的太阳活动极大时的俘获质子通量和太阳活动极小时的俘获电子通量,结果如下图所示。
<div align=center><img src="docs/fluxmap.png" style="max-width: 80%;"></div>
对整个任务期间求均值,获得俘获质子/电子通量的能谱,同时使用`AE9/AP9`模型进行计算,通量略高于`AE8/AP8`模型。保险起见,采用`AE9/AP9`模型的结果。
<div align=center><img src="docs/spectra-ep.png" style="max-width: 80%;"><br /><span style="color: gray;font-size: 12px;">AE8/AP8模型结果</span></div>
<div align=center><img src="docs/spectra-ep-9.png" style="max-width: 80%;"><br /><span style="color: gray;font-size: 12px;">AE9/AP9模型结果</span></div>
## 空间站结构
1. 尺寸与分区[^4]
<div align=center><img src="docs/size.webp" style="max-width: 50%;"></div>

42495
assets/AE9_mean_flux.txt Normal file

File diff suppressed because it is too large Load Diff

42495
assets/AP9_mean_flux.txt Normal file

File diff suppressed because it is too large Load Diff

2
assets/css.txt Normal file
View File

@ -0,0 +1,2 @@
1 48274U 21035A 22131.00000000 .00018566 00000-0 21317-3 0 9998
2 48274 41.4696 84.9802 0011517 308.1456 44.4159 15.61130380 58963

211
assets/trapped.csv Normal file
View File

@ -0,0 +1,211 @@
'*', 75, 1, 33, 37, 3, 3, 29, 1
'SPENVIS 4.6.10.3403 - 12-May-2022 16:26:20'
'PRJ_DEF', -1,'DESCSS'
'PRJ_HDR', -1,' '
'MOD_ABB', -1,'TRP'
'MIS_PLA', 1, 3,' '
'MIS_NTR', 1, 1,' '
'MIS_STA', 1, 26428.00000000,' '
'MIS_END', 1, 26793.00000000,' '
'MIS_DUR', 1, 3.650000E+02,'days'
'ORB_HDR', -1,' '
'ORB_TYP', -1,'GEN'
'ORB_MJD', 1, 26428.00000000,' '
'ORB_YEA', 1, 2022,' '
'ORB_MON', 1, 5,' '
'ORB_DAY', 1, 11,' '
'ORB_HOU', 1, 0,' '
'ORB_MIN', 1, 0,' '
'ORB_SEC', 1, 0.0,' '
'ORB_APO', 1, 3.938000E+02,'km'
'ORB_PER', 1, 3.792000E+02,'km'
'ORB_INC', 1, 41.47,'deg'
'ORB_RAA', 1, 84.98,'deg'
'ORB_ARG', 1, 308.15,'deg'
'ORB_TRA', 1, 44.46,'deg'
'ORB_PRD', 1, 1.535628E+00,'hrs'
'ORB_DUR', 1, 3.000000E+01,'days'
'ORB_TSE', 1, 26793.00000000,' '
'ORB_AXM', 1, 2,' '
'ORB_MJR', -1,'1 Jan 1950, 00:00 UT'
'ORB_GDR', -1,'Astron. J. 66, 15, 1961'
'TRP_MOD', -1,'AP-8 MIN'
'TRP_OMN', 1, 1,' '
'PLT_HDR', -1,'AP-8 MIN Orbit averaged flux'
'SPECIES', -1,'proton'
'PS Annotation', 8, 2
'Mission start: 11/05/2022 00:00:00'
0.05, 0.00, 0.00
'Mission end: 11/05/2023 00:00:00'
0.95, 0.00, 1.00
'Nr. of segments: 1'
0.05, 1.50, 0.00
'Duration: 365.00 days'
0.95, 0.00, 1.00
'PS Annotation', 24, 1
'Segment 1:'
0.05, 2.00, 0.00
'Apogee: 393.8 km'
0.05, 1.50, 0.00
'Perigee: 379.2 km'
0.50, 0.00, 0.50
'Inclination: 41.5 deg'
0.95, 0.00, 1.00
'R.A. Asc. Node: 85.0 deg'
0.05, 1.50, 0.00
'Arg. Per.: 308.1 deg'
0.50, 0.00, 0.50
'True Anomaly: 44.5 deg'
0.95, 0.00, 1.00
'Period: 1.54 hrs'
0.05, 1.50, 0.00
'Duration: 30.00 days'
0.50, 0.00, 0.50
'468.86 Orbits'
0.95, 0.00, 1.00
'Orbit start: 11/05/2022 00:00:00'
0.05, 1.50, 0.00
'Orbit end: 10/06/2022 00:00:00'
0.95, 0.00, 1.00
'PS Annotation', 2, 0
'Trapped proton model: AP-8 MIN'
0.05, 2.00, 0.00
'Energy','MeV', 1,'Energy'
'IFlux','cm!u-2!n s!u-1!n', 1,'Integral Flux'
'DFlux','cm!u-2!n s!u-1!n MeV!u-1!n', 1,'Differential Flux'
1.0000E-01, 5.6249E+01, 3.6407E+01
1.5000E-01, 5.4498E+01, 3.3650E+01
2.0000E-01, 5.2884E+01, 2.8139E+01
3.0000E-01, 5.0897E+01, 1.9087E+01
4.0000E-01, 4.9067E+01, 1.5006E+01
5.0000E-01, 4.7896E+01, 1.1403E+01
6.0000E-01, 4.6786E+01, 1.0865E+01
7.0000E-01, 4.5723E+01, 1.0565E+01
1.0000E+00, 4.2616E+01, 9.3426E+00
1.5000E+00, 3.8788E+01, 6.9495E+00
2.0000E+00, 3.5667E+01, 5.6931E+00
3.0000E+00, 3.1072E+01, 3.8972E+00
4.0000E+00, 2.7873E+01, 2.6128E+00
5.0000E+00, 2.5847E+01, 1.7887E+00
6.0000E+00, 2.4295E+01, 1.2748E+00
7.0000E+00, 2.3297E+01, 9.2093E-01
1.0000E+01, 2.1228E+01, 5.5396E-01
1.5000E+01, 1.9589E+01, 2.7413E-01
2.0000E+01, 1.8487E+01, 2.0315E-01
3.0000E+01, 1.6804E+01, 1.6215E-01
4.0000E+01, 1.5244E+01, 1.4641E-01
5.0000E+01, 1.3875E+01, 1.4111E-01
6.0000E+01, 1.2421E+01, 1.4029E-01
7.0000E+01, 1.1070E+01, 1.2937E-01
1.0000E+02, 7.7098E+00, 9.9041E-02
1.5000E+02, 3.8373E+00, 5.7465E-02
2.0000E+02, 1.9633E+00, 2.9824E-02
3.0000E+02, 5.1208E-01, 9.1490E-03
4.0000E+02, 1.3353E-01, 0.0000E+00
'End of Block'
'*', 75, 1, 33, 37, 3, 3, 30, 0
'SPENVIS 4.6.10.3403 - 12-May-2022 16:26:20'
'PRJ_DEF', -1,'DESCSS'
'PRJ_HDR', -1,' '
'MOD_ABB', -1,'TRP'
'MIS_PLA', 1, 3,' '
'MIS_NTR', 1, 1,' '
'MIS_STA', 1, 26428.00000000,' '
'MIS_END', 1, 26793.00000000,' '
'MIS_DUR', 1, 3.650000E+02,'days'
'ORB_HDR', -1,' '
'ORB_TYP', -1,'GEN'
'ORB_MJD', 1, 26428.00000000,' '
'ORB_YEA', 1, 2022,' '
'ORB_MON', 1, 5,' '
'ORB_DAY', 1, 11,' '
'ORB_HOU', 1, 0,' '
'ORB_MIN', 1, 0,' '
'ORB_SEC', 1, 0.0,' '
'ORB_APO', 1, 3.938000E+02,'km'
'ORB_PER', 1, 3.792000E+02,'km'
'ORB_INC', 1, 41.47,'deg'
'ORB_RAA', 1, 84.98,'deg'
'ORB_ARG', 1, 308.15,'deg'
'ORB_TRA', 1, 44.46,'deg'
'ORB_PRD', 1, 1.535628E+00,'hrs'
'ORB_DUR', 1, 3.000000E+01,'days'
'ORB_TSE', 1, 26793.00000000,' '
'ORB_AXM', 1, 2,' '
'ORB_MJR', -1,'1 Jan 1950, 00:00 UT'
'ORB_GDR', -1,'Astron. J. 66, 15, 1961'
'TRP_MOD', -1,'AE-8 MAX'
'TRP_OMN', 1, 1,' '
'PLT_HDR', -1,'AE-8 MAX Orbit averaged flux'
'SPECIES',-1,'e-'
'PS Annotation', 8, 2
'Mission start: 11/05/2022 00:00:00'
0.05, 0.00, 0.00
'Mission end: 11/05/2023 00:00:00'
0.95, 0.00, 1.00
'Nr. of segments: 1'
0.05, 1.50, 0.00
'Duration: 365.00 days'
0.95, 0.00, 1.00
'PS Annotation', 24, 1
'Segment 1:'
0.05, 2.00, 0.00
'Apogee: 393.8 km'
0.05, 1.50, 0.00
'Perigee: 379.2 km'
0.50, 0.00, 0.50
'Inclination: 41.5 deg'
0.95, 0.00, 1.00
'R.A. Asc. Node: 85.0 deg'
0.05, 1.50, 0.00
'Arg. Per.: 308.1 deg'
0.50, 0.00, 0.50
'True Anomaly: 44.5 deg'
0.95, 0.00, 1.00
'Period: 1.54 hrs'
0.05, 1.50, 0.00
'Duration: 30.00 days'
0.50, 0.00, 0.50
'468.86 Orbits'
0.95, 0.00, 1.00
'Orbit start: 11/05/2022 00:00:00'
0.05, 1.50, 0.00
'Orbit end: 10/06/2022 00:00:00'
0.95, 0.00, 1.00
'PS Annotation', 2, 0
'Trapped electron model: AE-8 MAX'
0.05, 2.00, 0.00
'Energy','MeV', 1,'Energy'
'IFlux','cm!u-2!n s!u-1!n', 1,'Integral Flux'
'DFlux','cm!u-2!n s!u-1!n MeV!u-1!n', 1,'Differential Flux'
4.0000E-02, 8.1946E+04, 6.2055E+05
1.0000E-01, 4.9550E+04, 4.5929E+05
2.0000E-01, 1.7060E+04, 2.1700E+05
3.0000E-01, 6.1495E+03, 7.3965E+04
4.0000E-01, 2.2670E+03, 2.6562E+04
5.0000E-01, 8.3713E+02, 9.0161E+03
6.0000E-01, 4.6373E+02, 2.8511E+03
7.0000E-01, 2.6691E+02, 1.4556E+03
8.0000E-01, 1.7262E+02, 7.6869E+02
1.0000E+00, 8.8557E+01, 2.9306E+02
1.2500E+00, 5.5059E+01, 1.0847E+02
1.5000E+00, 3.4324E+01, 6.4655E+01
1.7500E+00, 2.2731E+01, 3.8461E+01
2.0000E+00, 1.5093E+01, 2.5204E+01
2.2500E+00, 1.0130E+01, 1.6565E+01
2.5000E+00, 6.8104E+00, 1.4965E+01
2.7500E+00, 2.6473E+00, 1.1534E+01
3.0000E+00, 1.0435E+00, 4.6260E+00
3.2500E+00, 3.3433E-01, 1.8635E+00
3.5000E+00, 1.1176E-01, 5.9872E-01
3.7500E+00, 3.4972E-02, 2.1009E-01
4.0000E+00, 6.7168E-03, 6.2682E-02
4.2500E+00, 3.6308E-03, 1.1339E-02
4.5000E+00, 1.0474E-03, 6.6237E-03
4.7500E+00, 3.1893E-04, 2.0948E-03
5.0000E+00, 0.0000E+00, 8.5048E-04
5.5000E+00, 0.0000E+00, 0.0000E+00
6.0000E+00, 0.0000E+00, 0.0000E+00
6.5000E+00, 0.0000E+00, 0.0000E+00
7.0000E+00, 0.0000E+00, 0.0000E+00
'End of File'
1 '*', 75, 1, 33, 37, 3, 3, 29, 1
2 'SPENVIS 4.6.10.3403 - 12-May-2022 16:26:20'
3 'PRJ_DEF', -1,'DESCSS'
4 'PRJ_HDR', -1,' '
5 'MOD_ABB', -1,'TRP'
6 'MIS_PLA', 1, 3,' '
7 'MIS_NTR', 1, 1,' '
8 'MIS_STA', 1, 26428.00000000,' '
9 'MIS_END', 1, 26793.00000000,' '
10 'MIS_DUR', 1, 3.650000E+02,'days'
11 'ORB_HDR', -1,' '
12 'ORB_TYP', -1,'GEN'
13 'ORB_MJD', 1, 26428.00000000,' '
14 'ORB_YEA', 1, 2022,' '
15 'ORB_MON', 1, 5,' '
16 'ORB_DAY', 1, 11,' '
17 'ORB_HOU', 1, 0,' '
18 'ORB_MIN', 1, 0,' '
19 'ORB_SEC', 1, 0.0,' '
20 'ORB_APO', 1, 3.938000E+02,'km'
21 'ORB_PER', 1, 3.792000E+02,'km'
22 'ORB_INC', 1, 41.47,'deg'
23 'ORB_RAA', 1, 84.98,'deg'
24 'ORB_ARG', 1, 308.15,'deg'
25 'ORB_TRA', 1, 44.46,'deg'
26 'ORB_PRD', 1, 1.535628E+00,'hrs'
27 'ORB_DUR', 1, 3.000000E+01,'days'
28 'ORB_TSE', 1, 26793.00000000,' '
29 'ORB_AXM', 1, 2,' '
30 'ORB_MJR', -1,'1 Jan 1950, 00:00 UT'
31 'ORB_GDR', -1,'Astron. J. 66, 15, 1961'
32 'TRP_MOD', -1,'AP-8 MIN'
33 'TRP_OMN', 1, 1,' '
34 'PLT_HDR', -1,'AP-8 MIN Orbit averaged flux'
35 'SPECIES', -1,'proton'
36 'PS Annotation', 8, 2
37 'Mission start: 11/05/2022 00:00:00'
38 0.05, 0.00, 0.00
39 'Mission end: 11/05/2023 00:00:00'
40 0.95, 0.00, 1.00
41 'Nr. of segments: 1'
42 0.05, 1.50, 0.00
43 'Duration: 365.00 days'
44 0.95, 0.00, 1.00
45 'PS Annotation', 24, 1
46 'Segment 1:'
47 0.05, 2.00, 0.00
48 'Apogee: 393.8 km'
49 0.05, 1.50, 0.00
50 'Perigee: 379.2 km'
51 0.50, 0.00, 0.50
52 'Inclination: 41.5 deg'
53 0.95, 0.00, 1.00
54 'R.A. Asc. Node: 85.0 deg'
55 0.05, 1.50, 0.00
56 'Arg. Per.: 308.1 deg'
57 0.50, 0.00, 0.50
58 'True Anomaly: 44.5 deg'
59 0.95, 0.00, 1.00
60 'Period: 1.54 hrs'
61 0.05, 1.50, 0.00
62 'Duration: 30.00 days'
63 0.50, 0.00, 0.50
64 '468.86 Orbits'
65 0.95, 0.00, 1.00
66 'Orbit start: 11/05/2022 00:00:00'
67 0.05, 1.50, 0.00
68 'Orbit end: 10/06/2022 00:00:00'
69 0.95, 0.00, 1.00
70 'PS Annotation', 2, 0
71 'Trapped proton model: AP-8 MIN'
72 0.05, 2.00, 0.00
73 'Energy','MeV', 1,'Energy'
74 'IFlux','cm!u-2!n s!u-1!n', 1,'Integral Flux'
75 'DFlux','cm!u-2!n s!u-1!n MeV!u-1!n', 1,'Differential Flux'
76 1.0000E-01, 5.6249E+01, 3.6407E+01
77 1.5000E-01, 5.4498E+01, 3.3650E+01
78 2.0000E-01, 5.2884E+01, 2.8139E+01
79 3.0000E-01, 5.0897E+01, 1.9087E+01
80 4.0000E-01, 4.9067E+01, 1.5006E+01
81 5.0000E-01, 4.7896E+01, 1.1403E+01
82 6.0000E-01, 4.6786E+01, 1.0865E+01
83 7.0000E-01, 4.5723E+01, 1.0565E+01
84 1.0000E+00, 4.2616E+01, 9.3426E+00
85 1.5000E+00, 3.8788E+01, 6.9495E+00
86 2.0000E+00, 3.5667E+01, 5.6931E+00
87 3.0000E+00, 3.1072E+01, 3.8972E+00
88 4.0000E+00, 2.7873E+01, 2.6128E+00
89 5.0000E+00, 2.5847E+01, 1.7887E+00
90 6.0000E+00, 2.4295E+01, 1.2748E+00
91 7.0000E+00, 2.3297E+01, 9.2093E-01
92 1.0000E+01, 2.1228E+01, 5.5396E-01
93 1.5000E+01, 1.9589E+01, 2.7413E-01
94 2.0000E+01, 1.8487E+01, 2.0315E-01
95 3.0000E+01, 1.6804E+01, 1.6215E-01
96 4.0000E+01, 1.5244E+01, 1.4641E-01
97 5.0000E+01, 1.3875E+01, 1.4111E-01
98 6.0000E+01, 1.2421E+01, 1.4029E-01
99 7.0000E+01, 1.1070E+01, 1.2937E-01
100 1.0000E+02, 7.7098E+00, 9.9041E-02
101 1.5000E+02, 3.8373E+00, 5.7465E-02
102 2.0000E+02, 1.9633E+00, 2.9824E-02
103 3.0000E+02, 5.1208E-01, 9.1490E-03
104 4.0000E+02, 1.3353E-01, 0.0000E+00
105 'End of Block'
106 '*', 75, 1, 33, 37, 3, 3, 30, 0
107 'SPENVIS 4.6.10.3403 - 12-May-2022 16:26:20'
108 'PRJ_DEF', -1,'DESCSS'
109 'PRJ_HDR', -1,' '
110 'MOD_ABB', -1,'TRP'
111 'MIS_PLA', 1, 3,' '
112 'MIS_NTR', 1, 1,' '
113 'MIS_STA', 1, 26428.00000000,' '
114 'MIS_END', 1, 26793.00000000,' '
115 'MIS_DUR', 1, 3.650000E+02,'days'
116 'ORB_HDR', -1,' '
117 'ORB_TYP', -1,'GEN'
118 'ORB_MJD', 1, 26428.00000000,' '
119 'ORB_YEA', 1, 2022,' '
120 'ORB_MON', 1, 5,' '
121 'ORB_DAY', 1, 11,' '
122 'ORB_HOU', 1, 0,' '
123 'ORB_MIN', 1, 0,' '
124 'ORB_SEC', 1, 0.0,' '
125 'ORB_APO', 1, 3.938000E+02,'km'
126 'ORB_PER', 1, 3.792000E+02,'km'
127 'ORB_INC', 1, 41.47,'deg'
128 'ORB_RAA', 1, 84.98,'deg'
129 'ORB_ARG', 1, 308.15,'deg'
130 'ORB_TRA', 1, 44.46,'deg'
131 'ORB_PRD', 1, 1.535628E+00,'hrs'
132 'ORB_DUR', 1, 3.000000E+01,'days'
133 'ORB_TSE', 1, 26793.00000000,' '
134 'ORB_AXM', 1, 2,' '
135 'ORB_MJR', -1,'1 Jan 1950, 00:00 UT'
136 'ORB_GDR', -1,'Astron. J. 66, 15, 1961'
137 'TRP_MOD', -1,'AE-8 MAX'
138 'TRP_OMN', 1, 1,' '
139 'PLT_HDR', -1,'AE-8 MAX Orbit averaged flux'
140 'SPECIES',-1,'e-'
141 'PS Annotation', 8, 2
142 'Mission start: 11/05/2022 00:00:00'
143 0.05, 0.00, 0.00
144 'Mission end: 11/05/2023 00:00:00'
145 0.95, 0.00, 1.00
146 'Nr. of segments: 1'
147 0.05, 1.50, 0.00
148 'Duration: 365.00 days'
149 0.95, 0.00, 1.00
150 'PS Annotation', 24, 1
151 'Segment 1:'
152 0.05, 2.00, 0.00
153 'Apogee: 393.8 km'
154 0.05, 1.50, 0.00
155 'Perigee: 379.2 km'
156 0.50, 0.00, 0.50
157 'Inclination: 41.5 deg'
158 0.95, 0.00, 1.00
159 'R.A. Asc. Node: 85.0 deg'
160 0.05, 1.50, 0.00
161 'Arg. Per.: 308.1 deg'
162 0.50, 0.00, 0.50
163 'True Anomaly: 44.5 deg'
164 0.95, 0.00, 1.00
165 'Period: 1.54 hrs'
166 0.05, 1.50, 0.00
167 'Duration: 30.00 days'
168 0.50, 0.00, 0.50
169 '468.86 Orbits'
170 0.95, 0.00, 1.00
171 'Orbit start: 11/05/2022 00:00:00'
172 0.05, 1.50, 0.00
173 'Orbit end: 10/06/2022 00:00:00'
174 0.95, 0.00, 1.00
175 'PS Annotation', 2, 0
176 'Trapped electron model: AE-8 MAX'
177 0.05, 2.00, 0.00
178 'Energy','MeV', 1,'Energy'
179 'IFlux','cm!u-2!n s!u-1!n', 1,'Integral Flux'
180 'DFlux','cm!u-2!n s!u-1!n MeV!u-1!n', 1,'Differential Flux'
181 4.0000E-02, 8.1946E+04, 6.2055E+05
182 1.0000E-01, 4.9550E+04, 4.5929E+05
183 2.0000E-01, 1.7060E+04, 2.1700E+05
184 3.0000E-01, 6.1495E+03, 7.3965E+04
185 4.0000E-01, 2.2670E+03, 2.6562E+04
186 5.0000E-01, 8.3713E+02, 9.0161E+03
187 6.0000E-01, 4.6373E+02, 2.8511E+03
188 7.0000E-01, 2.6691E+02, 1.4556E+03
189 8.0000E-01, 1.7262E+02, 7.6869E+02
190 1.0000E+00, 8.8557E+01, 2.9306E+02
191 1.2500E+00, 5.5059E+01, 1.0847E+02
192 1.5000E+00, 3.4324E+01, 6.4655E+01
193 1.7500E+00, 2.2731E+01, 3.8461E+01
194 2.0000E+00, 1.5093E+01, 2.5204E+01
195 2.2500E+00, 1.0130E+01, 1.6565E+01
196 2.5000E+00, 6.8104E+00, 1.4965E+01
197 2.7500E+00, 2.6473E+00, 1.1534E+01
198 3.0000E+00, 1.0435E+00, 4.6260E+00
199 3.2500E+00, 3.3433E-01, 1.8635E+00
200 3.5000E+00, 1.1176E-01, 5.9872E-01
201 3.7500E+00, 3.4972E-02, 2.1009E-01
202 4.0000E+00, 6.7168E-03, 6.2682E-02
203 4.2500E+00, 3.6308E-03, 1.1339E-02
204 4.5000E+00, 1.0474E-03, 6.6237E-03
205 4.7500E+00, 3.1893E-04, 2.0948E-03
206 5.0000E+00, 0.0000E+00, 8.5048E-04
207 5.5000E+00, 0.0000E+00, 0.0000E+00
208 6.0000E+00, 0.0000E+00, 0.0000E+00
209 6.5000E+00, 0.0000E+00, 0.0000E+00
210 7.0000E+00, 0.0000E+00, 0.0000E+00
211 'End of File'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

BIN
docs/fluxmap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 48 KiB

BIN
docs/spectra-ep-9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
docs/spectra-ep.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

After

Width:  |  Height:  |  Size: 151 KiB

48
utils/ae9ap9.py Normal file
View File

@ -0,0 +1,48 @@
import numpy as np
from matplotlib import pyplot as plt
def read_data(file):
with open(file, 'r') as f:
data = f.readlines()
k = 0
while data[k][0] == '#':
k += 1
data = [list(float(s.replace('\n', '').strip()) for s in row.split(',')) for row in data[k:]]
return np.array(data)
E_proton = [0.1, 0.2, 0.4, 0.6, 0.8, 1, 2, 4, 6, 8, 10, 15, 20, 30, 50, 60, 80, 100, 150, 200, 300, 400, 700, 1200, 2000]
E_electron = [0.04, 0.07, 0.1, 0.25, 0.5, 0.75, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 8.5, 10]
data = read_data('assets/AP9_mean_flux.txt')
proton = [np.mean(data[:, k]) for k in range(4, data.shape[1])]
data = read_data('assets/AE9_mean_flux.txt')
electron = [np.mean(data[:, k]) for k in range(4, data.shape[1])]
_, ax = plt.subplots(1, 2, dpi=150, figsize=(16, 6))
ax1, ax2 = ax[0], ax[1]
print(proton)
ax1.plot(E_proton, proton)
ax1.set_ylim([1e-3, 5 * 1e2])
ax1.set_yscale('log')
ax1.set_ylabel(r'$Differential\ Flux\ (\mathrm{cm^{-2}s^{-1}})$')
ax1.set_title('Average spectra - Proton')
ax1.set_xlabel(r'$Energy\ (\mathrm{MeV})$')
ax1.set_xlim(1e-1, 2000)
ax1.set_xscale('log')
ax2.plot(E_electron, electron)
ax2.set_ylim([1e-3, 1e6])
ax2.set_yscale('log')
ax2.set_ylabel(r'$Differential\ Flux\ (\mathrm{cm^{-2}s^{-1}MeV^{-1}})$')
ax2.set_title('Average spectra - Electron')
ax2.set_xlabel(r'$Energy\ (\mathrm{MeV})$')
ax2.set_xlim(0.04, 10)
ax2.set_xscale('log')
plt.tight_layout()
plt.savefig('docs/spectra-ep-9')

View File

@ -66,16 +66,16 @@ def GCR(M=1, ax=None):
else:
_, ax1 = plt.subplots(1, 1)
ax1.plot(E, proton_i, label=r'$p$')
ax1.plot(E, alpha_i, label=r'$\alpha$')
ax1.plot(E, proton_i, linestyle=':', label=r'$p$')
ax1.plot(E, alpha_i, linestyle=':', label=r'$\alpha$')
ax1.set_ylim([1, 5 * 1e2])
ax1.set_yscale('log')
ax1.set_ylabel(r'$Integrated\ Flux\ (\mathrm{m^{-2}sr^{-1}s^{-1}})$')
ax1.legend(loc="upper left")
ax2 = ax1.twinx()
ax2.plot(E, proton_d, linestyle=':', label=r'$p$')
ax2.plot(E, alpha_d, linestyle=':', label=r'$\alpha$')
ax2.plot(E, proton_d, label=r'$p$')
ax2.plot(E, alpha_d, label=r'$\alpha$')
ax2.set_ylim([1e-5, 5 * 1e-2])
ax2.set_yscale('log')
ax2.set_ylabel(r'$Differential\ Flux\ (\mathrm{m^{-2}sr^{-1}s^{-1}MeV^{-1}})$')
@ -101,16 +101,16 @@ def sun():
_, ax1 = plt.subplots(1, 1, dpi=150)
ax1.plot(E, proton_i, label=r'$p$')
ax1.plot(E, alpha_i, label=r'$\alpha$')
ax1.plot(E, proton_i, linestyle=':', label=r'$p$')
ax1.plot(E, alpha_i, linestyle=':', label=r'$\alpha$')
ax1.set_ylim([1e-2, 5 * 1e3])
ax1.set_yscale('log')
ax1.set_ylabel(r'$Integrated\ Flux\ (\mathrm{cm^{-2}})$')
ax1.legend(loc="upper left")
ax2 = ax1.twinx()
ax2.plot(E, proton_d, linestyle=':', label=r'$p$')
ax2.plot(E, alpha_d, linestyle=':', label=r'$\alpha$')
ax2.plot(E, proton_d, label=r'$p$')
ax2.plot(E, alpha_d, label=r'$\alpha$')
ax2.set_ylim([1e-5, 5 * 1e0])
ax2.set_yscale('log')
ax2.set_ylabel(r'$Differential\ Flux\ (\mathrm{cm^{-2}MeV^{-1}})$')
@ -124,16 +124,64 @@ def sun():
plt.savefig('docs/spectra-sun', bbox_inches='tight')
# orbit()
def trapped():
data = data_read('assets/trapped.csv')
E_proton = [0.1, 0.15, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 1, 1.5, 2, 3, 4, 5, 6, 7, 10, 15, 20, 30, 40, 50, 60, 70, 100, 150, 200, 300, 400]
E_electron = [0.04, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 1, 1.25, 1.5, 1.75, 2, 2.25, 2.5, 2.75, 3, 3.25, 3.5, 3.75, 4, 4.25, 4.5, 4.75, 5, 5.5, 6, 6.5, 7]
proton_i, proton_d = data[0][1]['IFlux'], data[0][1]['DFlux']
electron_i, electron_d = data[1][1]['IFlux'], data[1][1]['DFlux']
# fig = plt.figure(figsize=(20, 10), dpi=150)
_, ax = plt.subplots(1, 2, dpi=150, figsize=(16, 6))
# GCR(1, fig.add_subplot(1, 2, 1))
# GCR(3, fig.add_subplot(1, 2, 2))
ax1, ax2 = ax[0], ax[0].twinx()
# fig.savefig('docs/spectra.png', bbox_inches='tight')
ax1.plot(E_proton, proton_i, linestyle=':')
ax1.set_ylim([1e-3, 5 * 1e2])
ax1.set_yscale('log')
ax1.set_ylabel(r'$Integrated\ Flux\ (\mathrm{cm^{-2}s^{-1}})$')
# GCR(1)
# GCR(3)
ax2.plot(E_proton, proton_d)
ax2.set_ylim([1e-3, 5 * 1e2])
ax2.set_yscale('log')
ax2.set_ylabel(r'$Differential\ Flux\ (\mathrm{cm^{-2}s^{-1}MeV^{-1}})$')
ax1.set_title('Average spectra - Proton')
ax1.set_xlabel(r'$Energy\ (\mathrm{MeV})$')
ax1.set_xlim(1e-1, 400)
ax1.set_xscale('log')
ax1, ax2 = ax[1], ax[1].twinx()
ax1.plot(E_electron, electron_i, linestyle=':')
ax1.set_ylim([1e-3, 1e6])
ax1.set_yscale('log')
ax1.set_ylabel(r'$Integrated\ Flux\ (\mathrm{cm^{-2}s^{-1}})$')
ax2.plot(E_electron, electron_d)
ax2.set_ylim([1e-3, 1e6])
ax2.set_yscale('log')
ax2.set_ylabel(r'$Differential\ Flux\ (\mathrm{cm^{-2}s^{-1}MeV^{-1}})$')
ax1.set_title('Average spectra - Electron')
ax1.set_xlabel(r'$Energy\ (\mathrm{MeV})$')
ax1.set_xlim(0.04, 7)
ax1.set_xscale('log')
plt.tight_layout()
plt.savefig('docs/spectra-ep')
orbit()
fig = plt.figure(figsize=(16, 6), dpi=150)
GCR(1, fig.add_subplot(1, 2, 1))
GCR(3, fig.add_subplot(1, 2, 2))
fig.tight_layout()
fig.savefig('docs/spectra.png', bbox_inches='tight')
GCR(1)
GCR(3)
sun()
trapped()