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.
Files changed (87) hide show
  1. nucleardatapy/astro/setup_mr.py +115 -33
  2. nucleardatapy/create_folder.py +2 -2
  3. nucleardatapy/crust/setup_crust.py +5 -5
  4. nucleardatapy/data/astro/HESS/J1731-347.dat +4 -0
  5. nucleardatapy/data/astro/NICER/J0030+0451.dat +6 -6
  6. nucleardatapy/data/astro/NICER/J0437-4715.dat +4 -3
  7. nucleardatapy/data/astro/NICER/J0614-3329.dat +4 -0
  8. nucleardatapy/data/astro/NICER/J0740+6620.dat +5 -5
  9. nucleardatapy/data/hnuclei/1991-2L-Yamamoto.csv +6 -0
  10. nucleardatapy/data/hnuclei/2013-2L-Ahn.csv +1 -1
  11. nucleardatapy/data/hnuclei/2019-2L-Ekawa.csv +7 -0
  12. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-414-E2A.dat +21 -0
  13. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-414-TD.dat +22 -0
  14. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-450-E2A.dat +20 -0
  15. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-450-TD.dat +22 -0
  16. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-500-E2A.dat +23 -0
  17. nucleardatapy/data/matter/micro/2020-SCGF-NM-N3LO-500-TD.dat +22 -0
  18. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-414-E2A.dat +15 -0
  19. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-414-TD.dat +21 -0
  20. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-450-E2A.dat +15 -0
  21. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-450-TD.dat +21 -0
  22. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-500-E2A.dat +20 -0
  23. nucleardatapy/data/matter/micro/2020-SCGF-SM-N3LO-500-TD.dat +20 -0
  24. nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLO450.dat +28 -0
  25. nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLO500.dat +28 -0
  26. nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLOgo394.dat +28 -0
  27. nucleardatapy/data/matter/micro/2024-ABI-NM-DeltaNNLOgo450.dat +28 -0
  28. nucleardatapy/data/matter/micro/2024-ABI-NM-NNLOsat.dat +28 -0
  29. nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLO450.dat +28 -0
  30. nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLO500.dat +28 -0
  31. nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLOgo394.dat +28 -0
  32. nucleardatapy/data/matter/micro/2024-ABI-SM-DeltaNNLOgo450.dat +28 -0
  33. nucleardatapy/data/matter/micro/2024-ABI-SM-NNLOsat.dat +28 -0
  34. nucleardatapy/fig/astro_setupGW_fig.py +4 -2
  35. nucleardatapy/fig/astro_setupMR_fig.py +14 -8
  36. nucleardatapy/fig/astro_setupMasses_fig.py +4 -2
  37. nucleardatapy/fig/astro_setupMtov_fig.py +6 -2
  38. nucleardatapy/fig/astro_setupMup_fig.py +4 -2
  39. nucleardatapy/fig/corr_setupEsymDen_fig.py +10 -4
  40. nucleardatapy/fig/corr_setupEsymLsym_fig.py +7 -3
  41. nucleardatapy/fig/corr_setupKsatQsat_fig.py +4 -2
  42. nucleardatapy/fig/crust_setupCrust_fig.py +6 -4
  43. nucleardatapy/fig/eos_setupAMBeq_fig.py +162 -134
  44. nucleardatapy/fig/eos_setupAMLeq_fig.py +35 -32
  45. nucleardatapy/fig/eos_setupAM_asy_lep_fig.py +39 -30
  46. nucleardatapy/fig/eos_setupAM_asy_nuc_fig.py +39 -30
  47. nucleardatapy/fig/eos_setupAM_asy_tot_fig.py +39 -30
  48. nucleardatapy/fig/eos_setupAM_fig.py +45 -30
  49. nucleardatapy/fig/eos_setupCC_fig.py +54 -24
  50. nucleardatapy/fig/hnuc_setupChart_fig.py +17 -14
  51. nucleardatapy/fig/hnuc_setupRE1LExp_fig.py +12 -2
  52. nucleardatapy/fig/matter_all_fig.py +55 -38
  53. nucleardatapy/fig/matter_setupCheck_fig.py +6 -3
  54. nucleardatapy/fig/matter_setupFFGLep_fig.py +13 -9
  55. nucleardatapy/fig/matter_setupFFGNuc_fig.py +22 -14
  56. nucleardatapy/fig/matter_setupHIC_fig.py +9 -9
  57. nucleardatapy/fig/matter_setupMicroEsym_fig.py +31 -30
  58. nucleardatapy/fig/matter_setupMicro_LP_fig.py +11 -5
  59. nucleardatapy/fig/matter_setupMicro_band_fig.py +11 -6
  60. nucleardatapy/fig/matter_setupMicro_effmass_fig.py +5 -4
  61. nucleardatapy/fig/matter_setupMicro_err_NM_fig.py +4 -2
  62. nucleardatapy/fig/matter_setupMicro_fig.py +30 -22
  63. nucleardatapy/fig/matter_setupMicro_gap_fig.py +22 -12
  64. nucleardatapy/fig/matter_setupNEPStats_fig.py +13 -3
  65. nucleardatapy/fig/matter_setupPhenoEsym_fig.py +28 -27
  66. nucleardatapy/fig/matter_setupPheno_fig.py +22 -17
  67. nucleardatapy/fig/nuc_setupBEExp_chart_fig.py +40 -31
  68. nucleardatapy/fig/nuc_setupBEExp_fig.py +49 -46
  69. nucleardatapy/fig/nuc_setupBETheo_fig.py +55 -50
  70. nucleardatapy/fig/nuc_setupISGMRExp_fig.py +7 -10
  71. nucleardatapy/fig/nuc_setupRchExp_fig.py +12 -20
  72. nucleardatapy/fig/nuc_setupRchTheo_fig.py +16 -20
  73. nucleardatapy/fig/nuc_setupRnpExp_fig.py +12 -0
  74. nucleardatapy/fig/nuc_setupRnpTheo_fig.py +14 -2
  75. nucleardatapy/hnuc/setup_re2L_exp.py +30 -7
  76. nucleardatapy/matter/setup_micro.py +424 -12
  77. nucleardatapy/matter/setup_micro_esym.py +46 -42
  78. nucleardatapy/matter/setup_nep.py +1 -1
  79. nucleardatapy/matter/setup_pheno.py +10 -6
  80. nucleardatapy/matter/setup_pheno_esym.py +14 -6
  81. nucleardatapy/nuc/setup_be_exp.py +4 -2
  82. nucleardatapy/nuc/setup_be_theo.py +19 -12
  83. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/METADATA +1 -1
  84. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/RECORD +87 -61
  85. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/WHEEL +0 -0
  86. {nucleardatapy-1.0.0.dist-info → nucleardatapy-1.0.1.dist-info}/licenses/LICENSE +0 -0
  87. {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
- The plot is 1x2 with:\
10
- [0,0]: E/A versus den (micro). [0,1]: E/A versus den (pheno).\
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 band: object instantiated on the reference band.
19
- :type band: object.
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
- plt.close()
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
- The plot is 2x2 with:\
212
- [0,0]: Esym versus den. [0,1]: Esym versus kfn.\
213
- [1,0]: Esym/Esym_NRFFG versus den. [1,1]: Esym/Esym_NRFFG versus kfn.\
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 mb: many-body (mb) approach considered.
218
- :type mb: str.
219
- :param models: models to run on.
220
- :type models: array of str.
221
- :param band: object instantiated on the reference band.
222
- :type band: object.
223
- :param matter: can be 'SM' or 'NM'.
224
- :type matter: str.
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
- The plot is 1x2 with:\
345
- [0]: pre versus den (micro). [1]: pre versus den (pheno).\
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 band: object instantiated on the reference band.
354
- :type band: object.
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
- The plot is 1x2 with:\
556
- [0]: pre versus energy-density (micro). [1]: pre versus energy-density (pheno).\
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 band: object instantiated on the reference band.
565
- :type band: object.
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
- The plot is 1x2 with:\
767
- [0]: cs2 versus den (micro). [1]: cs2 versus den (pheno).\
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 band: object instantiated on the reference band.
776
- :type band: object.
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
- Plot nucleonic energy per particle E/A in matter.\
9
- The plot is 1x1 with: E/A versus den.
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
- The plot is 2x2 with:\
12
- [0,0]: E/A versus den. [0,1]: E/A versus kfn.\
13
- [1,0]: pre versus den. [1,1]: pre versus kfn.\
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 den: density.
18
- :type den: float or numpy vector of real numbers.
19
- :param kfn: neutron Fermi momentum.
20
- :type kfn: float or numpy vector of real numbers.
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 E/A and pressure in NM and SM.\
13
- The plot is 2x2 with:\
14
- [0,0]: E/A versus den. [0,1]: E/A versus kfn.\
15
- [1,0]: pre versus den. [1,1]: pre versus kfn.\
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 den: density.
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 kfn: neutron Fermi momentum.
22
- :type kfn: float or numpy vector of real numbers.
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
- The plot is 1x2 with:\
209
- [0]: EOS (pre) versus energy density rho.\
210
- [1]: Sound speed c_s^2 versus energy density rho.\
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 nuclear chart (N versus Z).\
18
- The plot is 1x2 with:\
19
- [0]: nuclear chart.
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 table: table.
24
- :type table: str.
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 nuclear chart (N versus Z).\
10
- The plot is 1x2 with:\
11
- [0]: nuclear chart.
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 table: table.
16
- :type table: str.
17
- :param version: version of table to run on.
18
- :type version: str.
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.5, 3.6])
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.5, 3.6])
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.micro_models_mb(mb)
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.e2a - band.e2a_std),
238
- y2=(band.e2a + band.e2a_std),
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.e2a - band.e2a_std), color="k", linestyle="dashed", visible=True, zorder = 100 )
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.e2a + band.e2a_std), color="k", linestyle="dashed", visible=True, zorder = 100 )
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.e2a - band.e2a_std),
250
- y2=(band.e2a + band.e2a_std),
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.e2a - band.e2a_std), color="k", linestyle="dashed", visible=True, zorder = 100 )
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.e2a + band.e2a_std), color="k", linestyle="dashed", visible=True, zorder = 100 )
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.e2a - band.e2a_std) / nuda.esymffg_nr(band.kf),
262
- y2=(band.e2a + band.e2a_std) / nuda.esymffg_nr(band.kf),
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.e2a - band.e2a_std) / nuda.esymffg_nr(band.kf),
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.e2a + band.e2a_std) / nuda.esymffg_nr(band.kf),
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.e2a - band.e2a_std) / nuda.esymffg_nr(band.kf),
276
- y2=(band.e2a + band.e2a_std) / nuda.esymffg_nr(band.kf),
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.e2a - band.e2a_std) / nuda.esymffg_nr(band.kf),
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.e2a + band.e2a_std) / nuda.esymffg_nr(band.kf),
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=4,
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
- The plot is 2x2 with:\
11
- [0,0]: E/A versus den. [0,1]: E/A versus kfn.\
12
- [1,0]: E/E_NRFFG versus den. [1,1]: E/E_NRFFG versus kfn.\
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 correlation between Esym and Lsym.\
10
- The plot is 1x1 with:\
11
- [0]: Esym - Lsym correlation plot
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 constraints: list of constraints to run on.
16
- :type constraints: array of str.
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
- The plot is 1x2 with:\
11
- [0]: effmass(den)
12
- [1]: effmass(kF)
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
- The plot is 1x1 with:\
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
- The plot is 2x2 with:\
10
- [0,0]: E/A versus den. [0,1]: E/A versus kfn.\
11
- [1,0]: E/E_NRFFG versus den. [1,1]: E/E_NRFFG versus kfn.\
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
- The plot is 2x2 with:\
173
- [0,0]: pre versus den. [0,1]: pre versus kfn.\
174
- [1,0]: pre/pre_NRFFG versus den. [1,1]: pre/pre_NRFFG versus kfn.\
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
- The plot is 1x2 with:\
302
- [0]: cs2 versus den. [1]: cs2 versus kfn.\
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.