nucleardatapy 1.0.0__py3-none-any.whl → 1.0.1__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 +17 -14
- 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 +40 -31
- 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_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 +19 -12
- {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/METADATA +1 -1
- {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/RECORD +87 -61
- {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/WHEEL +0 -0
- {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/top_level.txt +0 -0
|
@@ -5,9 +5,11 @@ import nucleardatapy as nuda
|
|
|
5
5
|
|
|
6
6
|
def matter_all_e2a_fig( pname, micro_mbs, pheno_models, band_check, band_plot, matter ):
|
|
7
7
|
"""
|
|
8
|
-
Plot nucleonic energy per particle E/A in matter
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
Plot nucleonic energy per particle E/A in matter.
|
|
9
|
+
|
|
10
|
+
The plot is 1x2 with:
|
|
11
|
+
|
|
12
|
+
[0]: E/A versus den (micro). [1]: E/A versus den (pheno).
|
|
11
13
|
|
|
12
14
|
:param pname: name of the figure (*.png)
|
|
13
15
|
:type pname: str.
|
|
@@ -15,9 +17,12 @@ def matter_all_e2a_fig( pname, micro_mbs, pheno_models, band_check, band_plot, m
|
|
|
15
17
|
:type micro_mbs: str.
|
|
16
18
|
:param pheno_models: models to run on.
|
|
17
19
|
:type pheno_models: array of str.
|
|
18
|
-
:param
|
|
19
|
-
:type
|
|
20
|
-
|
|
20
|
+
:param band_check: object instantiated on the reference band.
|
|
21
|
+
:type band_check: object.
|
|
22
|
+
:param band_plot: object instantiated on the reference band.
|
|
23
|
+
:type band_plot: object.
|
|
24
|
+
:param matter: can be 'SM' or 'NM'.
|
|
25
|
+
:type matter: str.
|
|
21
26
|
"""
|
|
22
27
|
#
|
|
23
28
|
print(f'Plot name: {pname}')
|
|
@@ -51,6 +56,7 @@ def matter_all_e2a_fig( pname, micro_mbs, pheno_models, band_check, band_plot, m
|
|
|
51
56
|
for kmb,mb in enumerate(micro_mbs):
|
|
52
57
|
#
|
|
53
58
|
models, models_lower = nuda.matter.micro_models_mb( mb )
|
|
59
|
+
print('models in matter code:',models)
|
|
54
60
|
#
|
|
55
61
|
for model in models:
|
|
56
62
|
#
|
|
@@ -202,27 +208,27 @@ def matter_all_e2a_fig( pname, micro_mbs, pheno_models, band_check, band_plot, m
|
|
|
202
208
|
if pname is not None:
|
|
203
209
|
plt.savefig(pname, dpi=200)
|
|
204
210
|
#
|
|
205
|
-
|
|
211
|
+
plt.close()
|
|
206
212
|
#
|
|
207
213
|
|
|
208
214
|
def matter_all_Esym_fig( pname, micro_mbs, pheno_models, band_check, band_plot ):
|
|
209
215
|
"""
|
|
210
|
-
Plot nucleonic symmetry energy
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
216
|
+
Plot nucleonic symmetry energy.
|
|
217
|
+
|
|
218
|
+
The plot is 1x2 with:
|
|
219
|
+
|
|
220
|
+
[0]: Esym versus den (micro). [1]: Esym versus den (pheno).
|
|
214
221
|
|
|
215
222
|
:param pname: name of the figure (*.png)
|
|
216
223
|
:type pname: str.
|
|
217
|
-
:param
|
|
218
|
-
:type
|
|
219
|
-
:param
|
|
220
|
-
:type
|
|
221
|
-
:param
|
|
222
|
-
:type
|
|
223
|
-
:param
|
|
224
|
-
:type
|
|
225
|
-
|
|
224
|
+
:param micro_mbs: many-body (mb) approach considered.
|
|
225
|
+
:type micro_mbs: str.
|
|
226
|
+
:param pheno_models: models to run on.
|
|
227
|
+
:type pheno_models: array of str.
|
|
228
|
+
:param band_check: object instantiated on the reference band.
|
|
229
|
+
:type band_check: object.
|
|
230
|
+
:param band_plot: object instantiated on the reference band.
|
|
231
|
+
:type band_plot: object.
|
|
226
232
|
"""
|
|
227
233
|
#
|
|
228
234
|
print(f'Plot name: {pname}')
|
|
@@ -340,9 +346,11 @@ def matter_all_Esym_fig( pname, micro_mbs, pheno_models, band_check, band_plot )
|
|
|
340
346
|
|
|
341
347
|
def matter_all_pre_fig( pname, micro_mbs, pheno_models, band_check, matter ):
|
|
342
348
|
"""
|
|
343
|
-
Plot nucleonic pressure in matter
|
|
344
|
-
|
|
345
|
-
|
|
349
|
+
Plot nucleonic pressure in matter.
|
|
350
|
+
|
|
351
|
+
The plot is 1x2 with:
|
|
352
|
+
|
|
353
|
+
[0]: pre versus den (micro). [1]: pre versus den (pheno).
|
|
346
354
|
|
|
347
355
|
:param pname: name of the figure (*.png)
|
|
348
356
|
:type pname: str.
|
|
@@ -350,9 +358,12 @@ def matter_all_pre_fig( pname, micro_mbs, pheno_models, band_check, matter ):
|
|
|
350
358
|
:type micro_mbs: str.
|
|
351
359
|
:param pheno_models: models to run on.
|
|
352
360
|
:type pheno_models: array of str.
|
|
353
|
-
:param
|
|
354
|
-
:type
|
|
355
|
-
|
|
361
|
+
:param band_check: object instantiated on the reference band.
|
|
362
|
+
:type band_check: object.
|
|
363
|
+
:param band_plot: object instantiated on the reference band.
|
|
364
|
+
:type band_plot: object.
|
|
365
|
+
:param matter: can be 'SM' or 'NM'.
|
|
366
|
+
:type matter: str.
|
|
356
367
|
"""
|
|
357
368
|
#
|
|
358
369
|
print(f'Plot name: {pname}')
|
|
@@ -551,9 +562,11 @@ def matter_all_pre_fig( pname, micro_mbs, pheno_models, band_check, matter ):
|
|
|
551
562
|
|
|
552
563
|
def matter_all_eos_fig( pname, micro_mbs, pheno_models, band_check, matter ):
|
|
553
564
|
"""
|
|
554
|
-
Plot EoS in matter
|
|
555
|
-
|
|
556
|
-
|
|
565
|
+
Plot EoS in matter.
|
|
566
|
+
|
|
567
|
+
The plot is 1x2 with:
|
|
568
|
+
|
|
569
|
+
[0]: pre versus eps (micro). [1]: pre versus eps (pheno).
|
|
557
570
|
|
|
558
571
|
:param pname: name of the figure (*.png)
|
|
559
572
|
:type pname: str.
|
|
@@ -561,9 +574,10 @@ def matter_all_eos_fig( pname, micro_mbs, pheno_models, band_check, matter ):
|
|
|
561
574
|
:type micro_mbs: str.
|
|
562
575
|
:param pheno_models: models to run on.
|
|
563
576
|
:type pheno_models: array of str.
|
|
564
|
-
:param
|
|
565
|
-
:type
|
|
566
|
-
|
|
577
|
+
:param band_check: object instantiated on the reference band.
|
|
578
|
+
:type band_check: object.
|
|
579
|
+
:param matter: can be 'SM' or 'NM'.
|
|
580
|
+
:type matter: str.
|
|
567
581
|
"""
|
|
568
582
|
#
|
|
569
583
|
print(f'Plot name: {pname}')
|
|
@@ -762,9 +776,11 @@ def matter_all_eos_fig( pname, micro_mbs, pheno_models, band_check, matter ):
|
|
|
762
776
|
|
|
763
777
|
def matter_all_cs2_fig( pname, micro_mbs, pheno_models, band_check, matter ):
|
|
764
778
|
"""
|
|
765
|
-
Plot nucleonic sound speed in matter
|
|
766
|
-
|
|
767
|
-
|
|
779
|
+
Plot nucleonic sound speed in matter.
|
|
780
|
+
|
|
781
|
+
The plot is 1x2 with:
|
|
782
|
+
|
|
783
|
+
[0]: cs2 versus den (micro). [1]: cs2 versus den (pheno).
|
|
768
784
|
|
|
769
785
|
:param pname: name of the figure (*.png)
|
|
770
786
|
:type pname: str.
|
|
@@ -772,9 +788,10 @@ def matter_all_cs2_fig( pname, micro_mbs, pheno_models, band_check, matter ):
|
|
|
772
788
|
:type micro_mbs: str.
|
|
773
789
|
:param pheno_models: models to run on.
|
|
774
790
|
:type pheno_models: array of str.
|
|
775
|
-
:param
|
|
776
|
-
:type
|
|
777
|
-
|
|
791
|
+
:param band_check: object instantiated on the reference band.
|
|
792
|
+
:type band_check: object.
|
|
793
|
+
:param matter: can be 'SM' or 'NM'.
|
|
794
|
+
:type matter: str.
|
|
778
795
|
"""
|
|
779
796
|
#
|
|
780
797
|
print(f'Plot name: {pname}')
|
|
@@ -3,10 +3,13 @@ import matplotlib.pyplot as plt
|
|
|
3
3
|
|
|
4
4
|
import nucleardatapy as nuda
|
|
5
5
|
|
|
6
|
-
def matter_setupCheck_fig( pname, mb, models, band ):
|
|
6
|
+
def matter_setupCheck_fig( pname, mb, models, band, matter ):
|
|
7
7
|
"""
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
Check E/A from models in `models` and show the reference band.
|
|
9
|
+
|
|
10
|
+
The plot is 1x1 with:
|
|
11
|
+
|
|
12
|
+
[0]: E/A versus den.
|
|
10
13
|
|
|
11
14
|
:param pname: name of the figure (*.png)
|
|
12
15
|
:type pname: str.
|
|
@@ -7,18 +7,22 @@ mpl.use("Agg") # Use a non-interactive backend
|
|
|
7
7
|
|
|
8
8
|
def matter_setupFFGLep_fig( pname, den_el=None, den_mu1=None, den_mu2=None, den_mu3=None ):
|
|
9
9
|
"""
|
|
10
|
-
Plot leptonic FFG energy per particle E/A and pressure in NM and SM
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
Plot leptonic FFG energy per particle E/A and pressure in NM and SM.
|
|
11
|
+
|
|
12
|
+
The plot is 2x1 with:
|
|
13
|
+
|
|
14
|
+
[0]: E/A versus den. [1]: pre versus den.
|
|
14
15
|
|
|
15
16
|
:param pname: name of the figure (*.png)
|
|
16
17
|
:type pname: str.
|
|
17
|
-
:param
|
|
18
|
-
:type
|
|
19
|
-
:param
|
|
20
|
-
:type
|
|
21
|
-
|
|
18
|
+
:param den_el: electron densities.
|
|
19
|
+
:type den_el: float or numpy vector of real numbers.
|
|
20
|
+
:param den_mu1: muon densities (set 1).
|
|
21
|
+
:type den_mu1: float or numpy vector of real numbers.
|
|
22
|
+
:param den_mu2: muon densities (set 2).
|
|
23
|
+
:type den_mu2: float or numpy vector of real numbers.
|
|
24
|
+
:param den_mu3: muon densities (set 3).
|
|
25
|
+
:type den_mu3: float or numpy vector of real numbers.
|
|
22
26
|
"""
|
|
23
27
|
#
|
|
24
28
|
print(f"Plot name: {pname}")
|
|
@@ -5,21 +5,24 @@ import nucleardatapy as nuda
|
|
|
5
5
|
|
|
6
6
|
mpl.use("Agg") # Use a non-interactive backend
|
|
7
7
|
|
|
8
|
-
def matter_setupFFGNuc_EP_fig(
|
|
9
|
-
pname, mss=[1.0], den=np.linspace(0.01, 0.35, 10), kf=np.linspace(0.5, 2.0, 10)
|
|
10
|
-
):
|
|
8
|
+
def matter_setupFFGNuc_EP_fig( pname, mss=[1.0], den=np.linspace(0.01, 0.35, 10), kf=np.linspace(0.5, 2.0, 10) ):
|
|
11
9
|
"""
|
|
12
|
-
Plot nucleonic FFG energy per particle
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
Plot nucleonic FFG energy per particle and pressure in NM and SM.
|
|
11
|
+
|
|
12
|
+
The plot is 2x2 with:
|
|
13
|
+
|
|
14
|
+
[0,0]: E/A versus den. [0,1]: E/A versus kfn.
|
|
15
|
+
|
|
16
|
+
[1,0]: pre versus den. [1,1]: pre versus kfn.
|
|
16
17
|
|
|
17
18
|
:param pname: name of the figure (*.png)
|
|
18
19
|
:type pname: str.
|
|
19
|
-
:param
|
|
20
|
+
:param mss: effective mass/bare mass of the nucleons.
|
|
21
|
+
:type mss: float or numpy vector of real numbers.
|
|
22
|
+
:param den: densities.
|
|
20
23
|
:type den: float or numpy vector of real numbers.
|
|
21
|
-
:param
|
|
22
|
-
:type
|
|
24
|
+
:param kf: Fermi momenta.
|
|
25
|
+
:type kf: float or numpy vector of real numbers.
|
|
23
26
|
|
|
24
27
|
"""
|
|
25
28
|
#
|
|
@@ -204,13 +207,18 @@ def matter_setupFFGNuc_EP_fig(
|
|
|
204
207
|
|
|
205
208
|
def matter_setupFFGNuc_EOS_fig(pname, mss=[1.0], den=np.linspace(0.01, 0.35, 10)):
|
|
206
209
|
"""
|
|
207
|
-
Plot nucleonic FFG EOS in NM and SM
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
Plot nucleonic FFG EOS in NM and SM.
|
|
211
|
+
|
|
212
|
+
The plot is 2x1 with:
|
|
213
|
+
|
|
214
|
+
[0]: EOS (pre) versus energy density rho.
|
|
215
|
+
|
|
216
|
+
[1]: Sound speed c_s^2 versus energy density rho.
|
|
211
217
|
|
|
212
218
|
:param pname: name of the figure (*.png)
|
|
213
219
|
:type pname: str.
|
|
220
|
+
:param mss: effective mass/bare mass of the nucleons.
|
|
221
|
+
:type mss: float or numpy vector of real numbers.
|
|
214
222
|
:param den: density.
|
|
215
223
|
:type den: float or numpy vector of real numbers.
|
|
216
224
|
|
|
@@ -14,18 +14,18 @@ import nucleardatapy as nuda
|
|
|
14
14
|
|
|
15
15
|
def matter_setupHIC_fig(pname, inferences):
|
|
16
16
|
"""
|
|
17
|
-
Plot
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
Plot the inferences from HIC.
|
|
18
|
+
|
|
19
|
+
The plot is 2x2 with:
|
|
20
|
+
|
|
21
|
+
[0,0]: pressure in SM versus den. [0,1]: E/A in SM versus den.
|
|
22
|
+
|
|
23
|
+
[1,0]: pressure in NM versus den. [1,1]: Esym versus den.
|
|
20
24
|
|
|
21
25
|
:param pname: name of the figure (*.png)
|
|
22
26
|
:type pname: str.
|
|
23
|
-
:param
|
|
24
|
-
:type
|
|
25
|
-
:param version: version of table to run on.
|
|
26
|
-
:type version: str.
|
|
27
|
-
:param theo_tables: object instantiated on the reference band.
|
|
28
|
-
:type theo_tables: object.
|
|
27
|
+
:param inferences: inferences for HIC.
|
|
28
|
+
:type inferences: array of str.
|
|
29
29
|
|
|
30
30
|
"""
|
|
31
31
|
#
|
|
@@ -6,19 +6,20 @@ import nucleardatapy as nuda
|
|
|
6
6
|
|
|
7
7
|
def matter_setupMicroEsym_fig(pname, mbs, band):
|
|
8
8
|
"""
|
|
9
|
-
Plot
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Plot the symmetry energy esym for microscopic 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 mbs: list of many-body approaches.
|
|
20
|
+
:type mbs: 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}")
|
|
@@ -40,18 +41,18 @@ def matter_setupMicroEsym_fig(pname, mbs, band):
|
|
|
40
41
|
axs[1, 0].set_ylabel(r"$E_\mathrm{sym}/E_\mathrm{sym, FFG, NR}$", fontsize="14")
|
|
41
42
|
axs[1, 0].set_xlabel(r"$n_\mathrm{nuc}$ (fm$^{-3}$)", fontsize="14")
|
|
42
43
|
axs[1, 0].set_xlim([0, 0.33])
|
|
43
|
-
axs[1, 0].set_ylim([1.
|
|
44
|
+
axs[1, 0].set_ylim([1.8, 2.9])
|
|
44
45
|
#
|
|
45
46
|
axs[1, 1].set_xlabel(r"$k_F$ (fm$^{-1}$)", fontsize="14")
|
|
46
47
|
axs[1, 1].set_xlim([0.5, 2.0])
|
|
47
|
-
axs[1, 1].set_ylim([1.
|
|
48
|
+
axs[1, 1].set_ylim([1.8, 2.9])
|
|
48
49
|
axs[1, 1].tick_params("y", labelleft=False)
|
|
49
50
|
#
|
|
50
51
|
mb_check = []
|
|
51
52
|
#
|
|
52
53
|
for kmb, mb in enumerate(mbs):
|
|
53
54
|
#
|
|
54
|
-
models, models_lower = nuda.matter.
|
|
55
|
+
models, models_lower = nuda.matter.micro_esym_models_mb(mb)
|
|
55
56
|
#
|
|
56
57
|
for model in models:
|
|
57
58
|
#
|
|
@@ -234,55 +235,55 @@ def matter_setupMicroEsym_fig(pname, mbs, band):
|
|
|
234
235
|
|
|
235
236
|
axs[0, 0].fill_between(
|
|
236
237
|
band.den,
|
|
237
|
-
y1=(band.
|
|
238
|
-
y2=(band.
|
|
238
|
+
y1=(band.e2a_int - band.e2a_std),
|
|
239
|
+
y2=(band.e2a_int + band.e2a_std),
|
|
239
240
|
color=band.color,
|
|
240
241
|
alpha=band.alpha,
|
|
241
242
|
visible=True,
|
|
242
243
|
)
|
|
243
244
|
axs[0, 0].plot(
|
|
244
|
-
band.den, (band.
|
|
245
|
+
band.den, (band.e2a_int - band.e2a_std), color="k", linestyle="dashed", visible=True, zorder = 100 )
|
|
245
246
|
axs[0, 0].plot(
|
|
246
|
-
band.den, (band.
|
|
247
|
+
band.den, (band.e2a_int + band.e2a_std), color="k", linestyle="dashed", visible=True, zorder = 100 )
|
|
247
248
|
axs[0, 1].fill_between(
|
|
248
249
|
band.kfn,
|
|
249
|
-
y1=(band.
|
|
250
|
-
y2=(band.
|
|
250
|
+
y1=(band.e2a_int - band.e2a_std),
|
|
251
|
+
y2=(band.e2a_int + band.e2a_std),
|
|
251
252
|
color=band.color,
|
|
252
253
|
alpha=band.alpha,
|
|
253
254
|
visible=True,
|
|
254
255
|
)
|
|
255
256
|
axs[0, 1].plot(
|
|
256
|
-
band.kfn, (band.
|
|
257
|
+
band.kfn, (band.e2a_int - band.e2a_std), color="k", linestyle="dashed", visible=True, zorder = 100 )
|
|
257
258
|
axs[0, 1].plot(
|
|
258
|
-
band.kfn, (band.
|
|
259
|
+
band.kfn, (band.e2a_int + band.e2a_std), color="k", linestyle="dashed", visible=True, zorder = 100 )
|
|
259
260
|
axs[1, 0].fill_between(
|
|
260
261
|
band.den,
|
|
261
|
-
y1=(band.
|
|
262
|
-
y2=(band.
|
|
262
|
+
y1=(band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kf),
|
|
263
|
+
y2=(band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kf),
|
|
263
264
|
color=band.color,
|
|
264
265
|
alpha=band.alpha,
|
|
265
266
|
visible=True,
|
|
266
267
|
)
|
|
267
268
|
axs[1, 0].plot(
|
|
268
|
-
band.den, (band.
|
|
269
|
+
band.den, (band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kf),
|
|
269
270
|
color="k", linestyle="dashed", visible=True, zorder = 100 )
|
|
270
271
|
axs[1, 0].plot(
|
|
271
|
-
band.den, (band.
|
|
272
|
+
band.den, (band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kf),
|
|
272
273
|
color="k", linestyle="dashed", visible=True, zorder = 100 )
|
|
273
274
|
axs[1, 1].fill_between(
|
|
274
275
|
band.kfn,
|
|
275
|
-
y1=(band.
|
|
276
|
-
y2=(band.
|
|
276
|
+
y1=(band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kf),
|
|
277
|
+
y2=(band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kf),
|
|
277
278
|
color=band.color,
|
|
278
279
|
alpha=band.alpha,
|
|
279
280
|
visible=True,
|
|
280
281
|
)
|
|
281
282
|
axs[1, 1].plot(
|
|
282
|
-
band.kfn, (band.
|
|
283
|
+
band.kfn, (band.e2a_int - band.e2a_std) / nuda.esymffg_nr(band.kf),
|
|
283
284
|
color="k", linestyle="dashed", visible=True, zorder = 100 )
|
|
284
285
|
axs[1, 1].plot(
|
|
285
|
-
band.kfn, (band.
|
|
286
|
+
band.kfn, (band.e2a_int + band.e2a_std) / nuda.esymffg_nr(band.kf),
|
|
286
287
|
color="k", linestyle="dashed", visible=True, zorder = 100 )
|
|
287
288
|
|
|
288
289
|
# axs[1,0].legend(loc='upper right',fontsize='8')
|
|
@@ -291,7 +292,7 @@ def matter_setupMicroEsym_fig(pname, mbs, band):
|
|
|
291
292
|
bbox_to_anchor=(0.1, 1.0),
|
|
292
293
|
columnspacing=2,
|
|
293
294
|
fontsize="8",
|
|
294
|
-
ncol=
|
|
295
|
+
ncol=6,
|
|
295
296
|
frameon=False,
|
|
296
297
|
)
|
|
297
298
|
#
|
|
@@ -3,13 +3,19 @@ import matplotlib.pyplot as plt
|
|
|
3
3
|
|
|
4
4
|
import nucleardatapy as nuda
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
def matter_setupMicro_LP_fig( pname, models, matter="SM", ell=0 ):
|
|
8
7
|
"""
|
|
9
|
-
Plot nucleonic energy per particle E/A in matter
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
Plot nucleonic energy per particle E/A in matter.
|
|
9
|
+
|
|
10
|
+
The plot is 2x2 in SM with:
|
|
11
|
+
|
|
12
|
+
[0,0]: F_ell versus den. [0,1]: G_ell versus den.
|
|
13
|
+
|
|
14
|
+
[1,0]: F'_ell' versus den. [1,1]: G'_ell versus den.
|
|
15
|
+
|
|
16
|
+
Or the plot is 2x1 in NM with:
|
|
17
|
+
|
|
18
|
+
[0]: F_ell versus den. [1]: G_ell versus den.
|
|
13
19
|
|
|
14
20
|
:param pname: name of the figure (*.png)
|
|
15
21
|
:type pname: str.
|
|
@@ -6,15 +6,20 @@ import nucleardatapy as nuda
|
|
|
6
6
|
|
|
7
7
|
def matter_setupMicro_band_fig(pname, models, den, matter):
|
|
8
8
|
"""
|
|
9
|
-
Plot the
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Plot the reference band together with the models on wich it is constructed.
|
|
10
|
+
|
|
11
|
+
The plot is 1x2 with:
|
|
12
|
+
|
|
13
|
+
[0]: E versus den. [1]: E/EFFG versus den.
|
|
12
14
|
|
|
13
15
|
:param pname: name of the figure (*.png)
|
|
14
16
|
:type pname: str.
|
|
15
|
-
:param
|
|
16
|
-
:type
|
|
17
|
-
|
|
17
|
+
:param models: list of models to run on.
|
|
18
|
+
:type models: array of str.
|
|
19
|
+
:param den: numpy array with densities to define the reference band.
|
|
20
|
+
:type den: array of reals.
|
|
21
|
+
:param matter: chose between 'SM', 'NM' or 'Esym'.
|
|
22
|
+
:type matter: str.
|
|
18
23
|
"""
|
|
19
24
|
#
|
|
20
25
|
print(f"Plot name: {pname}")
|
|
@@ -6,10 +6,11 @@ import nucleardatapy as nuda
|
|
|
6
6
|
|
|
7
7
|
def matter_setupMicro_effmass_fig(pname, models, matter="NM"):
|
|
8
8
|
"""
|
|
9
|
-
Plot the effective mass as function of the density and Fermi momentum
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
Plot the effective mass as function of the density and Fermi momentum.
|
|
10
|
+
|
|
11
|
+
The plot is 1x2 with:
|
|
12
|
+
|
|
13
|
+
[0]: effmass(den). [1]: effmass(kF).
|
|
13
14
|
|
|
14
15
|
:param pname: name of the figure (*.png)
|
|
15
16
|
:type pname: str.
|
|
@@ -6,8 +6,10 @@ import nucleardatapy as nuda
|
|
|
6
6
|
|
|
7
7
|
def matter_setupMicro_err_NM_fig(pname, models):
|
|
8
8
|
"""
|
|
9
|
-
Plot uncertainties (err) estimated by different authors in NM
|
|
10
|
-
|
|
9
|
+
Plot uncertainties (err) estimated by different authors in NM.
|
|
10
|
+
|
|
11
|
+
The plot is 1x1 with:
|
|
12
|
+
|
|
11
13
|
[0]: uncertainty for E/A versus den.
|
|
12
14
|
|
|
13
15
|
:param pname: name of the figure (*.png)
|
|
@@ -3,12 +3,15 @@ import matplotlib.pyplot as plt
|
|
|
3
3
|
|
|
4
4
|
import nucleardatapy as nuda
|
|
5
5
|
|
|
6
|
-
def matter_setupMicro_e2a_fig( pname, mb, models, band ):
|
|
6
|
+
def matter_setupMicro_e2a_fig( pname, mb, models, band, matter ):
|
|
7
7
|
"""
|
|
8
|
-
Plot nucleonic energy per particle E/A in matter
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
Plot nucleonic 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.
|
|
12
15
|
|
|
13
16
|
:param pname: name of the figure (*.png)
|
|
14
17
|
:type pname: str.
|
|
@@ -36,10 +39,10 @@ def matter_setupMicro_e2a_fig( pname, mb, models, band ):
|
|
|
36
39
|
axs[1,1].tick_params('y', labelleft=False)
|
|
37
40
|
axs[0,0].tick_params('x', labelbottom=False)
|
|
38
41
|
axs[0,1].tick_params('x', labelbottom=False)
|
|
39
|
-
axs[0,0].set_xlim([0, 0.33]
|
|
40
|
-
axs[1,0].set_xlim([0, 0.33]
|
|
41
|
-
axs[0,1].set_xlim([0, 1.9]
|
|
42
|
-
axs[1,1].set_xlim([0, 1.9]
|
|
42
|
+
axs[0,0].set_xlim([0,0.33]) #([0.06, 0.28]) #[0, 0.33]
|
|
43
|
+
axs[1,0].set_xlim([0,0.33]) #([0.06, 0.28]) #[0, 0.33]
|
|
44
|
+
axs[0,1].set_xlim([0,1.9]) #([0.8, 1.6]) #[0, 1.9]
|
|
45
|
+
axs[1,1].set_xlim([0,1.9]) #([0.8, 1.6]) #[0, 1.9]
|
|
43
46
|
if matter.lower() == 'nm':
|
|
44
47
|
axs[0,0].set_ylabel(r'$E_\text{int,NM}/A$ (MeV)', fontsize = '14' )
|
|
45
48
|
axs[1,0].set_ylabel(r'$E_\text{int,NM}/E_\text{int,NM}^\text{NRFFG}$', fontsize = '14' )
|
|
@@ -51,10 +54,10 @@ def matter_setupMicro_e2a_fig( pname, mb, models, band ):
|
|
|
51
54
|
elif matter.lower() == 'sm':
|
|
52
55
|
axs[0,0].set_ylabel(r'$E_\text{int,SM}/A$ (MeV)', fontsize = '14' )
|
|
53
56
|
axs[1,0].set_ylabel(r'$E_\text{int,SM}/E_\text{int,SM}^\text{NRFFG}$', fontsize = '14' )
|
|
54
|
-
axs[0,0].set_ylim([-20, 10]
|
|
55
|
-
axs[0,1].set_ylim([-20, 10]
|
|
56
|
-
axs[1,0].set_ylim([-1.2, 0.5])
|
|
57
|
-
axs[1,1].set_ylim([-1.2, 0.5])
|
|
57
|
+
axs[0,0].set_ylim([-20,10]) #([-18, -8]) #[-20, 10]
|
|
58
|
+
axs[0,1].set_ylim([-20,10]) #([-18, -8]) #[-20, 10]
|
|
59
|
+
axs[1,0].set_ylim([-1.2, 0.5]) #([-1.0, -0.5]) #[-1.2, 0.5]
|
|
60
|
+
axs[1,1].set_ylim([-1.2, 0.5]) #([-1.0, -0.5]) #[-1.2, 0.5]
|
|
58
61
|
delta = 0.0
|
|
59
62
|
#
|
|
60
63
|
for model in models:
|
|
@@ -166,12 +169,15 @@ def matter_setupMicro_e2a_fig( pname, mb, models, band ):
|
|
|
166
169
|
plt.savefig(pname, dpi=300)
|
|
167
170
|
plt.close()
|
|
168
171
|
|
|
169
|
-
def matter_setupMicro_pre_fig( pname, mb, models, band ):
|
|
172
|
+
def matter_setupMicro_pre_fig( pname, mb, models, band, matter ):
|
|
170
173
|
"""
|
|
171
|
-
Plot nucleonic pressure in matter
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
174
|
+
Plot nucleonic pressure in matter.
|
|
175
|
+
|
|
176
|
+
The plot is 2x2 with:
|
|
177
|
+
|
|
178
|
+
[0,0]: pre versus den. [0,1]: pre versus kfn.
|
|
179
|
+
|
|
180
|
+
[1,0]: pre/pre_NRFFG versus den. [1,1]: pre/pre_NRFFG versus kfn.
|
|
175
181
|
|
|
176
182
|
:param pname: name of the figure (*.png)
|
|
177
183
|
:type pname: str.
|
|
@@ -295,11 +301,13 @@ def matter_setupMicro_pre_fig( pname, mb, models, band ):
|
|
|
295
301
|
plt.savefig(pname, dpi=300)
|
|
296
302
|
plt.close()
|
|
297
303
|
|
|
298
|
-
def matter_setupMicro_cs2_fig( pname, mb, models, band ):
|
|
304
|
+
def matter_setupMicro_cs2_fig( pname, mb, models, band, matter ):
|
|
299
305
|
"""
|
|
300
|
-
Plot nucleonic pressure in matter
|
|
301
|
-
|
|
302
|
-
|
|
306
|
+
Plot nucleonic pressure in matter.
|
|
307
|
+
|
|
308
|
+
The plot is 1x2 with:
|
|
309
|
+
|
|
310
|
+
[0]: cs2 versus den. [1]: cs2 versus kfn.
|
|
303
311
|
|
|
304
312
|
:param pname: name of the figure (*.png)
|
|
305
313
|
:type pname: str.
|