nucleardatapy 1.0.0__py3-none-any.whl → 1.0.2__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.
- nucleardatapy/astro/setup_mr.py +115 -33
- nucleardatapy/create_folder.py +2 -2
- nucleardatapy/crust/setup_crust.py +5 -5
- nucleardatapy/data/astro/HESS/J1731-347.dat +4 -0
- nucleardatapy/data/astro/NICER/J0030+0451.dat +6 -6
- nucleardatapy/data/astro/NICER/J0437-4715.dat +4 -3
- nucleardatapy/data/astro/NICER/J0614-3329.dat +4 -0
- nucleardatapy/data/astro/NICER/J0740+6620.dat +5 -5
- nucleardatapy/data/hnuclei/1991-2L-Yamamoto.csv +6 -0
- nucleardatapy/data/hnuclei/2013-2L-Ahn.csv +1 -1
- nucleardatapy/data/hnuclei/2019-2L-Ekawa.csv +7 -0
- nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-414-E2A.dat +21 -0
- nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-414-TD.dat +22 -0
- nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-450-E2A.dat +20 -0
- nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-450-TD.dat +22 -0
- nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-500-E2A.dat +23 -0
- nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-500-TD.dat +22 -0
- nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-414-E2A.dat +15 -0
- nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-414-TD.dat +21 -0
- nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-450-E2A.dat +15 -0
- nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-450-TD.dat +21 -0
- nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-500-E2A.dat +20 -0
- nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-500-TD.dat +20 -0
- nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLO450.dat +28 -0
- nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLO500.dat +28 -0
- nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLOgo394.dat +28 -0
- nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLOgo450.dat +28 -0
- nucleardatapy/data/matter/micro/2024-ABI-NM-NNLOsat.dat +28 -0
- nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLO450.dat +28 -0
- nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLO500.dat +28 -0
- nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLOgo394.dat +28 -0
- nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLOgo450.dat +28 -0
- nucleardatapy/data/matter/micro/2024-ABI-SM-NNLOsat.dat +28 -0
- nucleardatapy/fig/astro_setupGW_fig.py +4 -2
- nucleardatapy/fig/astro_setupMR_fig.py +14 -8
- nucleardatapy/fig/astro_setupMasses_fig.py +4 -2
- nucleardatapy/fig/astro_setupMtov_fig.py +6 -2
- nucleardatapy/fig/astro_setupMup_fig.py +4 -2
- nucleardatapy/fig/corr_setupEsymDen_fig.py +10 -4
- nucleardatapy/fig/corr_setupEsymLsym_fig.py +7 -3
- nucleardatapy/fig/corr_setupKsatQsat_fig.py +4 -2
- nucleardatapy/fig/crust_setupCrust_fig.py +6 -4
- nucleardatapy/fig/eos_setupAMBeq_fig.py +162 -134
- nucleardatapy/fig/eos_setupAMLeq_fig.py +35 -32
- nucleardatapy/fig/eos_setupAM_asy_lep_fig.py +39 -30
- nucleardatapy/fig/eos_setupAM_asy_nuc_fig.py +39 -30
- nucleardatapy/fig/eos_setupAM_asy_tot_fig.py +39 -30
- nucleardatapy/fig/eos_setupAM_fig.py +45 -30
- nucleardatapy/fig/eos_setupCC_fig.py +54 -24
- nucleardatapy/fig/hnuc_setupChart_fig.py +20 -16
- nucleardatapy/fig/hnuc_setupRE1LExp_fig.py +12 -2
- nucleardatapy/fig/matter_all_fig.py +55 -38
- nucleardatapy/fig/matter_setupCheck_fig.py +6 -3
- nucleardatapy/fig/matter_setupFFGLep_fig.py +13 -9
- nucleardatapy/fig/matter_setupFFGNuc_fig.py +22 -14
- nucleardatapy/fig/matter_setupHIC_fig.py +9 -9
- nucleardatapy/fig/matter_setupMicroEsym_fig.py +31 -30
- nucleardatapy/fig/matter_setupMicro_LP_fig.py +11 -5
- nucleardatapy/fig/matter_setupMicro_band_fig.py +11 -6
- nucleardatapy/fig/matter_setupMicro_effmass_fig.py +5 -4
- nucleardatapy/fig/matter_setupMicro_err_NM_fig.py +4 -2
- nucleardatapy/fig/matter_setupMicro_fig.py +30 -22
- nucleardatapy/fig/matter_setupMicro_gap_fig.py +22 -12
- nucleardatapy/fig/matter_setupNEPStats_fig.py +13 -3
- nucleardatapy/fig/matter_setupPhenoEsym_fig.py +28 -27
- nucleardatapy/fig/matter_setupPheno_fig.py +22 -17
- nucleardatapy/fig/nuc_setupBEExp_chart_fig.py +67 -37
- nucleardatapy/fig/nuc_setupBEExp_fig.py +49 -46
- nucleardatapy/fig/nuc_setupBETheo_fig.py +55 -50
- nucleardatapy/fig/nuc_setupISGMRExp_fig.py +7 -10
- nucleardatapy/fig/nuc_setupRchExp_fig.py +12 -20
- nucleardatapy/fig/nuc_setupRchTheo_fig.py +16 -20
- nucleardatapy/fig/nuc_setupRnpExp_fig.py +12 -0
- nucleardatapy/fig/nuc_setupRnpTheo_fig.py +14 -2
- nucleardatapy/hnuc/setup_re2L_exp.py +30 -7
- nucleardatapy/matter/setup_micro.py +424 -12
- nucleardatapy/matter/setup_micro_band.py +1 -1
- nucleardatapy/matter/setup_micro_esym.py +46 -42
- nucleardatapy/matter/setup_nep.py +1 -1
- nucleardatapy/matter/setup_pheno.py +10 -6
- nucleardatapy/matter/setup_pheno_esym.py +14 -6
- nucleardatapy/nuc/setup_be_exp.py +4 -2
- nucleardatapy/nuc/setup_be_theo.py +101 -215
- {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.2.dist-info}/METADATA +1 -1
- {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.2.dist-info}/RECORD +88 -62
- {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.2.dist-info}/WHEEL +1 -1
- {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.2.dist-info}/licenses/LICENSE +0 -0
- {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.2.dist-info}/top_level.txt +0 -0
|
@@ -5,15 +5,20 @@ import nucleardatapy as nuda
|
|
|
5
5
|
|
|
6
6
|
def matter_setupMicro_gap_1s0_fig(pname, models, matter="NM"):
|
|
7
7
|
"""
|
|
8
|
-
Plot the
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
Plot the 1S0 pairing gap in `matter`.
|
|
9
|
+
|
|
10
|
+
The plot is 2x2 with:
|
|
11
|
+
|
|
12
|
+
[0,0]: gap versus den. [0,1]: gap versus kfn.
|
|
13
|
+
|
|
14
|
+
[1,0]: gap/EF versus den. [1,1]: gap/EF versus kfn.
|
|
11
15
|
|
|
12
16
|
:param pname: name of the figure (*.png)
|
|
13
17
|
:type pname: str.
|
|
14
|
-
:param
|
|
15
|
-
:type
|
|
16
|
-
|
|
18
|
+
:param models: models to run on.
|
|
19
|
+
:type models: array of str.
|
|
20
|
+
:param matter: can be 'SM' or 'NM' (default).
|
|
21
|
+
:type matter: str.
|
|
17
22
|
"""
|
|
18
23
|
#
|
|
19
24
|
print(f"Plot name: {pname}")
|
|
@@ -100,15 +105,20 @@ def matter_setupMicro_gap_1s0_fig(pname, models, matter="NM"):
|
|
|
100
105
|
|
|
101
106
|
def matter_setupMicro_gap_3pf2_fig(pname, models, matter="NM"):
|
|
102
107
|
"""
|
|
103
|
-
Plot the
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
Plot the 3PF2 pairing gap in `matter`.
|
|
109
|
+
|
|
110
|
+
The plot is 2x2 with:
|
|
111
|
+
|
|
112
|
+
[0,0]: gap versus den. [0,1]: gap versus kfn.
|
|
113
|
+
|
|
114
|
+
[1,0]: gap/EF versus den. [1,1]: gap/EF versus kfn.
|
|
106
115
|
|
|
107
116
|
:param pname: name of the figure (*.png)
|
|
108
117
|
:type pname: str.
|
|
109
|
-
:param
|
|
110
|
-
:type
|
|
111
|
-
|
|
118
|
+
:param models: models to run on.
|
|
119
|
+
:type models: array of str.
|
|
120
|
+
:param matter: can be 'SM' or 'NM' (default).
|
|
121
|
+
:type matter: str.
|
|
112
122
|
"""
|
|
113
123
|
#
|
|
114
124
|
print(f"Plot name: {pname}")
|
|
@@ -6,9 +6,19 @@ import nucleardatapy as nuda
|
|
|
6
6
|
|
|
7
7
|
def matter_setupNEPStats_fig(pname, models):
|
|
8
8
|
"""
|
|
9
|
-
Plot
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Plot the PDF for NEPs.
|
|
10
|
+
|
|
11
|
+
The plot is 5x2 with:
|
|
12
|
+
|
|
13
|
+
[0,0]: Esat. [0,1]: Esym.
|
|
14
|
+
|
|
15
|
+
[1,0]: nsat. [1,1]: Lsym.
|
|
16
|
+
|
|
17
|
+
[2,0]: Ksat. [2,1]: Ksym.
|
|
18
|
+
|
|
19
|
+
[3,0]: Qsat. [3,1]: Qsym.
|
|
20
|
+
|
|
21
|
+
[4,0]: m*sat/m. [4,1]: Delta m*sat/m.
|
|
12
22
|
|
|
13
23
|
:param pname: name of the figure (*.png)
|
|
14
24
|
:type pname: str.
|
|
@@ -6,26 +6,27 @@ import nucleardatapy as nuda
|
|
|
6
6
|
|
|
7
7
|
def matter_setupPhenoEsym_fig(pname, models, band):
|
|
8
8
|
"""
|
|
9
|
-
Plot
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Plot the symmetry energy esym for phenomenologic models.
|
|
10
|
+
|
|
11
|
+
The plot is 2x2 with:
|
|
12
|
+
|
|
13
|
+
[0,0]: esym function of the density. [0,1]: esym function of the Fermi momentum.
|
|
14
|
+
|
|
15
|
+
[0,0]: esym/esym,FFG function of the density. [0,1]: esym/esym,FFG function of the Fermi momentum.
|
|
12
16
|
|
|
13
17
|
:param pname: name of the figure (*.png)
|
|
14
18
|
:type pname: str.
|
|
15
|
-
:param
|
|
16
|
-
:type
|
|
17
|
-
:param
|
|
18
|
-
:type
|
|
19
|
-
:param theo_tables: object instantiated on the reference band.
|
|
20
|
-
:type theo_tables: object.
|
|
21
|
-
|
|
19
|
+
:param models: list of phenomenological models.
|
|
20
|
+
:type models: array of str.
|
|
21
|
+
:param band: object instantiated on the reference band.
|
|
22
|
+
:type band: object.
|
|
22
23
|
"""
|
|
23
24
|
#
|
|
24
25
|
print(f"Plot name: {pname}")
|
|
25
26
|
#
|
|
26
27
|
fig, axs = plt.subplots(2, 2)
|
|
27
28
|
fig.tight_layout() # Or equivalently, "plt.tight_layout()"
|
|
28
|
-
fig.subplots_adjust( left=0.12, bottom=0.12, right=0.95, top=0.
|
|
29
|
+
fig.subplots_adjust( left=0.12, bottom=0.12, right=0.95, top=0.88, wspace=0.05, hspace=0.05 )
|
|
29
30
|
#
|
|
30
31
|
axs[0, 0].set_ylabel(r"$E_\mathrm{sym}$ (MeV)")
|
|
31
32
|
axs[0, 0].set_xlim([0, 0.33])
|
|
@@ -134,88 +135,88 @@ def matter_setupPhenoEsym_fig(pname, models, band):
|
|
|
134
135
|
#
|
|
135
136
|
axs[0, 0].fill_between(
|
|
136
137
|
band.den,
|
|
137
|
-
y1=(band.
|
|
138
|
-
y2=(band.
|
|
138
|
+
y1=(band.e2a_int - band.e2a_std),
|
|
139
|
+
y2=(band.e2a_int + band.e2a_std),
|
|
139
140
|
color=band.color,
|
|
140
141
|
alpha=band.alpha,
|
|
141
142
|
visible=True,
|
|
142
143
|
)
|
|
143
144
|
axs[0, 0].plot(
|
|
144
145
|
band.den,
|
|
145
|
-
(band.
|
|
146
|
+
(band.e2a_int - band.e2a_std),
|
|
146
147
|
color="k",
|
|
147
148
|
linestyle="dashed",
|
|
148
149
|
visible=True, zorder = 100
|
|
149
150
|
)
|
|
150
151
|
axs[0, 0].plot(
|
|
151
152
|
band.den,
|
|
152
|
-
(band.
|
|
153
|
+
(band.e2a_int + band.e2a_std),
|
|
153
154
|
color="k",
|
|
154
155
|
linestyle="dashed",
|
|
155
156
|
visible=True, zorder = 100
|
|
156
157
|
)
|
|
157
158
|
axs[0, 1].fill_between(
|
|
158
159
|
band.kfn,
|
|
159
|
-
y1=(band.
|
|
160
|
-
y2=(band.
|
|
160
|
+
y1=(band.e2a_int - band.e2a_std),
|
|
161
|
+
y2=(band.e2a_int + band.e2a_std),
|
|
161
162
|
color=band.color,
|
|
162
163
|
alpha=band.alpha,
|
|
163
164
|
visible=True,
|
|
164
165
|
)
|
|
165
166
|
axs[0, 1].plot(
|
|
166
167
|
band.kfn,
|
|
167
|
-
(band.
|
|
168
|
+
(band.e2a_int - band.e2a_std),
|
|
168
169
|
color="k",
|
|
169
170
|
linestyle="dashed",
|
|
170
171
|
visible=True, zorder = 100
|
|
171
172
|
)
|
|
172
173
|
axs[0, 1].plot(
|
|
173
174
|
band.kfn,
|
|
174
|
-
(band.
|
|
175
|
+
(band.e2a_int + band.e2a_std),
|
|
175
176
|
color="k",
|
|
176
177
|
linestyle="dashed",
|
|
177
178
|
visible=True, zorder = 100
|
|
178
179
|
)
|
|
179
180
|
axs[1, 0].fill_between(
|
|
180
181
|
band.den,
|
|
181
|
-
y1=(band.
|
|
182
|
-
y2=(band.
|
|
182
|
+
y1=(band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kfn),
|
|
183
|
+
y2=(band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kfn),
|
|
183
184
|
color=band.color,
|
|
184
185
|
alpha=band.alpha,
|
|
185
186
|
visible=True,
|
|
186
187
|
)
|
|
187
188
|
axs[1, 0].plot(
|
|
188
189
|
band.den,
|
|
189
|
-
(band.
|
|
190
|
+
(band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kfn),
|
|
190
191
|
color="k",
|
|
191
192
|
linestyle="dashed",
|
|
192
193
|
visible=True, zorder = 100
|
|
193
194
|
)
|
|
194
195
|
axs[1, 0].plot(
|
|
195
196
|
band.den,
|
|
196
|
-
(band.
|
|
197
|
+
(band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kfn),
|
|
197
198
|
color="k",
|
|
198
199
|
linestyle="dashed",
|
|
199
200
|
visible=True, zorder = 100
|
|
200
201
|
)
|
|
201
202
|
axs[1, 1].fill_between(
|
|
202
203
|
band.kf,
|
|
203
|
-
y1=(band.
|
|
204
|
-
y2=(band.
|
|
204
|
+
y1=(band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kfn),
|
|
205
|
+
y2=(band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kfn),
|
|
205
206
|
color=band.color,
|
|
206
207
|
alpha=band.alpha,
|
|
207
208
|
visible=True,
|
|
208
209
|
)
|
|
209
210
|
axs[1, 1].plot(
|
|
210
211
|
band.kfn,
|
|
211
|
-
(band.
|
|
212
|
+
(band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kfn),
|
|
212
213
|
color="k",
|
|
213
214
|
linestyle="dashed",
|
|
214
215
|
visible=True, zorder = 100
|
|
215
216
|
)
|
|
216
217
|
axs[1, 1].plot(
|
|
217
218
|
band.kfn,
|
|
218
|
-
(band.
|
|
219
|
+
(band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kfn),
|
|
219
220
|
color="k",
|
|
220
221
|
linestyle="dashed",
|
|
221
222
|
visible=True, zorder = 100
|
|
@@ -3,13 +3,15 @@ import matplotlib.pyplot as plt
|
|
|
3
3
|
|
|
4
4
|
import nucleardatapy as nuda
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
def matter_setupPheno_e2a_fig(pname, model, band):
|
|
6
|
+
def matter_setupPheno_e2a_fig(pname, model, band, matter):
|
|
8
7
|
"""
|
|
9
|
-
Plot nucleonic energy per particle E/A in matter
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
Plot nucleonic internal energy per particle E/A in `matter`.
|
|
9
|
+
|
|
10
|
+
The plot is 2x2 with:
|
|
11
|
+
|
|
12
|
+
[0,0]: E/A versus den. [0,1]: E/A versus kfn.
|
|
13
|
+
|
|
14
|
+
[1,0]: E/E_NRFFG versus den. [1,1]: E/E_NRFFG versus kfn.
|
|
13
15
|
|
|
14
16
|
:param pname: name of the figure (*.png)
|
|
15
17
|
:type pname: str.
|
|
@@ -19,7 +21,6 @@ def matter_setupPheno_e2a_fig(pname, model, band):
|
|
|
19
21
|
:type band: object.
|
|
20
22
|
:param matter: can be 'SM' or 'NM'.
|
|
21
23
|
:type matter: str.
|
|
22
|
-
|
|
23
24
|
"""
|
|
24
25
|
#
|
|
25
26
|
print(f"Plot name: {pname}")
|
|
@@ -218,12 +219,15 @@ def matter_setupPheno_e2a_fig(pname, model, band):
|
|
|
218
219
|
plt.close()
|
|
219
220
|
#
|
|
220
221
|
|
|
221
|
-
def matter_setupPheno_pre_fig(pname, model, band):
|
|
222
|
+
def matter_setupPheno_pre_fig(pname, model, band, matter):
|
|
222
223
|
"""
|
|
223
|
-
Plot nucleonic pressure in matter
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
Plot nucleonic pressure in matter.
|
|
225
|
+
|
|
226
|
+
The plot is 2x2 with:
|
|
227
|
+
|
|
228
|
+
[0,0]: pre versus den. [0,1]: pre versus kfn.
|
|
229
|
+
|
|
230
|
+
[1,0]: pre/pre_NRFFG versus den. [1,1]: pre/pre_NRFFG versus kfn.
|
|
227
231
|
|
|
228
232
|
:param pname: name of the figure (*.png)
|
|
229
233
|
:type pname: str.
|
|
@@ -329,11 +333,13 @@ def matter_setupPheno_pre_fig(pname, model, band):
|
|
|
329
333
|
plt.close()
|
|
330
334
|
#
|
|
331
335
|
|
|
332
|
-
def matter_setupPheno_cs2_fig(pname, model, band):
|
|
336
|
+
def matter_setupPheno_cs2_fig(pname, model, band, matter):
|
|
333
337
|
"""
|
|
334
|
-
Plot nucleonic sound speed in matter
|
|
335
|
-
|
|
336
|
-
|
|
338
|
+
Plot nucleonic sound speed in matter.
|
|
339
|
+
|
|
340
|
+
The plot is 1x2 with:
|
|
341
|
+
|
|
342
|
+
[0]: cs2 versus den. [1]: cs2 versus kfn.
|
|
337
343
|
|
|
338
344
|
:param pname: name of the figure (*.png)
|
|
339
345
|
:type pname: str.
|
|
@@ -343,7 +349,6 @@ def matter_setupPheno_cs2_fig(pname, model, band):
|
|
|
343
349
|
:type band: object.
|
|
344
350
|
:param matter: can be 'SM' or 'NM'.
|
|
345
351
|
:type matter: str.
|
|
346
|
-
|
|
347
352
|
"""
|
|
348
353
|
#
|
|
349
354
|
print(f"Plot name: {pname}")
|
|
@@ -5,8 +5,10 @@ import nucleardatapy as nuda
|
|
|
5
5
|
|
|
6
6
|
def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
|
|
7
7
|
"""
|
|
8
|
-
Plot nuclear chart (N versus Z)
|
|
9
|
-
|
|
8
|
+
Plot nuclear chart (N versus Z).
|
|
9
|
+
|
|
10
|
+
The plot is 1x1 with:
|
|
11
|
+
|
|
10
12
|
[0]: nuclear chart.
|
|
11
13
|
|
|
12
14
|
:param pname: name of the figure (*.png)
|
|
@@ -17,7 +19,6 @@ def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
|
|
|
17
19
|
:type version: str.
|
|
18
20
|
:param theo_tables: object instantiated on the reference band.
|
|
19
21
|
:type theo_tables: object.
|
|
20
|
-
|
|
21
22
|
"""
|
|
22
23
|
#
|
|
23
24
|
print(f'Plot name: {pname}')
|
|
@@ -33,26 +34,32 @@ def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
|
|
|
33
34
|
axs.set_title(r''+table+' mass table version '+version)
|
|
34
35
|
axs.set_ylabel(r'Z',fontsize='14')
|
|
35
36
|
axs.set_xlabel(r'N',fontsize='14')
|
|
36
|
-
axs.set_xlim([0,
|
|
37
|
+
axs.set_xlim([0, 220])
|
|
37
38
|
axs.set_ylim([0, 132])
|
|
38
39
|
axs.text(10,120,'Number of nuclei:')
|
|
39
40
|
#
|
|
40
|
-
#
|
|
41
|
+
# longlived nuclei
|
|
41
42
|
#
|
|
43
|
+
print(20*'-')
|
|
44
|
+
print('longlived nuclei:')
|
|
42
45
|
mas = nuda.nuc.setupBEExp( table = table, version = version )
|
|
43
46
|
ustbl = mas.select( state= 'gs', interp = 'n', nucleus = 'longlive' )
|
|
44
47
|
axs.scatter( ustbl.sel_nucN, ustbl.sel_nucZ, marker='s', s = 3, linewidth=0, color = 'grey', label='long-lived ('+str(ustbl.sel_nbNucSel)+')' )
|
|
45
48
|
#axs.text(10,96,'long live: '+str(ustbl.sel_nbNucSel))
|
|
46
49
|
#
|
|
47
|
-
#
|
|
50
|
+
# shortlived nuclei
|
|
48
51
|
#
|
|
52
|
+
print(20*'-')
|
|
53
|
+
print('shortlived nuclei:')
|
|
49
54
|
mas = nuda.nuc.setupBEExp( table = table, version = version )
|
|
50
55
|
ustbl = mas.select( state= 'gs', interp = 'n', nucleus = 'shortlive' )
|
|
51
56
|
axs.scatter( ustbl.sel_nucN, ustbl.sel_nucZ, marker='s', s = 3, linewidth=0, color = 'r', label='short-lived ('+str(ustbl.sel_nbNucSel)+')' )
|
|
52
57
|
#axs.text(10,88,'short live: '+str(ustbl.sel_nbNucSel))
|
|
53
58
|
#
|
|
54
|
-
#
|
|
59
|
+
# veryshortlived nuclei
|
|
55
60
|
#
|
|
61
|
+
print(20*'-')
|
|
62
|
+
print('veryshortlived nuclei:')
|
|
56
63
|
mas = nuda.nuc.setupBEExp( table = table, version = version )
|
|
57
64
|
ustbl = mas.select( state= 'gs', interp = 'n', nucleus = 'veryshortlive' )
|
|
58
65
|
axs.scatter( ustbl.sel_nucN, ustbl.sel_nucZ, marker='s', s = 3, linewidth=0, color = 'b', label='very-short-lived ('+str(ustbl.sel_nbNucSel)+')' )
|
|
@@ -60,6 +67,8 @@ def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
|
|
|
60
67
|
#
|
|
61
68
|
# hypershortlive nuclei
|
|
62
69
|
#
|
|
70
|
+
print(20*'-')
|
|
71
|
+
print('hypershortlived nuclei:')
|
|
63
72
|
mas = nuda.nuc.setupBEExp( table = table, version = version )
|
|
64
73
|
ustbl = mas.select( state= 'gs', interp = 'n', nucleus = 'hypershortlive' )
|
|
65
74
|
axs.scatter( ustbl.sel_nucN, ustbl.sel_nucZ, marker='s', s = 3, linewidth=0, color = 'g', label='hyper-short-lived ('+str(ustbl.sel_nbNucSel)+')' )
|
|
@@ -67,26 +76,41 @@ def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
|
|
|
67
76
|
#
|
|
68
77
|
# unstable nuclei:
|
|
69
78
|
#
|
|
79
|
+
print(20*'-')
|
|
80
|
+
print('unstable nuclei:')
|
|
70
81
|
mas = nuda.nuc.setupBEExp( table = table, version = version )
|
|
71
82
|
ustbl = mas.select( state= 'gs', interp = 'n', nucleus = 'unstable' )
|
|
72
83
|
#axs.scatter( ustbl.sel_nucN, ustbl.sel_Z, marker='.', s = 1, linewidth=0, color = 'b' )
|
|
73
84
|
axs.text(10,104,'unstable: '+str(ustbl.sel_nbNucSel))
|
|
74
85
|
#
|
|
75
|
-
#
|
|
86
|
+
# dripline nuclei
|
|
76
87
|
#
|
|
88
|
+
print(20*'-')
|
|
89
|
+
print('dripline nuclei:')
|
|
90
|
+
print('theo_tables:',theo_tables)
|
|
77
91
|
legend = 0
|
|
78
92
|
for i,theo_table in enumerate( theo_tables ):
|
|
93
|
+
print('theo_table:',theo_table)
|
|
79
94
|
theo = nuda.nuc.setupBETheo( table = theo_table )
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
95
|
+
print(' Zmin, Zmax:',theo.Zmin,theo.Zmax)
|
|
96
|
+
for zref in range(theo.Zmin+4,theo.Zmax-4):
|
|
97
|
+
#print('zref:',zref)
|
|
98
|
+
#print('isotopes:')
|
|
99
|
+
itp = theo.isotopes( Zref= zref)
|
|
100
|
+
#print('S2n:')
|
|
101
|
+
s2n = itp.S2n()
|
|
102
|
+
#print('drip_S2n:')
|
|
103
|
+
drip_S2n = itp.drip_S2n()
|
|
104
|
+
if legend == 0:
|
|
105
|
+
axs.scatter( drip_S2n.drip_S2n_N, drip_S2n.drip_S2n_Z, marker='o', s = 3, linewidth=0, color = 'purple', label='Drip Lines' )
|
|
106
|
+
legend = 1
|
|
107
|
+
else:
|
|
108
|
+
axs.scatter( drip_S2n.drip_S2n_N, drip_S2n.drip_S2n_Z, marker='o', s = 3, linewidth=0, color = 'purple' )
|
|
109
|
+
# for nref in range(1,170):
|
|
110
|
+
# itn = theo.isotones( Nref= nref)
|
|
111
|
+
# s2p = itn.S2p( Nref= nref)
|
|
112
|
+
# drip_S2p = theo.drip_S2p( Nmin=1, Nmax=169)
|
|
113
|
+
# axs.scatter( drip_S2p.drip_S2p_N, drip_S2p.drip_S2p_Z, marker='o', s = 3, linewidth=0, color = 'purple' )
|
|
90
114
|
#
|
|
91
115
|
# First and last isotopes
|
|
92
116
|
#
|
|
@@ -96,12 +120,14 @@ def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
|
|
|
96
120
|
#
|
|
97
121
|
# stable nuclei:
|
|
98
122
|
#
|
|
123
|
+
print(20*'-')
|
|
124
|
+
print('stable nuclei:')
|
|
99
125
|
mas = nuda.nuc.setupBEExp( table = table, version = version )
|
|
100
126
|
stbl = mas.select( state= 'gs', interp = 'n', nucleus = 'stable' )
|
|
101
127
|
axs.scatter( stbl.sel_nucN, stbl.sel_nucZ, marker='s', s = 3, linewidth=0, color = 'k' )
|
|
102
128
|
axs.text(10,112,'stable: '+str(stbl.sel_nbNucSel))
|
|
103
129
|
#
|
|
104
|
-
axs.text(
|
|
130
|
+
axs.text(70,120,str(ustbl.sel_nbNucSel+stbl.sel_nbNucSel))
|
|
105
131
|
#
|
|
106
132
|
# plot N=Z dotted line
|
|
107
133
|
#
|
|
@@ -132,19 +158,20 @@ def nuc_setupBEExp_chart_lt_fig( pname, table, version, theo_tables ):
|
|
|
132
158
|
|
|
133
159
|
def nuc_setupBEExp_chart_year_fig( pname, sYear, year_min, year_max ):
|
|
134
160
|
"""
|
|
135
|
-
Plot nuclear chart (N versus Z)
|
|
136
|
-
|
|
161
|
+
Plot nuclear chart (N versus Z) for a range of discovery years.
|
|
162
|
+
|
|
163
|
+
The plot is 1x1 with:
|
|
164
|
+
|
|
137
165
|
[0]: nuclear chart.
|
|
138
166
|
|
|
139
167
|
:param pname: name of the figure (*.png)
|
|
140
168
|
:type pname: str.
|
|
141
|
-
:param
|
|
142
|
-
:type
|
|
143
|
-
:param
|
|
144
|
-
:type
|
|
145
|
-
:param
|
|
146
|
-
:type
|
|
147
|
-
|
|
169
|
+
:param sYear: select nuclei for given discovery years.
|
|
170
|
+
:type sYear: object.
|
|
171
|
+
:param year_min: lower range of the discovery years.
|
|
172
|
+
:type year_min: real.
|
|
173
|
+
:param year_max: upper range of the discovery years.
|
|
174
|
+
:type year_max: real.
|
|
148
175
|
"""
|
|
149
176
|
#
|
|
150
177
|
print(f'Plot name: {pname}')
|
|
@@ -204,8 +231,10 @@ def nuc_setupBEExp_chart_year_fig( pname, sYear, year_min, year_max ):
|
|
|
204
231
|
|
|
205
232
|
def nuc_setupBEExp_chart_Rch_fig( pname, table, version, Rch_table ):
|
|
206
233
|
"""
|
|
207
|
-
Plot nuclear chart (N versus Z)
|
|
208
|
-
|
|
234
|
+
Plot nuclear chart (N versus Z).
|
|
235
|
+
|
|
236
|
+
The plot is 1x1 with:
|
|
237
|
+
|
|
209
238
|
[0]: nuclear chart.
|
|
210
239
|
|
|
211
240
|
:param pname: name of the figure (*.png)
|
|
@@ -214,8 +243,8 @@ def nuc_setupBEExp_chart_Rch_fig( pname, table, version, Rch_table ):
|
|
|
214
243
|
:type table: str.
|
|
215
244
|
:param version: version of table to run on.
|
|
216
245
|
:type version: str.
|
|
217
|
-
:param
|
|
218
|
-
:type
|
|
246
|
+
:param Rch_table: table for Rch.
|
|
247
|
+
:type Rch_table: str.
|
|
219
248
|
|
|
220
249
|
"""
|
|
221
250
|
#
|
|
@@ -242,9 +271,10 @@ def nuc_setupBEExp_chart_Rch_fig( pname, table, version, Rch_table ):
|
|
|
242
271
|
#
|
|
243
272
|
mas = nuda.nuc.setupBEExp( table = table, version = version )
|
|
244
273
|
ustbl = mas.select( state= 'gs', interp = 'n', nucleus = 'unstable' )
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
274
|
+
for Zref in range(1,95):
|
|
275
|
+
iso = ustbl.isotopes( Zref = Zref )
|
|
276
|
+
axs.scatter( iso.itp_nucNmin, iso.itp_nucZ, marker='s', s = 3, linewidth=0, color = 'green' )
|
|
277
|
+
axs.scatter( iso.itp_nucNmax, iso.itp_nucZ, marker='s', s = 3, linewidth=0, color = 'green' )
|
|
248
278
|
#
|
|
249
279
|
# stable nuclei:
|
|
250
280
|
#
|
|
@@ -266,8 +296,8 @@ def nuc_setupBEExp_chart_Rch_fig( pname, table, version, Rch_table ):
|
|
|
266
296
|
#
|
|
267
297
|
# plot stable_fit
|
|
268
298
|
#
|
|
269
|
-
N, Z = nuda.
|
|
270
|
-
axs.plot( N, Z, linestyle='dashed', linewidth=1, color='k')
|
|
299
|
+
#N, Z = nuda.stable_fit_N( Zmin = 1, Zmax = 120 )
|
|
300
|
+
#axs.plot( N, Z, linestyle='dashed', linewidth=1, color='k')
|
|
271
301
|
#
|
|
272
302
|
# plot shells for isotopes and isotones
|
|
273
303
|
#
|
|
@@ -5,9 +5,11 @@ import nucleardatapy as nuda
|
|
|
5
5
|
|
|
6
6
|
def nuc_setupBEExp_year_fig( pname, table, version ):
|
|
7
7
|
"""
|
|
8
|
-
Plot
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
Plot the histogram for the discovery year.
|
|
9
|
+
|
|
10
|
+
The plot is 1x2 with:
|
|
11
|
+
|
|
12
|
+
[0]: full range of years. [1]: last two decades.
|
|
11
13
|
|
|
12
14
|
:param pname: name of the figure (*.png)
|
|
13
15
|
:type pname: str.
|
|
@@ -15,9 +17,6 @@ def nuc_setupBEExp_year_fig( pname, table, version ):
|
|
|
15
17
|
:type table: str.
|
|
16
18
|
:param version: version of table to run on.
|
|
17
19
|
:type version: str.
|
|
18
|
-
:param theo_tables: object instantiated on the reference band.
|
|
19
|
-
:type theo_tables: object.
|
|
20
|
-
|
|
21
20
|
"""
|
|
22
21
|
#
|
|
23
22
|
print(50*'-')
|
|
@@ -67,19 +66,20 @@ def nuc_setupBEExp_year_fig( pname, table, version ):
|
|
|
67
66
|
|
|
68
67
|
def nuc_setupBEExp_S2n_fig( pname, tables, versions, Zref = 50 ):
|
|
69
68
|
"""
|
|
70
|
-
Plot
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
Plot S2n from the data extracted from the nuclear chart.
|
|
70
|
+
|
|
71
|
+
The plot is 1x1 with:
|
|
72
|
+
|
|
73
|
+
[0]: show S2n as a function of N.
|
|
73
74
|
|
|
74
75
|
:param pname: name of the figure (*.png)
|
|
75
76
|
:type pname: str.
|
|
76
|
-
:param
|
|
77
|
-
:type
|
|
78
|
-
:param
|
|
79
|
-
:type
|
|
80
|
-
:param
|
|
81
|
-
:type
|
|
82
|
-
|
|
77
|
+
:param tables: tables.
|
|
78
|
+
:type tables: array of str.
|
|
79
|
+
:param versions: versions of the tables.
|
|
80
|
+
:type versions: array of str.
|
|
81
|
+
:param Zref: Reference value for Z.
|
|
82
|
+
:type Zref: integer.
|
|
83
83
|
"""
|
|
84
84
|
#
|
|
85
85
|
print(f'Plot name: {pname}')
|
|
@@ -120,19 +120,20 @@ def nuc_setupBEExp_S2n_fig( pname, tables, versions, Zref = 50 ):
|
|
|
120
120
|
|
|
121
121
|
def nuc_setupBEExp_S2p_fig( pname, tables, versions, Nref = 50 ):
|
|
122
122
|
"""
|
|
123
|
-
Plot
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
Plot S2p from the data extracted from the nuclear chart.
|
|
124
|
+
|
|
125
|
+
The plot is 1x1 with:
|
|
126
|
+
|
|
127
|
+
[0]: show S2p as a function of Z.
|
|
126
128
|
|
|
127
129
|
:param pname: name of the figure (*.png)
|
|
128
130
|
:type pname: str.
|
|
129
|
-
:param
|
|
130
|
-
:type
|
|
131
|
-
:param
|
|
132
|
-
:type
|
|
133
|
-
:param
|
|
134
|
-
:type
|
|
135
|
-
|
|
131
|
+
:param tables: tables.
|
|
132
|
+
:type tables: array of str.
|
|
133
|
+
:param versions: versions of the tables.
|
|
134
|
+
:type versions: array of str.
|
|
135
|
+
:param Nref: Reference value for N.
|
|
136
|
+
:type Nref: integer.
|
|
136
137
|
"""
|
|
137
138
|
#
|
|
138
139
|
print(f'Plot name: {pname}')
|
|
@@ -173,19 +174,20 @@ def nuc_setupBEExp_S2p_fig( pname, tables, versions, Nref = 50 ):
|
|
|
173
174
|
|
|
174
175
|
def nuc_setupBEExp_D3n_fig( pname, tables, versions, Zref = 50 ):
|
|
175
176
|
"""
|
|
176
|
-
Plot
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
Plot D3n (3-point formula for the odd-even mass staggering) from the data extracted from the nuclear chart.
|
|
178
|
+
|
|
179
|
+
The plot is 1x1 with:
|
|
180
|
+
|
|
181
|
+
[0]: show D3n as a function of N.
|
|
179
182
|
|
|
180
183
|
:param pname: name of the figure (*.png)
|
|
181
184
|
:type pname: str.
|
|
182
|
-
:param
|
|
183
|
-
:type
|
|
184
|
-
:param
|
|
185
|
-
:type
|
|
186
|
-
:param
|
|
187
|
-
:type
|
|
188
|
-
|
|
185
|
+
:param tables: tables.
|
|
186
|
+
:type tables: array of str.
|
|
187
|
+
:param versions: versions of the tables.
|
|
188
|
+
:type versions: array of str.
|
|
189
|
+
:param Zref: Reference value for Z.
|
|
190
|
+
:type Zref: integer.
|
|
189
191
|
"""
|
|
190
192
|
#
|
|
191
193
|
print(f'Plot name: {pname}')
|
|
@@ -229,19 +231,20 @@ def nuc_setupBEExp_D3n_fig( pname, tables, versions, Zref = 50 ):
|
|
|
229
231
|
|
|
230
232
|
def nuc_setupBEExp_D3p_fig( pname, tables, versions, Nref = 50 ):
|
|
231
233
|
"""
|
|
232
|
-
Plot
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
Plot D3p (3-point formula for the odd-even mass staggering) from the data extracted from the nuclear chart.
|
|
235
|
+
|
|
236
|
+
The plot is 1x1 with:
|
|
237
|
+
|
|
238
|
+
[0]: show D3p as a function of Z.
|
|
235
239
|
|
|
236
240
|
:param pname: name of the figure (*.png)
|
|
237
241
|
:type pname: str.
|
|
238
|
-
:param
|
|
239
|
-
:type
|
|
240
|
-
:param
|
|
241
|
-
:type
|
|
242
|
-
:param
|
|
243
|
-
:type
|
|
244
|
-
|
|
242
|
+
:param tables: tables.
|
|
243
|
+
:type tables: array of str.
|
|
244
|
+
:param versions: versions of the tables.
|
|
245
|
+
:type versions: array of str.
|
|
246
|
+
:param Nref: Reference value for N.
|
|
247
|
+
:type Nref: integer.
|
|
245
248
|
"""
|
|
246
249
|
#
|
|
247
250
|
print(f'Plot name: {pname}')
|