tud_lbm.io.plotting.density

Density field plot operator.

Attributes

DENSITY_RATIO_THRESHOLD

Classes

DensityPlotOperator

Render the density field as a 2-D colour map.

Module Contents

tud_lbm.io.plotting.density.DENSITY_RATIO_THRESHOLD = 100[source]
class tud_lbm.io.plotting.density.DensityPlotOperator(config: tud_lbm.config.SimulationConfig, data_dir: str | pathlib.Path | None = None)[source]

Bases: tud_lbm.io.plotting.base.PlotOperator

Render the density field as a 2-D colour map.

name = 'density'[source]
is_available(data: dict[str, numpy.ndarray]) bool[source]

Check if density data is available for rendering.

__call__(ax: matplotlib.axes.Axes, data: dict[str, numpy.ndarray], timestep: int) None[source]

Render the density field as a 2D color map.