spectre.Visualization.PlotPowerMonitors¶
Functions
|
Find entry in 'block_or_group_names' that corresponds to the 'block_id' |
Tensor components of the GH evolved variables. |
|
|
|
|
Plot spherical-harmonic power monitors of an evolution system. |
|
Tensor components of the (Curved)ScalarWave evolved variables. |
- spectre.Visualization.PlotPowerMonitors.find_block_or_group(block_id: int, block_or_group_names: Sequence[str], domain: Domain1D | Domain2D | Domain3D) int | None¶
Find entry in ‘block_or_group_names’ that corresponds to the ‘block_id’
- spectre.Visualization.PlotPowerMonitors.gh_sh_tensor_component_names(spacetime_metric_name: str, pi_name: str, phi_name: str)¶
Tensor components of the GH evolved variables.
- spectre.Visualization.PlotPowerMonitors.plot_power_monitors(volfiles: H5Vol | Iterable[H5Vol], obs_id: int | None, tensor_components: Sequence[str], block_or_group_names: Sequence[str], domain: Domain1D | Domain2D | Domain3D, dimension_labels: Sequence[str] = ['$\\xi$', '$\\eta$', '$\\zeta$'], element_patterns: Sequence[str] | None = None, skip_filtered_modes: int = 0, figsize: Tuple[float, float] | None = None)¶
- spectre.Visualization.PlotPowerMonitors.plot_sh_power_monitors(volfiles: H5Vol | Iterable[H5Vol], obs_id: int, block_or_group_names: Sequence[str], domain: Domain3D, system: str, tensor_names: Dict[str, str] | None = None, variables_to_plot: Sequence[str] | None = None, element_patterns: Sequence[str] | None = None, fixed_y_limits: Tuple[float, float] | None = None, figsize: Tuple[float, float] | None = None)¶
Plot spherical-harmonic power monitors of an evolution system.
Computes TensorYlm-basis power monitors of the evolved variables on each shell (SphericalHarmonic) and filled-sphere (ZernikeB3) element, and plots their radial and angular power in one column per variable.
- Parameters:
system – One of the keys of _SH_SYSTEMS.
tensor_names – Volume-data names of the evolved variables, keyed by variable name. Variables not listed are read under their own name. Keys that are not variables of the ‘system’ are ignored.
variables_to_plot – Variables to plot. Defaults to all variables of the ‘system’.
- spectre.Visualization.PlotPowerMonitors.sw_sh_tensor_component_names(psi_name: str, pi_name: str, phi_name: str)¶
Tensor components of the (Curved)ScalarWave evolved variables.