tud_lbm.io.plotting.velocity

Velocity magnitude and quiver plot operator.

Classes

VelocityPlotOperator

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.PlotOperator

Render velocity magnitude with a downsampled vector overlay.

name = 'velocity'[source]
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.