tud_lbm.io.plotting.velocity
Velocity magnitude and quiver plot operator.
Classes
Render velocity magnitude with a downsampled vector overlay. |
Module Contents
- class tud_lbm.io.plotting.velocity.VelocityPlotOperator(config: tud_lbm.config.SimulationConfig, data_dir: str | pathlib.Path | None = None)[source]
Bases:
tud_lbm.io.plotting.base.PlotOperatorRender velocity magnitude with a downsampled vector overlay.
- is_available(data: dict[str, numpy.ndarray]) bool[source]
Check if velocity data is available in the dataset.
- Parameters:
data – Dictionary containing simulation output data.
- Returns:
True if velocity field ‘u’ is present in data, False otherwise.
- __call__(ax: matplotlib.axes.Axes, data: dict[str, numpy.ndarray], timestep: int) None[source]
Render velocity magnitude with a downsampled vector overlay.
- Parameters:
ax – Matplotlib axes object to plot on.
data – Dictionary containing simulation output data with velocity field.
timestep – Current simulation timestep for display in title.