nucleardatapy 0.2.0__py3-none-any.whl → 1.0.0__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/__init__.py +3 -1
- nucleardatapy/astro/setup_gw.py +18 -18
- nucleardatapy/astro/setup_mr.py +9 -1
- nucleardatapy/astro/setup_mup.py +10 -10
- nucleardatapy/corr/setup_EsymDen.py +0 -5
- nucleardatapy/corr/setup_EsymLsym.py +50 -17
- nucleardatapy/corr/setup_KsatQsat.py +170 -69
- nucleardatapy/crust/setup_crust.py +403 -120
- nucleardatapy/data/astro/NICER/J0740+6620.dat +1 -0
- 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-E2A-NM.dat → 2006-BHF-Av18-E2A-NM.dat} +8 -8
- 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/matter/nep/NEPESkyrme.dat +2 -3
- nucleardatapy/data/matter/nep/NEPGSkyrme.dat +7 -0
- nucleardatapy/data/matter/nep/NEPSkyrme.dat +4 -2
- nucleardatapy/data/matter/nep/NEPxEFT.dat +8 -0
- nucleardatapy/data/matter/nep/best67DDSkyrme.dat +28 -0
- nucleardatapy/data/matter/nep/best90DDSkyrme.dat +46 -0
- nucleardatapy/data/matter/nep/best95DDSkyrme.dat +54 -0
- nucleardatapy/data/matter/pheno/ESkyrme/BSk31-NM.dat +996 -996
- nucleardatapy/data/matter/pheno/ESkyrme/BSk31-SM.dat +991 -991
- nucleardatapy/data/matter/pheno/ESkyrme/BSkG4-NM.dat +1002 -0
- nucleardatapy/data/matter/pheno/ESkyrme/BSkG4-SM.dat +1002 -0
- nucleardatapy/data/matter/pheno/Skyrme/BSkG1-NM.dat +102 -0
- nucleardatapy/data/matter/pheno/Skyrme/BSkG1-SM.dat +102 -0
- nucleardatapy/data/matter/pheno/Skyrme/BSkG2-NM.dat +102 -0
- nucleardatapy/data/matter/pheno/Skyrme/BSkG2-SM.dat +102 -0
- nucleardatapy/data/nuclei/masses/Theory/2023-BSkG3.txt +0 -4
- nucleardatapy/data/nuclei/masses/Theory/2025-BSkG4.txt +0 -1
- nucleardatapy/env.py +1 -1
- nucleardatapy/eos/__init__.py +4 -3
- nucleardatapy/eos/setupCC.py +429 -0
- nucleardatapy/eos/setup_am.py +71 -34
- nucleardatapy/eos/setup_am_Beq.py +48 -17
- nucleardatapy/eos/setup_am_Leq.py +81 -50
- nucleardatapy/fig/__init__.py +29 -7
- nucleardatapy/fig/astro_setupGW_fig.py +5 -5
- nucleardatapy/fig/astro_setupMR_fig.py +12 -10
- nucleardatapy/fig/astro_setupMasses_fig.py +4 -4
- nucleardatapy/fig/astro_setupMtov_fig.py +4 -4
- nucleardatapy/fig/astro_setupMup_fig.py +5 -5
- nucleardatapy/fig/corr_setupEsymDen_fig.py +12 -5
- nucleardatapy/fig/corr_setupEsymLsym_fig.py +18 -5
- nucleardatapy/fig/corr_setupKsatQsat_fig.py +19 -15
- nucleardatapy/fig/crust_setupCrust_fig.py +7 -7
- nucleardatapy/fig/eos_setupAMBeq_fig.py +1338 -64
- nucleardatapy/fig/eos_setupAMLeq_fig.py +200 -68
- nucleardatapy/fig/eos_setupAM_asy_lep_fig.py +364 -0
- nucleardatapy/fig/eos_setupAM_asy_nuc_fig.py +337 -0
- nucleardatapy/fig/eos_setupAM_asy_tot_fig.py +343 -0
- nucleardatapy/fig/eos_setupAM_fig.py +470 -47
- nucleardatapy/fig/eos_setupCC_fig.py +240 -0
- nucleardatapy/fig/hnuc_setupChart_fig.py +2 -2
- nucleardatapy/fig/hnuc_setupRE1LExp_fig.py +4 -4
- nucleardatapy/fig/matter_all_fig.py +954 -0
- nucleardatapy/fig/matter_setupCheck_fig.py +103 -0
- nucleardatapy/fig/matter_setupFFGLep_fig.py +70 -0
- nucleardatapy/fig/matter_setupFFGNuc_fig.py +268 -104
- nucleardatapy/fig/matter_setupHIC_fig.py +98 -58
- nucleardatapy/fig/matter_setupMicroEsym_fig.py +267 -51
- nucleardatapy/fig/matter_setupMicro_LP_fig.py +175 -78
- nucleardatapy/fig/matter_setupMicro_band_fig.py +116 -47
- nucleardatapy/fig/matter_setupMicro_effmass_fig.py +264 -34
- nucleardatapy/fig/matter_setupMicro_err_NM_fig.py +41 -18
- nucleardatapy/fig/matter_setupMicro_fig.py +332 -98
- nucleardatapy/fig/matter_setupMicro_gap_fig.py +219 -92
- nucleardatapy/fig/matter_setupNEPStats_fig.py +96 -0
- nucleardatapy/fig/matter_setupPhenoEsym_fig.py +201 -61
- nucleardatapy/fig/matter_setupPheno_fig.py +392 -85
- nucleardatapy/fig/nuc_setupBEExp_chart_fig.py +286 -0
- nucleardatapy/fig/nuc_setupBEExp_fig.py +232 -70
- nucleardatapy/fig/nuc_setupBETheo_fig.py +344 -0
- nucleardatapy/fig/nuc_setupISGMRExp_fig.py +59 -0
- nucleardatapy/fig/nuc_setupRchExp_fig.py +139 -0
- nucleardatapy/fig/nuc_setupRchTheo_fig.py +143 -0
- nucleardatapy/fig/nuc_setupRnpExp_fig.py +88 -0
- nucleardatapy/fig/nuc_setupRnpTheo_fig.py +133 -0
- nucleardatapy/hello.py +6 -0
- nucleardatapy/hnuc/__init__.py +3 -3
- nucleardatapy/hnuc/{setup_be1L_exp.py → setup_re1L_exp.py} +6 -6
- nucleardatapy/hnuc/{setup_be1Xi_exp.py → setup_re1Xi_exp.py} +5 -5
- nucleardatapy/hnuc/{setup_be2L_exp.py → setup_re2L_exp.py} +6 -6
- nucleardatapy/matter/__init__.py +14 -13
- nucleardatapy/matter/setup_check.py +97 -0
- nucleardatapy/matter/setup_ffg.py +72 -38
- nucleardatapy/matter/setup_hic.py +91 -74
- nucleardatapy/matter/setup_micro.py +1698 -1019
- nucleardatapy/matter/setup_micro_band.py +11 -6
- nucleardatapy/matter/setup_micro_effmass.py +55 -2
- nucleardatapy/matter/setup_micro_esym.py +39 -34
- nucleardatapy/matter/setup_micro_gap.py +26 -19
- nucleardatapy/matter/setup_micro_lp.py +20 -19
- nucleardatapy/matter/setup_nep.py +175 -92
- nucleardatapy/matter/{setup_nep_model_dist.py → setup_nep_stat_model.py} +13 -8
- nucleardatapy/matter/{setup_nep_dist.py → setup_nep_stat_models.py} +12 -8
- nucleardatapy/matter/setup_pheno.py +121 -45
- nucleardatapy/matter/setup_pheno_esym.py +14 -19
- nucleardatapy/nuc/__init__.py +2 -2
- nucleardatapy/nuc/setup_be_exp.py +345 -333
- nucleardatapy/nuc/setup_be_theo.py +366 -178
- nucleardatapy/nuc/setup_isgmr_exp.py +4 -4
- 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} +59 -65
- nucleardatapy/nuc/{setup_nskin_theo.py → setup_rnp_theo.py} +35 -39
- nucleardatapy-1.0.0.dist-info/METADATA +553 -0
- {nucleardatapy-0.2.0.dist-info → nucleardatapy-1.0.0.dist-info}/RECORD +156 -128
- {nucleardatapy-0.2.0.dist-info → nucleardatapy-1.0.0.dist-info}/WHEEL +1 -1
- tests/test_corr_setupKsatQsat.py +3 -1
- tests/test_matter_setupMicro.py +37 -10
- nucleardatapy/data/matter/pheno/ESkyrme/BSkG1-NM.dat +0 -1002
- nucleardatapy/data/matter/pheno/ESkyrme/BSkG1-SM.dat +0 -1002
- nucleardatapy/data/matter/pheno/ESkyrme/BSkG2-NM.dat +0 -1002
- nucleardatapy/data/matter/pheno/ESkyrme/BSkG2-SM.dat +0 -1002
- nucleardatapy/fig/matter_ENM_fig.py +0 -119
- nucleardatapy/fig/matter_ESM_fig.py +0 -119
- nucleardatapy/fig/matter_Esym_fig.py +0 -122
- nucleardatapy/fig/matter_setupNEPModelDist_fig.py +0 -68
- nucleardatapy-0.2.0.dist-info/METADATA +0 -115
- /nucleardatapy/data/LandauParameters/micro/{2006-IBHF-NM-AV18.dat → 2006-EBHF-NM-AV18.dat} +0 -0
- /nucleardatapy/data/LandauParameters/micro/{2006-IBHF-SM-AV18.dat → 2006-EBHF-SM-AV18.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-BSK14.dat → 2022-GMRS-BSK14.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-BSK16.dat → 2022-GMRS-BSK16.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-DHSL59.dat → 2022-GMRS-DHSL59.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-DHSL69.dat → 2022-GMRS-DHSL69.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-F0.dat → 2022-GMRS-F0.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-H1.dat → 2022-GMRS-H1.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-H2.dat → 2022-GMRS-H2.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-H3.dat → 2022-GMRS-H3.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-H4.dat → 2022-GMRS-H4.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-H5.dat → 2022-GMRS-H5.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-H7.dat → 2022-GMRS-H7.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-LNS5.dat → 2022-GMRS-LNS5.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-RATP.dat → 2022-GMRS-RATP.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-SGII.dat → 2022-GMRS-SGII.dat} +0 -0
- /nucleardatapy/data/crust/{2022-crustGMRS-SLY5.dat → 2022-GMRS-SLY5.dat} +0 -0
- /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-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/{2013-QMC-NM.dat → 2013-MBPT-NM.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/data/{NeutronSkin/ddrhNskin-208Pb.dat → rnp/ddrhrnp-208Pb.dat} +0 -0
- /nucleardatapy/data/{NeutronSkin/ddrhNskin-48Ca.dat → rnp/ddrhrnp-48Ca.dat} +0 -0
- /nucleardatapy/data/{NeutronSkin/nlrhNskin-208Pb.dat → rnp/nlrhrnp-208Pb.dat} +0 -0
- /nucleardatapy/data/{NeutronSkin/nlrhNskin-48Ca.dat → rnp/nlrhrnp-48Ca.dat} +0 -0
- /nucleardatapy/data/{NeutronSkin/skyrmeNskin-208Pb.dat → rnp/skyrmernp-208Pb.dat} +0 -0
- /nucleardatapy/data/{NeutronSkin/skyrmeNskin-48Ca.dat → rnp/skyrmernp-48Ca.dat} +0 -0
- {nucleardatapy-0.2.0.dist-info → nucleardatapy-1.0.0.dist-info/licenses}/LICENSE +0 -0
- {nucleardatapy-0.2.0.dist-info → nucleardatapy-1.0.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import numpy as np
|
|
2
|
+
import matplotlib.pyplot as plt
|
|
3
|
+
|
|
4
|
+
import nucleardatapy as nuda
|
|
5
|
+
|
|
6
|
+
def eos_setupCC_eos_fig( pname, band, crust_model, core_kind, core_model, core_param ):
|
|
7
|
+
"""
|
|
8
|
+
Plot the EoS with crust and core parts.\
|
|
9
|
+
The plot is 1x1.
|
|
10
|
+
|
|
11
|
+
:param pname: name of the figure (*.png)
|
|
12
|
+
:type pname: str.
|
|
13
|
+
:param table: table.
|
|
14
|
+
:type table: str.
|
|
15
|
+
:param version: version of table to run on.
|
|
16
|
+
:type version: str.
|
|
17
|
+
:param theo_tables: object instantiated on the reference band.
|
|
18
|
+
:type theo_tables: object.
|
|
19
|
+
|
|
20
|
+
"""
|
|
21
|
+
#
|
|
22
|
+
print(f'Plot name: {pname}')
|
|
23
|
+
#
|
|
24
|
+
p_den = 312.0
|
|
25
|
+
p_cen = 12.5
|
|
26
|
+
p_std = 11.0
|
|
27
|
+
#
|
|
28
|
+
fig, axs = plt.subplots(1,1)
|
|
29
|
+
fig.tight_layout() # Or equivalently, "plt.tight_layout()"
|
|
30
|
+
fig.subplots_adjust(left=0.12, bottom=0.12, right=0.95, top=0.95, wspace=0.05, hspace=0.05 )
|
|
31
|
+
#
|
|
32
|
+
axs.set_xlabel(r'$\epsilon_\text{tot}$ (MeV fm$^{-3}$)',fontsize='14')
|
|
33
|
+
axs.set_ylabel(r'$p_\text{tot}$ (MeV fm$^{-3}$)',fontsize='14')
|
|
34
|
+
axs.set_xlim([1.e-2, 2.e3])
|
|
35
|
+
axs.set_ylim([1.e-5, 2.e3])
|
|
36
|
+
#axs.set_tick_params('y', right=True)
|
|
37
|
+
#axs.set_tick_params('x', top=True)
|
|
38
|
+
axs.set_xscale('log')
|
|
39
|
+
axs.set_yscale('log')
|
|
40
|
+
#
|
|
41
|
+
# check the core EOS against the band in NM
|
|
42
|
+
#
|
|
43
|
+
if core_kind == 'micro':
|
|
44
|
+
eos = nuda.eos.setupAMBeq( model = core_model, kind = core_kind )
|
|
45
|
+
elif core_kind == 'pheno':
|
|
46
|
+
eos = nuda.eos.setupAMBeq( model = core_model, param = core_param, kind = core_kind )
|
|
47
|
+
else:
|
|
48
|
+
print('eos_setupCC_fig.py: core_kind ',core_kind,' is ill defined.')
|
|
49
|
+
print('eos_setupCC_fig.py: -- Exit the code --')
|
|
50
|
+
exit()
|
|
51
|
+
#
|
|
52
|
+
check = nuda.matter.setupCheck( eos = eos, band = band )
|
|
53
|
+
#
|
|
54
|
+
if check.isInside:
|
|
55
|
+
lstyle = 'solid'
|
|
56
|
+
else:
|
|
57
|
+
lstyle = 'dashed'
|
|
58
|
+
#
|
|
59
|
+
# plot
|
|
60
|
+
#
|
|
61
|
+
emp = None
|
|
62
|
+
for k in range(0,3):
|
|
63
|
+
if k == 0:
|
|
64
|
+
connect = 'density'
|
|
65
|
+
#emp = 'simple'
|
|
66
|
+
#emp = 'Steiner'
|
|
67
|
+
boundaries = [ 0.016, 0.16 ] # in units of fm-3
|
|
68
|
+
elif k == 1:
|
|
69
|
+
connect = 'epsilon'
|
|
70
|
+
boundaries = [ 15.0, 150.0 ] # in units of MeV fm-3
|
|
71
|
+
elif k == 2:
|
|
72
|
+
connect = 'pressure'
|
|
73
|
+
boundaries = [ 0.1, 1.0 ] # in units of MeV fm-3
|
|
74
|
+
#
|
|
75
|
+
# create the crust+core EOS
|
|
76
|
+
#
|
|
77
|
+
eos_cc = nuda.eos.setupCC( crust_model = crust_model, core_kind=core_kind, core_model = core_model, core_param = core_param, connect = connect, boundaries = boundaries, emp = emp )
|
|
78
|
+
#
|
|
79
|
+
if eos_cc.pre is not None:
|
|
80
|
+
axs.plot( eos_cc.eps, eos_cc.pre, marker='.', linestyle=lstyle, markevery=eos_cc.every, label=eos_cc.label )
|
|
81
|
+
#
|
|
82
|
+
axs.errorbar( p_den, p_cen, yerr=p_std, color='k', linewidth = 3 )
|
|
83
|
+
#
|
|
84
|
+
fig.legend(loc='upper left',bbox_to_anchor=(0.2,0.9),fontsize='10')
|
|
85
|
+
#fig.legend(loc='upper left',bbox_to_anchor=(0.15,1.0),columnspacing=2,fontsize='8',ncol=3,frameon=False)
|
|
86
|
+
#
|
|
87
|
+
if pname is not None:
|
|
88
|
+
plt.savefig(pname, dpi=200)
|
|
89
|
+
plt.close()
|
|
90
|
+
#
|
|
91
|
+
|
|
92
|
+
def eos_setupCC_checkpre_fig( pname, band, crust_model, core_kind, core_model, core_param, connect, boundaries, emp ):
|
|
93
|
+
"""
|
|
94
|
+
Plot the EoS with crust and core parts.\
|
|
95
|
+
The plot is 1x1.
|
|
96
|
+
|
|
97
|
+
:param pname: name of the figure (*.png)
|
|
98
|
+
:type pname: str.
|
|
99
|
+
:param table: table.
|
|
100
|
+
:type table: str.
|
|
101
|
+
:param version: version of table to run on.
|
|
102
|
+
:type version: str.
|
|
103
|
+
:param theo_tables: object instantiated on the reference band.
|
|
104
|
+
:type theo_tables: object.
|
|
105
|
+
|
|
106
|
+
"""
|
|
107
|
+
#
|
|
108
|
+
print(f'Plot name: {pname}')
|
|
109
|
+
#
|
|
110
|
+
p_den = 312.0
|
|
111
|
+
p_cen = 12.5
|
|
112
|
+
p_std = 11.0
|
|
113
|
+
#
|
|
114
|
+
fig, axs = plt.subplots(1,1)
|
|
115
|
+
fig.tight_layout() # Or equivalently, "plt.tight_layout()"
|
|
116
|
+
fig.subplots_adjust(left=0.12, bottom=0.12, right=0.95, top=0.90, wspace=0.05, hspace=0.05 )
|
|
117
|
+
#
|
|
118
|
+
axs.set_xlabel(r'$n_\text{nuc}$ (fm$^{-3}$)')
|
|
119
|
+
axs.set_ylabel(r'$p_\text{tot}$ (MeV fm$^{-3}$)')
|
|
120
|
+
axs.set_xlim([1.e-7, 2.e0])
|
|
121
|
+
axs.set_ylim([1.e-8, 2.e3])
|
|
122
|
+
#axs.set_tick_params('y', right=True)
|
|
123
|
+
#axs.set_tick_params('x', top=True)
|
|
124
|
+
axs.set_xscale('log')
|
|
125
|
+
axs.set_yscale('log')
|
|
126
|
+
#
|
|
127
|
+
# create the crust+core EOS
|
|
128
|
+
#
|
|
129
|
+
eos_cc = nuda.eos.setupCC( crust_model = crust_model, core_kind=core_kind, core_model = core_model, core_param = core_param, connect = connect, boundaries = boundaries, emp = emp )
|
|
130
|
+
#
|
|
131
|
+
# check the core EOS against the band in NM
|
|
132
|
+
#
|
|
133
|
+
if core_kind == 'micro':
|
|
134
|
+
eos = nuda.eos.setupAMBeq( model = core_model, kind = core_kind )
|
|
135
|
+
elif core_kind == 'pheno':
|
|
136
|
+
eos = nuda.eos.setupAMBeq( model = core_model, param = core_param, kind = core_kind )
|
|
137
|
+
else:
|
|
138
|
+
print('eos_setupCC_fig.py: core_kind ',core_kind,' is ill defined.')
|
|
139
|
+
print('eos_setupCC_fig.py: -- Exit the code --')
|
|
140
|
+
exit()
|
|
141
|
+
#
|
|
142
|
+
check = nuda.matter.setupCheck( eos = eos, band = band )
|
|
143
|
+
#
|
|
144
|
+
if check.isInside:
|
|
145
|
+
lstyle = 'solid'
|
|
146
|
+
else:
|
|
147
|
+
lstyle = 'dashed'
|
|
148
|
+
#
|
|
149
|
+
# plot
|
|
150
|
+
#
|
|
151
|
+
if eos_cc.pre is not None:
|
|
152
|
+
axs.plot( eos_cc.den, eos_cc.pre, marker='o', linestyle=lstyle, markevery=eos_cc.every )
|
|
153
|
+
axs.plot( eos_cc.crust_den, eos_cc.crust_pre, marker='x', linestyle=lstyle, markevery=10 )
|
|
154
|
+
axs.plot( eos_cc.core_den, eos_cc.core_pre, marker='+', linestyle=lstyle, markevery=eos_cc.every )
|
|
155
|
+
axs.plot( eos_cc.crux_den, 0.4+eos_cc.crux_pre, marker='s', linestyle=lstyle, markevery=10, color='r' )
|
|
156
|
+
axs.plot( eos_cc.corx_den, 0.8+eos_cc.corx_pre, marker='s', linestyle=lstyle, markevery=eos_cc.every, color='k' )
|
|
157
|
+
#
|
|
158
|
+
#axs.errorbar( p_den, p_cen, yerr=p_std, color='k', linewidth = 3 )
|
|
159
|
+
#
|
|
160
|
+
#fig.legend(loc='upper left',bbox_to_anchor=(0.15,1.0),columnspacing=2,fontsize='8',ncol=5,frameon=False)
|
|
161
|
+
#
|
|
162
|
+
if pname is not None:
|
|
163
|
+
plt.savefig(pname, dpi=200)
|
|
164
|
+
plt.close()
|
|
165
|
+
#
|
|
166
|
+
|
|
167
|
+
def eos_setupCC_checkeos_fig( pname, band, crust_model, core_kind, core_model, core_param, connect, boundaries, emp ):
|
|
168
|
+
"""
|
|
169
|
+
Plot the EoS with crust and core parts.\
|
|
170
|
+
The plot is 1x1.
|
|
171
|
+
|
|
172
|
+
:param pname: name of the figure (*.png)
|
|
173
|
+
:type pname: str.
|
|
174
|
+
:param table: table.
|
|
175
|
+
:type table: str.
|
|
176
|
+
:param version: version of table to run on.
|
|
177
|
+
:type version: str.
|
|
178
|
+
:param theo_tables: object instantiated on the reference band.
|
|
179
|
+
:type theo_tables: object.
|
|
180
|
+
|
|
181
|
+
"""
|
|
182
|
+
#
|
|
183
|
+
print(f'Plot name: {pname}')
|
|
184
|
+
#
|
|
185
|
+
p_den = 312.0
|
|
186
|
+
p_cen = 12.5
|
|
187
|
+
p_std = 11.0
|
|
188
|
+
#
|
|
189
|
+
fig, axs = plt.subplots(1,1)
|
|
190
|
+
fig.tight_layout() # Or equivalently, "plt.tight_layout()"
|
|
191
|
+
fig.subplots_adjust(left=0.12, bottom=0.12, right=0.95, top=0.90, wspace=0.05, hspace=0.05 )
|
|
192
|
+
#
|
|
193
|
+
axs.set_xlabel(r'$\epsilon_\text{tot}$ (MeV fm$^{-3}$)')
|
|
194
|
+
axs.set_ylabel(r'$p_\text{tot}$ (MeV fm$^{-3}$)')
|
|
195
|
+
axs.set_xlim([1.e-4, 3.e3])
|
|
196
|
+
axs.set_ylim([1.e-8, 2.e3])
|
|
197
|
+
#axs.set_tick_params('y', right=True)
|
|
198
|
+
#axs.set_tick_params('x', top=True)
|
|
199
|
+
axs.set_xscale('log')
|
|
200
|
+
axs.set_yscale('log')
|
|
201
|
+
#
|
|
202
|
+
# create the crust+core EOS
|
|
203
|
+
#
|
|
204
|
+
eos_cc = nuda.eos.setupCC( crust_model = crust_model, core_kind=core_kind, core_model = core_model, core_param = core_param, connect = connect, boundaries = boundaries, emp = emp )
|
|
205
|
+
#
|
|
206
|
+
# check the core EOS against the band in NM
|
|
207
|
+
#
|
|
208
|
+
if core_kind == 'micro':
|
|
209
|
+
eos = nuda.eos.setupAMBeq( model = core_model, kind = core_kind )
|
|
210
|
+
elif core_kind == 'pheno':
|
|
211
|
+
eos = nuda.eos.setupAMBeq( model = core_model, param = core_param, kind = core_kind )
|
|
212
|
+
else:
|
|
213
|
+
print('eos_setupCC_fig.py: core_kind ',core_kind,' is ill defined.')
|
|
214
|
+
print('eos_setupCC_fig.py: -- Exit the code --')
|
|
215
|
+
exit()
|
|
216
|
+
#
|
|
217
|
+
check = nuda.matter.setupCheck( eos = eos, band = band )
|
|
218
|
+
#
|
|
219
|
+
if check.isInside:
|
|
220
|
+
lstyle = 'solid'
|
|
221
|
+
else:
|
|
222
|
+
lstyle = 'dashed'
|
|
223
|
+
#
|
|
224
|
+
# plot
|
|
225
|
+
#
|
|
226
|
+
if eos_cc.pre is not None:
|
|
227
|
+
axs.plot( eos_cc.eps, eos_cc.pre, marker='o', linestyle=lstyle, markevery=eos_cc.every )
|
|
228
|
+
axs.plot( eos_cc.crust_eps, eos_cc.crust_pre, marker='x', linestyle=lstyle, markevery=10 )
|
|
229
|
+
axs.plot( eos_cc.core_eps, eos_cc.core_pre, marker='+', linestyle=lstyle, markevery=eos_cc.every )
|
|
230
|
+
axs.plot( eos_cc.crux_eps, 0.4+eos_cc.crux_pre, marker='s', linestyle=lstyle, markevery=10, color='r' )
|
|
231
|
+
axs.plot( eos_cc.corx_eps, 0.8+eos_cc.corx_pre, marker='s', linestyle=lstyle, markevery=eos_cc.every, color='k' )
|
|
232
|
+
#
|
|
233
|
+
#axs.errorbar( p_den, p_cen, yerr=p_std, color='k', linewidth = 3 )
|
|
234
|
+
#
|
|
235
|
+
#fig.legend(loc='upper left',bbox_to_anchor=(0.15,1.0),columnspacing=2,fontsize='8',ncol=5,frameon=False)
|
|
236
|
+
#
|
|
237
|
+
if pname is not None:
|
|
238
|
+
plt.savefig(pname, dpi=200)
|
|
239
|
+
plt.close()
|
|
240
|
+
#
|
|
@@ -32,8 +32,8 @@ def hnuc_setupChart_fig( pname, table1L, table2L, table1Xi ):
|
|
|
32
32
|
fig.tight_layout() # Or equivalently, "plt.tight_layout()"
|
|
33
33
|
fig.subplots_adjust(left=0.12, bottom=0.15, right=None, top=0.95, wspace=0.3, hspace=0.3)
|
|
34
34
|
#
|
|
35
|
-
axs.set_ylabel(r'Proton number $Z$')
|
|
36
|
-
axs.set_xlabel(r'Neutron number $N$')
|
|
35
|
+
axs.set_ylabel(r'Proton number $Z$ (log scale)',fontsize='14')
|
|
36
|
+
axs.set_xlabel(r'Neutron number $N$ (log scale)',fontsize='14')
|
|
37
37
|
axs.set_yscale('log')
|
|
38
38
|
axs.set_xscale('log')
|
|
39
39
|
axs.set_xlim([0.8, 140])
|
|
@@ -3,16 +3,16 @@ import matplotlib.pyplot as plt
|
|
|
3
3
|
|
|
4
4
|
import nucleardatapy as nuda
|
|
5
5
|
|
|
6
|
-
def
|
|
6
|
+
def hnuc_setupRE1LExp_fig( pname, tables ):
|
|
7
7
|
#
|
|
8
8
|
# plot
|
|
9
9
|
#
|
|
10
10
|
fig, axs = plt.subplots(1,1)
|
|
11
11
|
fig.tight_layout() # Or equivalently, "plt.tight_layout()"
|
|
12
|
-
fig.subplots_adjust(left=0.12, bottom=0.15, right=
|
|
12
|
+
fig.subplots_adjust(left=0.12, bottom=0.15, right=0.95, top=0.95, wspace=0.3, hspace=0.3)
|
|
13
13
|
#
|
|
14
|
-
axs.set_ylabel(r'
|
|
15
|
-
axs.set_xlabel(r'$A^{-2/3}$')
|
|
14
|
+
axs.set_ylabel(r'Removal energy $B_\Lambda$ (MeV)',fontsize='14')
|
|
15
|
+
axs.set_xlabel(r'$A^{-2/3}$',fontsize='14')
|
|
16
16
|
axs.set_xlim([0.0, 0.28])
|
|
17
17
|
axs.set_ylim([-5.0, 32.0])
|
|
18
18
|
#
|