Averaged magnetic field versus time

This commit is contained in:
Simon
2020-07-06 18:07:38 +02:00
committed by Noe Brucy
parent d37706495d
commit 9bd55b4085
3 changed files with 98 additions and 2 deletions
+31 -2
View File
@@ -78,12 +78,14 @@ class Plotter(Aggregator, BaseProcessor):
"coldens0": "$\Sigma_0$",
"sfr_avg_window": "window",
"comp_frac": "$\\zeta$",
"bx_bound": "$B_x$",
}
# Conversion table from namelist values (from amses config file) into LaTex strings
value_convert = {
"sfr_avg_window": lambda x: "${:g}$ Myr".format(80 * x),
"comp_frac": lambda x: "${:g}$".format(1 - x),
"bx_bound": lambda x: "${:g}$".format(5.267 * 10 ** (-10) * x),
}
def __init__(
@@ -1066,7 +1068,7 @@ class Plotter(Aggregator, BaseProcessor):
unit=cst.T,
overlays=[self._overlay_B, self._overlay_speed],
),
"Density slice with magnetic field and velocity overlay",
"Magnetic slice with magnetic field and velocity overlay",
dependencies=["B_int", "B_h", "B_v", "speed_h", "speed_v"],
),
"jeans_ratio": PlotRule(
@@ -1142,10 +1144,28 @@ class Plotter(Aggregator, BaseProcessor):
),
"Brho": PlotRule(
self,
partial(self._plot, "/datasets/Brho/rho", "/datasets/Brho/B"),
partial(
self._plot,
"/datasets/Brho/rho",
"/datasets/Brho/B",
label=r"$\mathrm{B} $",
put_time=True,
),
"Brho on a 2D slice ",
dependencies=["Brho"],
),
"Ek_Eb_rho": PlotRule(
self,
partial(
self._plot,
"/datasets/Ek_Eb_rho/rho",
"/datasets/Ek_Eb_rho/Ek_Eb_rho",
label=r"Ek/Eb",
put_time=True,
),
"Ek/Eb on a 2D slice ",
dependencies=["Ek_Eb_rho", "mwa_speed"],
),
"rho_prof": PlotRule(
self,
partial(self._plot, "/profile/axis", "/profile/rho_prof"),
@@ -1256,6 +1276,15 @@ class Plotter(Aggregator, BaseProcessor):
kind="series",
dependencies=["time_sigma"],
),
"mwa_B_int": PlotRule(
self,
partial(
self._plot, "/series/time", "/series/time_mwa_B_int", xunit=cst.Myr
),
"Magnetic intensity average",
kind="series",
dependencies=["time_mwa_B_int"],
),
"max_fluct_coldens": PlotRule(
self,
partial(