Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
ParticlesDt.py
1from .StandardPlotHelper import StandardPlotHelper
2
3
4def SliceDtPart(
5 model,
6 ext_r,
7 nx,
8 ny,
9 ex,
10 ey,
11 center,
12 analysis_folder,
13 analysis_prefix,
14 do_normalization=True,
15 min_normalization=1e-9,
16):
17 def compute_dt_part_slice(helper):
18 if not model.get_current_config().should_save_dt_to_fields():
19 raise ValueError("dt_part is not saved to fields")
20 return helper.slice_render("dt_part", "f64", do_normalization, min_normalization)
21
22 return StandardPlotHelper(
23 model,
24 ext_r,
25 nx,
26 ny,
27 ex,
28 ey,
29 center,
30 analysis_folder,
31 analysis_prefix,
32 compute_function=compute_dt_part_slice,
33 )