tud_lbm.io.plotting.contact_angle_plot

Contact-angle history analysis plots.

Classes

ContactAngleLeftPlot

Plot left contact angle over time.

ContactAngleRightPlot

Plot right contact angle over time.

ContactAnglesPairPlot

Render paired left/right contact-angle history.

Module Contents

class tud_lbm.io.plotting.contact_angle_plot.ContactAngleLeftPlot(config: tud_lbm.config.SimulationConfig | None = None)[source]

Bases: tud_lbm.io.plotting._analysis_common._BaseAnalysisPlot

Plot left contact angle over time.

name = 'contact_angle_left'[source]
title = 'Left contact angle vs timestep'[source]
ylabel = 'Contact angle (deg)'[source]
color = 'tab:purple'[source]
required_keys = ('ca_left',)[source]
compute(files: list[pathlib.Path]) dict[str, numpy.ndarray][source]

Compute left contact angle values for each timestep file.

class tud_lbm.io.plotting.contact_angle_plot.ContactAngleRightPlot(config: tud_lbm.config.SimulationConfig | None = None)[source]

Bases: tud_lbm.io.plotting._analysis_common._BaseAnalysisPlot

Plot right contact angle over time.

name = 'contact_angle_right'[source]
title = 'Right contact angle vs timestep'[source]
ylabel = 'Contact angle (deg)'[source]
color = 'tab:red'[source]
required_keys = ('ca_right',)[source]
compute(files: list[pathlib.Path]) dict[str, numpy.ndarray][source]

Compute right contact angle values for each timestep file.

class tud_lbm.io.plotting.contact_angle_plot.ContactAnglesPairPlot(config: tud_lbm.config.SimulationConfig | None = None)[source]

Bases: tud_lbm.io.plotting.base.AnalysisPlot

Render paired left/right contact-angle history.

name = 'contact_angles_pair'[source]
required_keys = ('ca_left', 'ca_right')[source]
compute(files: list[pathlib.Path]) dict[str, numpy.ndarray][source]

Compute left/right contact-angle arrays for all snapshots.

render(ax: matplotlib.axes.Axes, precomputed: dict[str, numpy.ndarray]) None[source]

Draw the paired contact-angle scatter plot.