nucleardatapy 0.2.0__py3-none-any.whl → 0.2.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/crust/setup_crust.py +46 -1
- nucleardatapy/data/crust/2018-PCPFDDG-BSK22.dat +83 -0
- nucleardatapy/data/crust/2018-PCPFDDG-BSK24.dat +74 -0
- nucleardatapy/data/crust/2018-PCPFDDG-BSK25.dat +130 -0
- nucleardatapy/data/crust/2018-PCPFDDG-BSK26.dat +81 -0
- nucleardatapy/data/matter/micro/2006-BHF/2006-BHF-Av18-effmass-SM.dat +11 -0
- nucleardatapy/data/matter/micro/2006-BHF/2006-BHF-Av18-effmass-beta0.2.dat +11 -0
- nucleardatapy/data/matter/micro/2006-BHF/2006-BHF-Av18-effmass-beta0.4.dat +11 -0
- nucleardatapy/data/nuclei/masses/Theory/2023-BSkG3.txt +0 -4
- nucleardatapy/data/nuclei/masses/Theory/2025-BSkG4.txt +0 -1
- nucleardatapy/eos/setup_am.py +43 -31
- nucleardatapy/eos/setup_am_Beq.py +18 -12
- nucleardatapy/eos/setup_am_Leq.py +53 -47
- nucleardatapy/fig/__init__.py +15 -2
- nucleardatapy/fig/crust_setupCrust_fig.py +3 -3
- nucleardatapy/fig/eos_setupAMBeq_fig.py +866 -49
- nucleardatapy/fig/eos_setupAMLeq_fig.py +185 -53
- nucleardatapy/fig/eos_setupAM_e_asy_lep_fig.py +125 -0
- nucleardatapy/fig/eos_setupAM_e_asy_nuc_fig.py +115 -0
- nucleardatapy/fig/eos_setupAM_e_asy_tot_fig.py +117 -0
- nucleardatapy/fig/eos_setupAM_e_fig.py +173 -0
- nucleardatapy/fig/hnuc_setupRE1LExp_fig.py +1 -1
- nucleardatapy/fig/matter_ENM_fig.py +50 -41
- nucleardatapy/fig/matter_ESM_fig.py +60 -39
- nucleardatapy/fig/matter_Esym_fig.py +48 -36
- nucleardatapy/fig/matter_cs2_fig.py +83 -0
- nucleardatapy/fig/matter_preNM_fig.py +146 -0
- nucleardatapy/fig/matter_preSM_fig.py +144 -0
- nucleardatapy/fig/matter_setupFFGNuc_fig.py +2 -1
- nucleardatapy/fig/matter_setupMicroEsym_fig.py +50 -19
- nucleardatapy/fig/matter_setupMicro_band_fig.py +1 -0
- nucleardatapy/fig/matter_setupMicro_effmass_fig.py +59 -4
- nucleardatapy/fig/matter_setupMicro_fig.py +81 -79
- nucleardatapy/fig/matter_setupPhenoEsym_fig.py +28 -26
- nucleardatapy/fig/matter_setupPheno_fig.py +34 -24
- nucleardatapy/fig/nuc_setupBEExp_chart_fig.py +275 -0
- nucleardatapy/fig/nuc_setupBEExp_fig.py +225 -70
- nucleardatapy/fig/nuc_setupBETheo_fig.py +316 -0
- nucleardatapy/fig/nuc_setupISGMRExp_fig.py +59 -0
- nucleardatapy/fig/nuc_setupRchExp_fig.py +139 -0
- nucleardatapy/fig/nuc_setupRchTheo_fig.py +142 -0
- nucleardatapy/fig/nuc_setupRnpExp_fig.py +120 -0
- nucleardatapy/fig/nuc_setupRnpTheo_fig.py +134 -0
- nucleardatapy/hnuc/__init__.py +3 -3
- nucleardatapy/matter/__init__.py +1 -0
- nucleardatapy/matter/setup_check.py +97 -0
- nucleardatapy/matter/setup_ffg.py +15 -8
- nucleardatapy/matter/setup_micro.py +144 -79
- nucleardatapy/matter/setup_micro_band.py +6 -1
- nucleardatapy/matter/setup_micro_effmass.py +55 -2
- nucleardatapy/matter/setup_micro_esym.py +37 -30
- nucleardatapy/matter/setup_micro_gap.py +3 -3
- nucleardatapy/matter/setup_micro_lp.py +18 -17
- nucleardatapy/matter/setup_pheno.py +2 -2
- nucleardatapy/matter/setup_pheno_esym.py +13 -13
- nucleardatapy/nuc/__init__.py +2 -2
- nucleardatapy/nuc/setup_be_exp.py +90 -90
- nucleardatapy/nuc/setup_be_theo.py +112 -100
- nucleardatapy/nuc/setup_rch_exp.py +49 -6
- nucleardatapy/nuc/setup_rch_theo.py +72 -3
- nucleardatapy/nuc/{setup_nskin_exp.py → setup_rnp_exp.py} +58 -65
- nucleardatapy/nuc/{setup_nskin_theo.py → setup_rnp_theo.py} +34 -39
- nucleardatapy-0.2.1.dist-info/METADATA +521 -0
- {nucleardatapy-0.2.0.dist-info → nucleardatapy-0.2.1.dist-info}/RECORD +86 -65
- {nucleardatapy-0.2.0.dist-info → nucleardatapy-0.2.1.dist-info}/WHEEL +1 -1
- nucleardatapy/fig/eos_setupAM_fig.py +0 -81
- nucleardatapy-0.2.0.dist-info/METADATA +0 -115
- /nucleardatapy/data/matter/micro/2006-BHF/{2006-BHF-E2A-AM.dat → 2006-BHF-Av18-E2A-AM.dat} +0 -0
- /nucleardatapy/data/matter/micro/2006-BHF/{2006-BHF-E2A-NM.dat → 2006-BHF-Av18-E2A-NM.dat} +0 -0
- /nucleardatapy/data/matter/micro/2006-BHF/{2006-BHF-E2A-SM.dat → 2006-BHF-Av18-E2A-SM.dat} +0 -0
- /nucleardatapy/data/matter/micro/2006-BHF/{2006-BHF-Esym2-SM.dat → 2006-BHF-Av18-Esym2-SM.dat} +0 -0
- /nucleardatapy/data/matter/micro/2006-BHF/{2006-BHF-GAP-NM-FreeSpectrum.dat → 2006-BHF-Av18-GAP-NM-FreeSpectrum.dat} +0 -0
- /nucleardatapy/data/matter/micro/2006-BHF/{2006-BHF-GAP-NM-SelfEnergy.dat → 2006-BHF-Av18-GAP-NM-SelfEnergy.dat} +0 -0
- /nucleardatapy/data/matter/micro/2006-BHF/{2006-BHF-GAP-SM-FreeSpectrum.dat → 2006-BHF-Av18-GAP-SM-FreeSpectrum.dat} +0 -0
- /nucleardatapy/data/matter/micro/2006-BHF/{2006-BHF-GAP-SM-SelfEnergy.dat → 2006-BHF-Av18-GAP-SM-SelfEnergy.dat} +0 -0
- /nucleardatapy/data/matter/micro/{2020-MBPT-NM-DHSL59.dat → 2019-MBPT-NM-DHSL59.dat} +0 -0
- /nucleardatapy/data/matter/micro/{2020-MBPT-NM-DHSL69.dat → 2019-MBPT-NM-DHSL69.dat} +0 -0
- /nucleardatapy/data/matter/micro/{2020-MBPT-SM-DHSL59.dat → 2019-MBPT-SM-DHSL59.dat} +0 -0
- /nucleardatapy/data/matter/micro/{2020-MBPT-SM-DHSL69.dat → 2019-MBPT-SM-DHSL69.dat} +0 -0
- /nucleardatapy/data/matter/micro/{2023-MBPT-NM.csv → 2020-MBPT-NM.csv} +0 -0
- /nucleardatapy/data/matter/micro/{2023-MBPT-SM.csv → 2020-MBPT-SM.csv} +0 -0
- /nucleardatapy/data/nuclei/{nskin → rnp}/208Pb.dat +0 -0
- /nucleardatapy/data/nuclei/{nskin → rnp}/48Ca.dat +0 -0
- /nucleardatapy/hnuc/{setup_be1L_exp.py → setup_re1L_exp.py} +0 -0
- /nucleardatapy/hnuc/{setup_be1Xi_exp.py → setup_re1Xi_exp.py} +0 -0
- /nucleardatapy/hnuc/{setup_be2L_exp.py → setup_re2L_exp.py} +0 -0
- {nucleardatapy-0.2.0.dist-info → nucleardatapy-0.2.1.dist-info/licenses}/LICENSE +0 -0
- {nucleardatapy-0.2.0.dist-info → nucleardatapy-0.2.1.dist-info}/top_level.txt +0 -0
|
@@ -28,22 +28,36 @@ def matter_setupMicro_effmass_fig( pname, models, matter = 'NM' ):
|
|
|
28
28
|
#
|
|
29
29
|
axs[0].set_ylabel(r'Landau effective mass $m^*/m$')
|
|
30
30
|
axs[0].set_xlabel(r'$n_\text{nuc}$ (fm$^{-3}$)')
|
|
31
|
-
axs[0].set_xlim([0, 0.34])
|
|
32
|
-
axs[0].set_ylim([0.4, 1.2])
|
|
33
31
|
#axs[0].tick_params('x', labelbottom=False)
|
|
34
32
|
#
|
|
35
|
-
axs[1].set_xlim([0, 2.0])
|
|
36
|
-
axs[1].set_ylim([0.4, 1.2])
|
|
37
33
|
#axs[1].tick_params('x', labelbottom=False)
|
|
38
34
|
axs[1].tick_params('y', labelleft=False)
|
|
39
35
|
axs[1].set_xlabel(r'$k_{F_n}$ (fm$^{-1}$)')
|
|
40
36
|
#
|
|
37
|
+
if matter.lower() == 'nm':
|
|
38
|
+
axs[0].set_xlim([0, 0.34])
|
|
39
|
+
axs[0].set_ylim([0.6, 1.1])
|
|
40
|
+
axs[1].set_xlim([0, 2.0])
|
|
41
|
+
axs[1].set_ylim([0.6, 1.1])
|
|
42
|
+
elif matter.lower() == 'sm':
|
|
43
|
+
axs[0].set_xlim([0, 0.34])
|
|
44
|
+
axs[0].set_ylim([0.6, 1.1])
|
|
45
|
+
axs[1].set_xlim([0, 2.0])
|
|
46
|
+
axs[1].set_ylim([0.6, 1.1])
|
|
47
|
+
elif matter.lower() == 'am':
|
|
48
|
+
axs[0].set_xlim([0.05, 0.27])
|
|
49
|
+
axs[0].set_ylim([0.7, 1.0])
|
|
50
|
+
axs[1].set_xlim([0.7, 1.8])
|
|
51
|
+
axs[1].set_ylim([0.7, 1.0])
|
|
52
|
+
#
|
|
41
53
|
#axs[1,0].set_ylabel(r'$\Delta_{1S0}/E_F$')
|
|
42
54
|
#
|
|
43
55
|
for model in models:
|
|
44
56
|
#
|
|
45
57
|
ms = nuda.matter.setupMicroEffmass( model = model, matter = matter )
|
|
46
58
|
#
|
|
59
|
+
axs[0].text(0.08,0.75,'in '+matter)
|
|
60
|
+
axs[1].text(0.90,0.75,'in '+matter)
|
|
47
61
|
if matter.lower() == 'nm':
|
|
48
62
|
if ms.nm_effmass is not None:
|
|
49
63
|
if ms.nm_effmass_err is not None:
|
|
@@ -60,6 +74,47 @@ def matter_setupMicro_effmass_fig( pname, models, matter = 'NM' ):
|
|
|
60
74
|
else:
|
|
61
75
|
axs[0].plot( ms.sm_den, ms.sm_effmass, marker=ms.marker, markevery=ms.every, linestyle='none', label=ms.label )
|
|
62
76
|
axs[1].plot( ms.sm_kfn, ms.sm_effmass, marker=ms.marker, markevery=ms.every, linestyle='none' )
|
|
77
|
+
elif matter.lower() == 'am':
|
|
78
|
+
if ms.sm_effmass_n is not None:
|
|
79
|
+
if ms.sm_effmass_err is not None:
|
|
80
|
+
axs[0].errorbar( ms.sm_den, ms.sm_effmass, yerr=ms.sm_effmass_err, marker=ms.marker, markevery=ms.every, linestyle='none', label=ms.label )
|
|
81
|
+
axs[1].errorbar( ms.sm_kfn, ms.sm_effmass, yerr=ms.sm_effmass_err, marker=ms.marker, markevery=ms.every, linestyle='none' )
|
|
82
|
+
else:
|
|
83
|
+
ms_n_00, ms_p_00 = nuda.matter.effmass_emp( ms.sm_den , 0.0, mb = 'BHF' )
|
|
84
|
+
ms_n_02, ms_p_02 = nuda.matter.effmass_emp( ms.am02_den , 0.2, mb = 'BHF' )
|
|
85
|
+
ms_n_04, ms_p_04 = nuda.matter.effmass_emp( ms.am04_den , 0.4, mb = 'BHF' )
|
|
86
|
+
axs[0].plot( ms.sm_den, ms.sm_effmass_n, marker='^', color=nuda.param.col[1], markevery=ms.every, linestyle='none', label=ms.label+'(neutrons)' )
|
|
87
|
+
axs[0].plot( ms.am02_den, ms.am02_effmass_n, marker='^', color=nuda.param.col[1], markevery=ms.every, linestyle='none' )
|
|
88
|
+
axs[0].plot( ms.am04_den, ms.am04_effmass_n, marker='^', color=nuda.param.col[1], markevery=ms.every, linestyle='none' )
|
|
89
|
+
axs[0].plot( ms.sm_den, ms.sm_effmass_p, marker='v', color=nuda.param.col[2], markevery=ms.every, linestyle='none', label=ms.label+'(protons)' )
|
|
90
|
+
axs[0].plot( ms.am02_den, ms.am02_effmass_p, marker='v', color=nuda.param.col[2], markevery=ms.every, linestyle='none' )
|
|
91
|
+
axs[0].plot( ms.am04_den, ms.am04_effmass_p, marker='v', color=nuda.param.col[2], markevery=ms.every, linestyle='none' )
|
|
92
|
+
axs[0].plot( ms.sm_den, ms_n_00, color=nuda.param.col[1], linestyle='solid', label='Fit(neutrons)' )
|
|
93
|
+
axs[0].plot( ms.am02_den, ms_n_02, color=nuda.param.col[1], linestyle='solid' )
|
|
94
|
+
axs[0].plot( ms.am04_den, ms_n_04, color=nuda.param.col[1], linestyle='solid' )
|
|
95
|
+
axs[0].plot( ms.sm_den, ms_p_00, color=nuda.param.col[2], linestyle='solid', label='Fit(protons)' )
|
|
96
|
+
axs[0].plot( ms.am02_den, ms_p_02, color=nuda.param.col[2], linestyle='solid' )
|
|
97
|
+
axs[0].plot( ms.am04_den, ms_p_04, color=nuda.param.col[2], linestyle='solid' )
|
|
98
|
+
axs[1].plot( ms.sm_kfn, ms.sm_effmass_n, marker='^', color=nuda.param.col[1], markevery=ms.every, linestyle='none' )
|
|
99
|
+
axs[1].plot( ms.am02_kfn, ms.am02_effmass_n, marker='^', color=nuda.param.col[1], markevery=ms.every, linestyle='none' )
|
|
100
|
+
axs[1].plot( ms.am04_kfn, ms.am04_effmass_n, marker='^', color=nuda.param.col[1], markevery=ms.every, linestyle='none' )
|
|
101
|
+
axs[1].plot( ms.sm_kfn, ms.sm_effmass_p, marker='v', color=nuda.param.col[2], markevery=ms.every, linestyle='none' )
|
|
102
|
+
axs[1].plot( ms.am02_kfn, ms.am02_effmass_p, marker='v', color=nuda.param.col[2], markevery=ms.every, linestyle='none' )
|
|
103
|
+
axs[1].plot( ms.am04_kfn, ms.am04_effmass_p, marker='v', color=nuda.param.col[2], markevery=ms.every, linestyle='none' )
|
|
104
|
+
axs[1].plot( ms.sm_kfn, ms_n_00, color=nuda.param.col[1], linestyle='solid' )
|
|
105
|
+
axs[1].plot( ms.am02_kfn, ms_n_02, color=nuda.param.col[1], linestyle='solid' )
|
|
106
|
+
axs[1].plot( ms.am04_kfn, ms_n_04, color=nuda.param.col[1], linestyle='solid' )
|
|
107
|
+
axs[1].plot( ms.sm_kfn, ms_p_00, color=nuda.param.col[2], linestyle='solid' )
|
|
108
|
+
axs[1].plot( ms.am02_kfn, ms_p_02, color=nuda.param.col[2], linestyle='solid' )
|
|
109
|
+
axs[1].plot( ms.am04_kfn, ms_p_04, color=nuda.param.col[2], linestyle='solid' )
|
|
110
|
+
axs[0].text(0.23,0.84,r'$\delta=0.4$',rotation=0)
|
|
111
|
+
axs[0].text(0.23,0.81,r'$\delta=0.2$',rotation=0)
|
|
112
|
+
axs[0].text(0.23,0.785,'SM',rotation=0)
|
|
113
|
+
axs[0].text(0.23,0.76,r'$\delta=0.2$',rotation=0)
|
|
114
|
+
axs[0].text(0.23,0.74,r'$\delta=0.4$',rotation=0)
|
|
115
|
+
axs[1].text(0.90,0.92,'SM',rotation=0)
|
|
116
|
+
axs[1].text(0.90,0.94,r'$\delta=0.2$',rotation=0)
|
|
117
|
+
axs[1].text(0.95,0.96,r'$\delta=0.4$',rotation=0)
|
|
63
118
|
if nuda.env.verb_output: ms.print_outputs( )
|
|
64
119
|
#
|
|
65
120
|
#axs[1,0].legend(loc='upper right',fontsize='8')
|
|
@@ -3,7 +3,7 @@ import matplotlib.pyplot as plt
|
|
|
3
3
|
|
|
4
4
|
import nucleardatapy as nuda
|
|
5
5
|
|
|
6
|
-
def matter_setupMicro_E_fig( pname, mb, models, band
|
|
6
|
+
def matter_setupMicro_E_fig( pname, mb, models, band ):
|
|
7
7
|
"""
|
|
8
8
|
Plot nucleonic energy per particle E/A in matter.\
|
|
9
9
|
The plot is 2x2 with:\
|
|
@@ -24,121 +24,123 @@ def matter_setupMicro_E_fig( pname, mb, models, band, matter ):
|
|
|
24
24
|
"""
|
|
25
25
|
#
|
|
26
26
|
print(f'Plot name: {pname}')
|
|
27
|
+
matter = band.matter
|
|
27
28
|
#
|
|
28
29
|
fig, axs = plt.subplots(2,2)
|
|
29
30
|
fig.tight_layout() # Or equivalently, "plt.tight_layout()"
|
|
30
31
|
fig.subplots_adjust(left=0.10, bottom=0.12, right=None, top=0.85, wspace=0.05, hspace=0.05 )
|
|
31
32
|
#
|
|
32
|
-
axs[0,0].set_ylabel(r'$E_\text{NM}/A$ (MeV)')
|
|
33
|
-
axs[0,0].set_xlim([0, 0.33])
|
|
34
33
|
axs[1,0].set_xlabel(r'$n_\text{nuc}$ (fm$^{-3}$)')
|
|
35
|
-
axs[1,0].set_ylabel(r'$E_\text{NM}/E_\text{NRFFG}$')
|
|
36
|
-
axs[1,0].set_xlim([0, 0.33])
|
|
37
34
|
axs[1,1].set_xlabel(r'$k_{F_n}$ (fm$^{-1}$)')
|
|
38
35
|
axs[0,1].tick_params('y', labelleft=False)
|
|
39
36
|
axs[1,1].tick_params('y', labelleft=False)
|
|
40
37
|
axs[0,0].tick_params('x', labelbottom=False)
|
|
41
38
|
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.5, 1.9])
|
|
42
|
+
axs[1,1].set_xlim([0.5, 1.9])
|
|
42
43
|
if matter.lower() == 'nm':
|
|
43
|
-
axs[0,0].
|
|
44
|
-
axs[0
|
|
45
|
-
axs[0,
|
|
46
|
-
axs[1
|
|
47
|
-
axs[1,
|
|
48
|
-
axs[1,1].set_ylim([0.
|
|
44
|
+
axs[0,0].set_ylabel(r'$E_\text{NM}/A$ (MeV)')
|
|
45
|
+
axs[1,0].set_ylabel(r'$E_\text{NM}/E_\text{NRFFG}$')
|
|
46
|
+
axs[0,0].set_ylim([0, 30])
|
|
47
|
+
axs[0,1].set_ylim([0, 30])
|
|
48
|
+
axs[1,0].set_ylim([0.2, 0.84])
|
|
49
|
+
axs[1,1].set_ylim([0.2, 0.84])
|
|
49
50
|
delta = 1.0
|
|
50
51
|
elif matter.lower() == 'sm':
|
|
52
|
+
axs[0,0].set_ylabel(r'$E_\text{SM}/A$ (MeV)')
|
|
53
|
+
axs[1,0].set_ylabel(r'$E_\text{SM}/E_\text{NRFFG}$')
|
|
51
54
|
axs[0,0].set_ylim([-20, 10])
|
|
52
|
-
axs[0,1].set_xlim([0, 1.5])
|
|
53
55
|
axs[0,1].set_ylim([-20, 10])
|
|
54
|
-
axs[1,0].set_ylim([-2
|
|
55
|
-
axs[1,1].
|
|
56
|
-
axs[1,1].set_ylim([-2.0, 0.1])
|
|
56
|
+
axs[1,0].set_ylim([-1.2, 0.5])
|
|
57
|
+
axs[1,1].set_ylim([-1.2, 0.5])
|
|
57
58
|
delta = 0.0
|
|
58
59
|
#
|
|
59
60
|
for model in models:
|
|
60
61
|
#
|
|
61
62
|
mic = nuda.matter.setupMicro( model = model, var2 = delta )
|
|
63
|
+
if nuda.env.verb_output: mic.print_outputs( )
|
|
64
|
+
#
|
|
62
65
|
print('model:',model,' delta:',delta)
|
|
63
|
-
|
|
66
|
+
#
|
|
67
|
+
check = nuda.matter.setupCheck( eos = mic, band = band )
|
|
68
|
+
#
|
|
69
|
+
if check.isInside:
|
|
70
|
+
lstyle = 'solid'
|
|
71
|
+
else:
|
|
72
|
+
lstyle = 'dashed'
|
|
73
|
+
#
|
|
74
|
+
if mic.e_err:
|
|
75
|
+
#
|
|
76
|
+
print('=> model (with err):',model,mic.e_err)
|
|
64
77
|
if 'NLEFT' in model:
|
|
65
|
-
if matter.lower() == 'nm':
|
|
66
|
-
axs[0,0].errorbar( mic.nm_den, mic.nm_e2adata, yerr=mic.nm_e2adata_err, linestyle = 'dotted', linewidth = 1, alpha=0.6 )
|
|
67
|
-
axs[0,1].errorbar( mic.nm_kfn, mic.nm_e2adata, yerr=mic.nm_e2adata_err, linestyle = 'dotted', linewidth = 1, alpha=0.6 )
|
|
68
|
-
axs[1,0].errorbar( mic.nm_den, mic.nm_e2adata/nuda.effg_nr(mic.nm_kfn), yerr=mic.nm_e2adata_err/nuda.effg_nr(mic.nm_kfn), linestyle = 'dotted', linewidth = 1, alpha=0.6 )
|
|
69
|
-
axs[1,1].errorbar( mic.nm_kfn, mic.nm_e2adata/nuda.effg_nr(mic.nm_kfn), yerr=mic.nm_e2adata_err/nuda.effg_nr(mic.nm_kfn), linestyle = 'dotted', linewidth = 1, alpha=0.6 )
|
|
70
|
-
elif matter.lower() == 'sm':
|
|
71
|
-
axs[0,0].errorbar( mic.sm_den, mic.sm_e2adata, yerr=mic.sm_e2adata_err, linestyle = 'dotted', linewidth = 1, alpha=0.6 )
|
|
72
|
-
axs[0,1].errorbar( mic.sm_kfn, mic.sm_e2adata, yerr=mic.sm_e2adata_err, linestyle = 'dotted', linewidth = 1, alpha=0.6 )
|
|
73
|
-
axs[1,0].errorbar( mic.sm_den, mic.sm_e2adata/nuda.effg_nr(mic.sm_kfn), yerr=mic.sm_e2adata_err/nuda.effg_nr(mic.sm_kfn), linestyle = 'dotted', linewidth = 1, alpha=0.6 )
|
|
74
|
-
axs[1,1].errorbar( mic.sm_kfn, mic.sm_e2adata/nuda.effg_nr(mic.sm_kfn), yerr=mic.sm_e2adata_err/nuda.effg_nr(mic.sm_kfn), linestyle = 'dotted', linewidth = 1, alpha=0.6 )
|
|
75
78
|
#
|
|
79
|
+
print(' => model (NLEFT):',model)
|
|
76
80
|
if matter.lower() == 'nm':
|
|
81
|
+
axs[0,0].errorbar( mic.nm_den, mic.nm_e2adata, yerr=mic.nm_e2adata_err, linestyle = 'dotted', markevery=mic.every, linewidth = 1, alpha=0.6 )
|
|
77
82
|
axs[0,0].fill_between( mic.nm_den, y1=(mic.nm_e2a-mic.nm_e2a_err), y2=(mic.nm_e2a+mic.nm_e2a_err), alpha=0.3 )
|
|
83
|
+
axs[0,1].errorbar( mic.nm_kfn, mic.nm_e2adata, yerr=mic.nm_e2adata_err, linestyle = 'dotted', markevery=mic.every, linewidth = 1, alpha=0.6 )
|
|
78
84
|
axs[0,1].fill_between( mic.nm_kfn, y1=(mic.nm_e2a-mic.nm_e2a_err), y2=(mic.nm_e2a+mic.nm_e2a_err), alpha=0.3 )
|
|
85
|
+
axs[1,0].errorbar( mic.nm_den, mic.nm_e2adata/nuda.effg_nr(mic.nm_kfn), yerr=mic.nm_e2adata_err/nuda.effg_nr(mic.nm_kfn), linestyle = 'dotted', markevery=mic.every, linewidth = 1, alpha=0.6 )
|
|
79
86
|
axs[1,0].fill_between( mic.nm_den, y1=(mic.nm_e2a-mic.nm_e2a_err)/nuda.effg_nr(mic.nm_kfn), y2=(mic.nm_e2a+mic.nm_e2a_err)/nuda.effg_nr(mic.nm_kfn), alpha=0.3 )
|
|
87
|
+
axs[1,1].errorbar( mic.nm_kfn, mic.nm_e2adata/nuda.effg_nr(mic.nm_kfn), yerr=mic.nm_e2adata_err/nuda.effg_nr(mic.nm_kfn), linestyle = 'dotted', markevery=mic.every, linewidth = 1, alpha=0.6 )
|
|
80
88
|
axs[1,1].fill_between( mic.nm_kfn, y1=(mic.nm_e2a-mic.nm_e2a_err)/nuda.effg_nr(mic.nm_kfn), y2=(mic.nm_e2a+mic.nm_e2a_err)/nuda.effg_nr(mic.nm_kfn), alpha=0.3 )
|
|
81
89
|
elif matter.lower() == 'sm':
|
|
90
|
+
axs[0,0].errorbar( mic.sm_den, mic.sm_e2adata, yerr=mic.sm_e2adata_err, linestyle = 'dotted', markevery=mic.every, linewidth = 1, alpha=0.6 )
|
|
82
91
|
axs[0,0].fill_between( mic.sm_den, y1=(mic.sm_e2a-mic.sm_e2a_err), y2=(mic.sm_e2a+mic.sm_e2a_err), alpha=0.3 )
|
|
92
|
+
axs[0,1].errorbar( mic.sm_kfn, mic.sm_e2adata, yerr=mic.sm_e2adata_err, linestyle = 'dotted', markevery=mic.every, linewidth = 1, alpha=0.6 )
|
|
83
93
|
axs[0,1].fill_between( mic.sm_kfn, y1=(mic.sm_e2a-mic.sm_e2a_err), y2=(mic.sm_e2a+mic.sm_e2a_err), alpha=0.3 )
|
|
94
|
+
axs[1,0].errorbar( mic.sm_den, mic.sm_e2adata/nuda.effg_nr(mic.sm_kfn), yerr=mic.sm_e2adata_err/nuda.effg_nr(mic.sm_kfn), linestyle = 'dotted', markevery=mic.every, linewidth = 1, alpha=0.6 )
|
|
84
95
|
axs[1,0].fill_between( mic.sm_den, y1=(mic.sm_e2a-mic.sm_e2a_err)/nuda.effg_nr(mic.sm_kfn), y2=(mic.sm_e2a+mic.sm_e2a_err)/nuda.effg_nr(mic.sm_kfn), alpha=0.3 )
|
|
96
|
+
axs[1,1].errorbar( mic.sm_kfn, mic.sm_e2adata/nuda.effg_nr(mic.sm_kfn), yerr=mic.sm_e2adata_err/nuda.effg_nr(mic.sm_kfn), linestyle = 'dotted', markevery=mic.every, linewidth = 1, alpha=0.6 )
|
|
85
97
|
axs[1,1].fill_between( mic.sm_kfn, y1=(mic.sm_e2a-mic.sm_e2a_err)/nuda.effg_nr(mic.sm_kfn), y2=(mic.sm_e2a+mic.sm_e2a_err)/nuda.effg_nr(mic.sm_kfn), alpha=0.3 )
|
|
98
|
+
#
|
|
86
99
|
if mic.marker:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
axs[0,0].plot( mic.nm_den, mic.nm_e2a, marker=mic.marker, markevery=mic.every, linestyle='None', label=mic.label )
|
|
101
|
-
axs[0,1].plot( mic.nm_kfn, mic.nm_e2a, marker=mic.marker, markevery=mic.every, linestyle='None' )
|
|
102
|
-
axs[1,0].plot( mic.nm_den, mic.nm_e2a/nuda.effg_nr(mic.nm_kfn), marker=mic.marker, markevery=mic.every, linestyle='None' )
|
|
103
|
-
axs[1,1].plot( mic.nm_kfn, mic.nm_e2a/nuda.effg_nr(mic.nm_kfn), marker=mic.marker, markevery=mic.every, linestyle='None' )
|
|
104
|
-
elif matter.lower() == 'sm':
|
|
105
|
-
axs[0,0].plot( mic.sm_den, mic.sm_e2a, marker=mic.marker, markevery=mic.every, linestyle='None', label=mic.label )
|
|
106
|
-
axs[0,1].plot( mic.sm_kfn, mic.sm_e2a, marker=mic.marker, markevery=mic.every, linestyle='None' )
|
|
107
|
-
axs[1,0].plot( mic.sm_den, mic.sm_e2a/nuda.effg_nr(mic.sm_kfn), marker=mic.marker, markevery=mic.every, linestyle='None' )
|
|
108
|
-
axs[1,1].plot( mic.sm_kfn, mic.sm_e2a/nuda.effg_nr(mic.sm_kfn), marker=mic.marker, markevery=mic.every, linestyle='None' )
|
|
100
|
+
#
|
|
101
|
+
print('with marker:',mic.marker)
|
|
102
|
+
if matter.lower() == 'nm':
|
|
103
|
+
axs[0,0].errorbar( mic.nm_den, mic.nm_e2a, yerr=mic.nm_e2a_err, marker=mic.marker, markevery=mic.every, linestyle=lstyle, label=mic.label, errorevery=mic.every )
|
|
104
|
+
axs[0,1].errorbar( mic.nm_kfn, mic.nm_e2a, yerr=mic.nm_e2a_err, marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
105
|
+
axs[1,0].errorbar( mic.nm_den, mic.nm_e2a/nuda.effg_nr(mic.nm_kfn), yerr=mic.nm_e2a_err/nuda.effg_nr(mic.nm_kfn), marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
106
|
+
axs[1,1].errorbar( mic.nm_kfn, mic.nm_e2a/nuda.effg_nr(mic.nm_kfn), yerr=mic.nm_e2a_err/nuda.effg_nr(mic.nm_kfn), marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
107
|
+
elif matter.lower() == 'sm':
|
|
108
|
+
axs[0,0].errorbar( mic.sm_den, mic.sm_e2a, yerr=mic.sm_e2a_err, marker=mic.marker, markevery=mic.every, linestyle=lstyle, label=mic.label, errorevery=mic.every )
|
|
109
|
+
axs[0,1].errorbar( mic.sm_kfn, mic.sm_e2a, yerr=mic.sm_e2a_err, marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
110
|
+
axs[1,0].errorbar( mic.sm_den, mic.sm_e2a/nuda.effg_nr(mic.sm_kfn), yerr=mic.sm_e2a_err/nuda.effg_nr(mic.sm_kfn), marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
111
|
+
axs[1,1].errorbar( mic.sm_kfn, mic.sm_e2a/nuda.effg_nr(mic.sm_kfn), yerr=mic.sm_e2a_err/nuda.effg_nr(mic.sm_kfn), marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
112
|
+
#
|
|
109
113
|
else:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
axs[0,1].plot( mic.nm_kfn, mic.nm_e2a, marker=mic.marker, markevery=mic.every, linestyle=mic.linestyle )
|
|
125
|
-
axs[1,0].plot( mic.nm_den, mic.nm_e2a/nuda.effg_nr(mic.nm_kfn), marker=mic.marker, markevery=mic.every, linestyle=mic.linestyle )
|
|
126
|
-
axs[1,1].plot( mic.nm_kfn, mic.nm_e2a/nuda.effg_nr(mic.nm_kfn), marker=mic.marker, markevery=mic.every, linestyle=mic.linestyle )
|
|
127
|
-
elif matter.lower() == 'sm':
|
|
128
|
-
axs[0,0].plot( mic.sm_den, mic.sm_e2a, marker=mic.marker, markevery=mic.every, linestyle=mic.linestyle, label=mic.label )
|
|
129
|
-
axs[0,1].plot( mic.sm_kfn, mic.sm_e2a, marker=mic.marker, markevery=mic.every, linestyle=mic.linestyle )
|
|
130
|
-
axs[1,0].plot( mic.sm_den, mic.sm_e2a/nuda.effg_nr(mic.sm_kfn), marker=mic.marker, markevery=mic.every, linestyle=mic.linestyle )
|
|
131
|
-
axs[1,1].plot( mic.sm_kfn, mic.sm_e2a/nuda.effg_nr(mic.sm_kfn), marker=mic.marker, markevery=mic.every, linestyle=mic.linestyle )
|
|
132
|
-
elif mic.e2a is not None:
|
|
114
|
+
#
|
|
115
|
+
print('with no marker:',mic.marker)
|
|
116
|
+
if matter.lower() == 'nm':
|
|
117
|
+
axs[0,0].errorbar( mic.nm_den, mic.nm_e2a, yerr=mic.nm_e2a_err, marker=mic.marker, markevery=mic.every, linestyle=lstyle, label=mic.label, errorevery=mic.every )
|
|
118
|
+
axs[0,1].errorbar( mic.nm_kfn, mic.nm_e2a, yerr=mic.nm_e2a_err, marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
119
|
+
axs[1,0].errorbar( mic.nm_den, mic.nm_e2a/nuda.effg_nr(mic.nm_kfn), yerr=mic.nm_e2a_err/nuda.effg_nr(mic.nm_kfn), marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
120
|
+
axs[1,1].errorbar( mic.nm_kfn, mic.nm_e2a/nuda.effg_nr(mic.nm_kfn), yerr=mic.nm_e2a_err/nuda.effg_nr(mic.nm_kfn), marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
121
|
+
elif matter.lower() == 'sm':
|
|
122
|
+
axs[0,0].errorbar( mic.sm_den, mic.sm_e2a, yerr=mic.sm_e2a_err, marker=mic.marker, markevery=mic.every, linestyle=lstyle, label=mic.label, errorevery=mic.every )
|
|
123
|
+
axs[0,1].errorbar( mic.sm_kfn, mic.sm_e2a, yerr=mic.sm_e2a_err, marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
124
|
+
axs[1,0].errorbar( mic.sm_den, mic.sm_e2a/nuda.effg_nr(mic.sm_kfn), yerr=mic.sm_e2a_err/nuda.effg_nr(mic.sm_kfn), marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
125
|
+
axs[1,1].errorbar( mic.sm_kfn, mic.sm_e2a/nuda.effg_nr(mic.sm_kfn), yerr=mic.sm_e2a_err/nuda.effg_nr(mic.sm_kfn), marker=mic.marker, markevery=mic.every, linestyle=lstyle, errorevery=mic.every )
|
|
126
|
+
else:
|
|
127
|
+
print('=> model (no err):',model,mic.e_err)
|
|
133
128
|
if 'fit' in model:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
axs[
|
|
137
|
-
axs[
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
129
|
+
axs[0,0].plot( mic.den, mic.e2a, marker=mic.marker, linestyle=lstyle, markevery=mic.every, label=mic.label )
|
|
130
|
+
axs[0,1].plot( mic.kfn, mic.e2a, marker=mic.marker, linestyle=lstyle )
|
|
131
|
+
axs[1,0].plot( mic.den, mic.e2a/nuda.effg_nr(mic.kfn), marker=mic.marker, linestyle=lstyle )
|
|
132
|
+
axs[1,1].plot( mic.kfn, mic.e2a/nuda.effg_nr(mic.kfn), marker=mic.marker, linestyle=lstyle )
|
|
133
|
+
else:
|
|
134
|
+
if matter.lower() == 'nm':
|
|
135
|
+
axs[0,0].plot( mic.nm_den, mic.nm_e2a, marker=mic.marker, linestyle=lstyle, markevery=mic.every, label=mic.label )
|
|
136
|
+
axs[0,1].plot( mic.nm_kfn, mic.nm_e2a, marker=mic.marker, linestyle=lstyle, markevery=mic.every )
|
|
137
|
+
axs[1,0].plot( mic.nm_den, mic.nm_e2a/nuda.effg_nr(mic.nm_kfn), marker=mic.marker, linestyle=lstyle, markevery=mic.every )
|
|
138
|
+
axs[1,1].plot( mic.nm_kfn, mic.nm_e2a/nuda.effg_nr(mic.nm_kfn), marker=mic.marker, linestyle=lstyle, markevery=mic.every )
|
|
139
|
+
elif matter.lower() == 'sm':
|
|
140
|
+
axs[0,0].plot( mic.sm_den, mic.sm_e2a, marker=mic.marker, linestyle=lstyle, markevery=mic.every, label=mic.label )
|
|
141
|
+
axs[0,1].plot( mic.sm_kfn, mic.sm_e2a, marker=mic.marker, linestyle=lstyle, markevery=mic.every )
|
|
142
|
+
axs[1,0].plot( mic.sm_den, mic.sm_e2a/nuda.effg_nr(mic.sm_kfn), marker=mic.marker, linestyle=lstyle, markevery=mic.every )
|
|
143
|
+
axs[1,1].plot( mic.sm_kfn, mic.sm_e2a/nuda.effg_nr(mic.sm_kfn), marker=mic.marker, linestyle=lstyle, markevery=mic.every )
|
|
142
144
|
#
|
|
143
145
|
axs[0,0].fill_between( band.den, y1=(band.e2a-band.e2a_std), y2=(band.e2a+band.e2a_std), color=band.color, alpha=band.alpha, visible=True )
|
|
144
146
|
axs[0,0].plot( band.den, (band.e2a-band.e2a_std), color='k', linestyle='dashed' )
|
|
@@ -49,32 +49,33 @@ def matter_setupPhenoEsym_fig( pname, models, band ):
|
|
|
49
49
|
for param in params:
|
|
50
50
|
#
|
|
51
51
|
print('in Sample: model, param',model,param)
|
|
52
|
-
|
|
52
|
+
pheno = nuda.matter.setupPhenoEsym( model = model, param = param )
|
|
53
|
+
if nuda.env.verb_output: pheno.print_outputs( )
|
|
53
54
|
#
|
|
54
|
-
|
|
55
|
-
#
|
|
56
|
-
if
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
check = nuda.matter.setupCheck( eos = pheno, band = band )
|
|
56
|
+
#
|
|
57
|
+
if check.isInside:
|
|
58
|
+
lstyle = 'solid'
|
|
59
|
+
else:
|
|
60
|
+
lstyle = 'dashed'
|
|
61
|
+
#
|
|
62
|
+
#print("esym:",pheno.esym)
|
|
63
|
+
#print("den:",pheno.den)
|
|
64
|
+
if pheno.esym is not None:
|
|
65
|
+
print("esym_err:",pheno.esym_err)
|
|
66
|
+
if pheno.esym_err is None:
|
|
67
|
+
if check.isInside:
|
|
68
|
+
axs[0,0].plot( pheno.den, pheno.esym, marker=pheno.marker, linestyle=lstyle, label=pheno.label )
|
|
61
69
|
else:
|
|
62
|
-
axs[0,0].
|
|
63
|
-
axs[0,1].
|
|
64
|
-
axs[1,0].
|
|
65
|
-
axs[1,1].
|
|
70
|
+
axs[0,0].plot( pheno.den, pheno.esym, marker=pheno.marker, linestyle=lstyle )
|
|
71
|
+
axs[0,1].plot( pheno.kf, pheno.esym, marker=pheno.marker, linestyle=lstyle )
|
|
72
|
+
axs[1,0].plot( pheno.den, pheno.esym/nuda.esymffg_nr(pheno.kf), marker=pheno.marker, linestyle=lstyle )
|
|
73
|
+
axs[1,1].plot( pheno.kf, pheno.esym/nuda.esymffg_nr(pheno.kf), marker=pheno.marker, linestyle=lstyle )
|
|
66
74
|
else:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
axs[1,1].plot( esym.kf, esym.esym/nuda.esymffg_nr(esym.kf), marker=esym.marker, linestyle='dotted' )
|
|
72
|
-
else:
|
|
73
|
-
axs[0,0].plot( esym.den, esym.esym, marker=esym.marker, linestyle=esym.linestyle, label=esym.label )
|
|
74
|
-
axs[0,1].plot( esym.kf, esym.esym, marker=esym.marker, linestyle=esym.linestyle )
|
|
75
|
-
axs[1,0].plot( esym.den, esym.esym/nuda.esymffg_nr(esym.kf), marker=esym.marker, linestyle=esym.linestyle )
|
|
76
|
-
axs[1,1].plot( esym.kf, esym.esym/nuda.esymffg_nr(esym.kf), marker=esym.marker, linestyle=esym.linestyle )
|
|
77
|
-
if nuda.env.verb_output: esym.print_outputs( )
|
|
75
|
+
axs[0,0].errorbar( pheno.den, pheno.esym, yerr=pheno.esym_err, marker=pheno.marker, linestyle=lstyle, errorevery=pheno.every, label=pheno.label )
|
|
76
|
+
axs[0,1].errorbar( pheno.kf, pheno.esym, yerr=pheno.esym_err, marker=pheno.marker, linestyle=lstyle, errorevery=pheno.every )
|
|
77
|
+
axs[1,0].errorbar( pheno.den, pheno.esym/nuda.esymffg_nr(pheno.kf), yerr=pheno.esym_err/nuda.esymffg_nr(pheno.kf), marker=pheno.marker, linestyle=lstyle, errorevery=pheno.every )
|
|
78
|
+
axs[1,1].errorbar( pheno.kf, pheno.esym/nuda.esymffg_nr(pheno.kf), yerr=pheno.esym_err/nuda.esymffg_nr(pheno.kf), marker=pheno.marker, linestyle=lstyle, errorevery=pheno.every )
|
|
78
79
|
#
|
|
79
80
|
axs[0,0].fill_between( band.den, y1=(band.e2a-band.e2a_std), y2=(band.e2a+band.e2a_std), color=band.color, alpha=band.alpha, visible=True )
|
|
80
81
|
axs[0,0].plot( band.den, (band.e2a-band.e2a_std), color='k', linestyle='dashed', visible=True )
|
|
@@ -89,12 +90,13 @@ def matter_setupPhenoEsym_fig( pname, models, band ):
|
|
|
89
90
|
axs[1,1].plot( band.kfn, (band.e2a-band.e2a_std)/nuda.esymffg_nr(band.kfn), color='k', linestyle='dashed', visible=True )
|
|
90
91
|
axs[1,1].plot( band.kfn, (band.e2a+band.e2a_std)/nuda.esymffg_nr(band.kfn), color='k', linestyle='dashed', visible=True )
|
|
91
92
|
#
|
|
92
|
-
axs[0,0].plot(
|
|
93
|
-
axs[0,1].plot(
|
|
93
|
+
axs[0,0].plot( pheno.den, nuda.esymffg_nr(pheno.kf), linestyle='dashed' )
|
|
94
|
+
axs[0,1].plot( pheno.kf, nuda.esymffg_nr(pheno.kf), linestyle='dashed' )
|
|
94
95
|
|
|
95
96
|
#axs[1,0].legend(loc='upper right',fontsize='8')
|
|
96
97
|
fig.legend(loc='upper left',bbox_to_anchor=(0.1,1.0),columnspacing=2,fontsize='8',ncol=4,frameon=False)
|
|
97
98
|
#
|
|
98
99
|
if pname is not None:
|
|
99
100
|
plt.savefig(pname, dpi=300)
|
|
100
|
-
plt.close()
|
|
101
|
+
plt.close()
|
|
102
|
+
#
|
|
@@ -3,7 +3,7 @@ import matplotlib.pyplot as plt
|
|
|
3
3
|
|
|
4
4
|
import nucleardatapy as nuda
|
|
5
5
|
|
|
6
|
-
def matter_setupPheno_E_fig( pname, model, band
|
|
6
|
+
def matter_setupPheno_E_fig( pname, model, band ):
|
|
7
7
|
"""
|
|
8
8
|
Plot nucleonic energy per particle E/A in matter.\
|
|
9
9
|
The plot is 2x2 with:\
|
|
@@ -22,6 +22,7 @@ def matter_setupPheno_E_fig( pname, model, band, matter ):
|
|
|
22
22
|
"""
|
|
23
23
|
#
|
|
24
24
|
print(f'Plot name: {pname}')
|
|
25
|
+
matter = band.matter
|
|
25
26
|
#
|
|
26
27
|
# plot
|
|
27
28
|
#
|
|
@@ -29,12 +30,12 @@ def matter_setupPheno_E_fig( pname, model, band, matter ):
|
|
|
29
30
|
fig.tight_layout() # Or equivalently, "plt.tight_layout()"
|
|
30
31
|
fig.subplots_adjust(left=0.15, bottom=0.12, right=None, top=0.88, wspace=0.05, hspace=0.05)
|
|
31
32
|
#
|
|
32
|
-
axs[0,0].set_xlim([0, 0.33])
|
|
33
33
|
axs[1,0].set_xlabel(r'$n_\text{nuc}$ (fm$^{-3}$)',fontsize='12')
|
|
34
|
-
axs[1,0].set_xlim([0, 0.33])
|
|
35
|
-
axs[0,1].set_xlim([0.5, 1.5])
|
|
36
34
|
axs[1,1].set_xlabel(r'$k_{F_n}$ (fm$^{-1}$)',fontsize='12')
|
|
37
|
-
axs[
|
|
35
|
+
axs[0,0].set_xlim([0, 0.33])
|
|
36
|
+
axs[1,0].set_xlim([0, 0.33])
|
|
37
|
+
axs[0,1].set_xlim([0.5, 1.9])
|
|
38
|
+
axs[1,1].set_xlim([0.5, 1.9])
|
|
38
39
|
#
|
|
39
40
|
axs[0,0].tick_params('x', labelbottom=False)
|
|
40
41
|
axs[0,1].tick_params('x', labelbottom=False)
|
|
@@ -43,16 +44,16 @@ def matter_setupPheno_E_fig( pname, model, band, matter ):
|
|
|
43
44
|
#
|
|
44
45
|
if matter.lower() == 'nm':
|
|
45
46
|
axs[0,0].set_ylabel(r'$E_\text{NM}/A$ (MeV)',fontsize='12')
|
|
46
|
-
axs[0,0].set_ylim([0, 35])
|
|
47
|
-
axs[0,1].set_ylim([0, 15])
|
|
48
47
|
axs[1,0].set_ylabel(r'$E_\text{NM}/E_\text{NRFFG,NM}$',fontsize='12')
|
|
48
|
+
axs[0,0].set_ylim([0, 30])
|
|
49
|
+
axs[0,1].set_ylim([0, 30])
|
|
49
50
|
axs[1,0].set_ylim([0.2, 0.84])
|
|
50
51
|
axs[1,1].set_ylim([0.2, 0.84])
|
|
51
52
|
elif matter.lower() == 'sm':
|
|
52
53
|
axs[0,0].set_ylabel(r'$E_\text{SM}/A$ (MeV)',fontsize='12')
|
|
54
|
+
axs[1,0].set_ylabel(r'$E_\text{SM}/E_\text{NRFFG,SM}$',fontsize='12')
|
|
53
55
|
axs[0,0].set_ylim([-20, 10])
|
|
54
56
|
axs[0,1].set_ylim([-20, 10])
|
|
55
|
-
axs[1,0].set_ylabel(r'$E_\text{SM}/E_\text{NRFFG,SM}$',fontsize='12')
|
|
56
57
|
axs[1,0].set_ylim([-2.0, 0.1])
|
|
57
58
|
axs[1,1].set_ylim([-2.0, 0.1])
|
|
58
59
|
#
|
|
@@ -61,27 +62,36 @@ def matter_setupPheno_E_fig( pname, model, band, matter ):
|
|
|
61
62
|
for param in params:
|
|
62
63
|
#
|
|
63
64
|
pheno = nuda.matter.setupPheno( model = model, param = param )
|
|
65
|
+
#
|
|
66
|
+
check = nuda.matter.setupCheck( eos = pheno, band = band )
|
|
67
|
+
#
|
|
68
|
+
if check.isInside:
|
|
69
|
+
lstyle = 'solid'
|
|
70
|
+
else:
|
|
71
|
+
lstyle = 'dashed'
|
|
72
|
+
#
|
|
64
73
|
if matter.lower() == 'nm':
|
|
65
|
-
if any(pheno.nm_e2a):
|
|
66
|
-
if model == 'Skyrme' and
|
|
67
|
-
axs[0,0].plot( pheno.nm_den, pheno.nm_e2a, linestyle=
|
|
74
|
+
if any(pheno.nm_e2a):
|
|
75
|
+
if model == 'Skyrme' and check.isInside:
|
|
76
|
+
axs[0,0].plot( pheno.nm_den, pheno.nm_e2a, linestyle=lstyle, label=pheno.label )
|
|
77
|
+
elif model == 'Skyrme' and check.isOutside:
|
|
78
|
+
axs[0,0].plot( pheno.nm_den, pheno.nm_e2a, linestyle=lstyle )
|
|
68
79
|
else:
|
|
69
|
-
axs[0,0].plot( pheno.nm_den, pheno.nm_e2a, linestyle=
|
|
70
|
-
|
|
71
|
-
axs[0
|
|
72
|
-
axs[1,
|
|
73
|
-
axs[1,1].plot( pheno.nm_kfn, pheno.nm_e2a/nuda.effg_nr(pheno.nm_kfn), linestyle='solid' )
|
|
80
|
+
axs[0,0].plot( pheno.nm_den, pheno.nm_e2a, linestyle=lstyle, label=pheno.label )
|
|
81
|
+
axs[0,1].plot( pheno.nm_kfn, pheno.nm_e2a, linestyle=lstyle )
|
|
82
|
+
axs[1,0].plot( pheno.nm_den, pheno.nm_e2a/nuda.effg_nr(pheno.nm_kfn), linestyle=lstyle )
|
|
83
|
+
axs[1,1].plot( pheno.nm_kfn, pheno.nm_e2a/nuda.effg_nr(pheno.nm_kfn), linestyle=lstyle )
|
|
74
84
|
elif matter.lower() == 'sm':
|
|
75
85
|
if any(pheno.sm_e2a):
|
|
76
|
-
if model == 'Skyrme' and
|
|
77
|
-
axs[0,0].plot( pheno.sm_den, pheno.sm_e2a, linestyle=
|
|
86
|
+
if model == 'Skyrme' and check.isInside:
|
|
87
|
+
axs[0,0].plot( pheno.sm_den, pheno.sm_e2a, linestyle=lstyle, label=pheno.label )
|
|
88
|
+
elif model == 'Skyrme' and check.isOutside:
|
|
89
|
+
axs[0,0].plot( pheno.sm_den, pheno.sm_e2a, linestyle=lstyle )
|
|
78
90
|
else:
|
|
79
|
-
axs[0,0].plot( pheno.sm_den, pheno.sm_e2a, linestyle=
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
axs[
|
|
83
|
-
axs[1,0].plot( pheno.sm_den, pheno.sm_e2a/nuda.effg_nr(pheno.sm_kf), linestyle='solid' )
|
|
84
|
-
axs[1,1].plot( pheno.sm_kf, pheno.sm_e2a/nuda.effg_nr(pheno.sm_kf), linestyle='solid' )
|
|
91
|
+
axs[0,0].plot( pheno.sm_den, pheno.sm_e2a, linestyle=lstyle, label=pheno.label )
|
|
92
|
+
axs[0,1].plot( pheno.sm_kf, pheno.sm_e2a, linestyle=lstyle )
|
|
93
|
+
axs[1,0].plot( pheno.sm_den, pheno.sm_e2a/nuda.effg_nr(pheno.sm_kf), linestyle=lstyle )
|
|
94
|
+
axs[1,1].plot( pheno.sm_kf, pheno.sm_e2a/nuda.effg_nr(pheno.sm_kf), linestyle=lstyle )
|
|
85
95
|
if nuda.env.verb_output: pheno.print_outputs( )
|
|
86
96
|
if matter.lower() == 'nm':
|
|
87
97
|
axs[0,0].fill_between( band.den, y1=(band.e2a-band.e2a_std), y2=(band.e2a+band.e2a_std), color=band.color, alpha=band.alpha )
|