trapped particle fluxes
@ -71,6 +71,15 @@ Dose Estimation by Simulation of China Space Station
|
|||||||
|
|
||||||
电子能量可达$7\ \mathrm{MeV}$,质子能量可达$600\ \mathrm{MeV}$,重带电粒子可达$50\ \mathrm{MeV/u}$,绝大部分是中低能量。
|
电子能量可达$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]
|
1. 尺寸与分区[^4]
|
||||||
<div align=center><img src="docs/size.webp" style="max-width: 50%;"></div>
|
<div align=center><img src="docs/size.webp" style="max-width: 50%;"></div>
|
||||||
|
42495
assets/AE9_mean_flux.txt
Normal file
42495
assets/AP9_mean_flux.txt
Normal file
2
assets/css.txt
Normal 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
@ -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'
|
|
BIN
docs/Tianhe.jpg
Before Width: | Height: | Size: 361 KiB |
BIN
docs/fluxmap.png
Normal file
After Width: | Height: | Size: 271 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 48 KiB |
BIN
docs/spectra-ep-9.png
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
docs/spectra-ep.png
Normal file
After Width: | Height: | Size: 128 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 53 KiB |
BIN
docs/spectra.png
Before Width: | Height: | Size: 190 KiB After Width: | Height: | Size: 151 KiB |
48
utils/ae9ap9.py
Normal 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')
|
@ -66,16 +66,16 @@ def GCR(M=1, ax=None):
|
|||||||
else:
|
else:
|
||||||
_, ax1 = plt.subplots(1, 1)
|
_, ax1 = plt.subplots(1, 1)
|
||||||
|
|
||||||
ax1.plot(E, proton_i, label=r'$p$')
|
ax1.plot(E, proton_i, linestyle=':', label=r'$p$')
|
||||||
ax1.plot(E, alpha_i, label=r'$\alpha$')
|
ax1.plot(E, alpha_i, linestyle=':', label=r'$\alpha$')
|
||||||
ax1.set_ylim([1, 5 * 1e2])
|
ax1.set_ylim([1, 5 * 1e2])
|
||||||
ax1.set_yscale('log')
|
ax1.set_yscale('log')
|
||||||
ax1.set_ylabel(r'$Integrated\ Flux\ (\mathrm{m^{-2}sr^{-1}s^{-1}})$')
|
ax1.set_ylabel(r'$Integrated\ Flux\ (\mathrm{m^{-2}sr^{-1}s^{-1}})$')
|
||||||
ax1.legend(loc="upper left")
|
ax1.legend(loc="upper left")
|
||||||
|
|
||||||
ax2 = ax1.twinx()
|
ax2 = ax1.twinx()
|
||||||
ax2.plot(E, proton_d, linestyle=':', label=r'$p$')
|
ax2.plot(E, proton_d, label=r'$p$')
|
||||||
ax2.plot(E, alpha_d, linestyle=':', label=r'$\alpha$')
|
ax2.plot(E, alpha_d, label=r'$\alpha$')
|
||||||
ax2.set_ylim([1e-5, 5 * 1e-2])
|
ax2.set_ylim([1e-5, 5 * 1e-2])
|
||||||
ax2.set_yscale('log')
|
ax2.set_yscale('log')
|
||||||
ax2.set_ylabel(r'$Differential\ Flux\ (\mathrm{m^{-2}sr^{-1}s^{-1}MeV^{-1}})$')
|
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 = plt.subplots(1, 1, dpi=150)
|
||||||
|
|
||||||
ax1.plot(E, proton_i, label=r'$p$')
|
ax1.plot(E, proton_i, linestyle=':', label=r'$p$')
|
||||||
ax1.plot(E, alpha_i, label=r'$\alpha$')
|
ax1.plot(E, alpha_i, linestyle=':', label=r'$\alpha$')
|
||||||
ax1.set_ylim([1e-2, 5 * 1e3])
|
ax1.set_ylim([1e-2, 5 * 1e3])
|
||||||
ax1.set_yscale('log')
|
ax1.set_yscale('log')
|
||||||
ax1.set_ylabel(r'$Integrated\ Flux\ (\mathrm{cm^{-2}})$')
|
ax1.set_ylabel(r'$Integrated\ Flux\ (\mathrm{cm^{-2}})$')
|
||||||
ax1.legend(loc="upper left")
|
ax1.legend(loc="upper left")
|
||||||
|
|
||||||
ax2 = ax1.twinx()
|
ax2 = ax1.twinx()
|
||||||
ax2.plot(E, proton_d, linestyle=':', label=r'$p$')
|
ax2.plot(E, proton_d, label=r'$p$')
|
||||||
ax2.plot(E, alpha_d, linestyle=':', label=r'$\alpha$')
|
ax2.plot(E, alpha_d, label=r'$\alpha$')
|
||||||
ax2.set_ylim([1e-5, 5 * 1e0])
|
ax2.set_ylim([1e-5, 5 * 1e0])
|
||||||
ax2.set_yscale('log')
|
ax2.set_yscale('log')
|
||||||
ax2.set_ylabel(r'$Differential\ Flux\ (\mathrm{cm^{-2}MeV^{-1}})$')
|
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')
|
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))
|
ax1, ax2 = ax[0], ax[0].twinx()
|
||||||
# GCR(3, fig.add_subplot(1, 2, 2))
|
|
||||||
|
|
||||||
# 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)
|
ax2.plot(E_proton, proton_d)
|
||||||
# GCR(3)
|
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()
|
sun()
|
||||||
|
|
||||||
|
trapped()
|
||||||
|