pttools.analysis.plot_entropy_grid

Utilities for plotting the entropy and related quantities of bubbles as contour plots

Classes

class pttools.analysis.plot_entropy_grid.DeltaEntropyPlot(grid, w1, w2, w_ref, title, fig=None, ax=None)

Bases: VwAlphaPlot

Plot the relative difference of two entropy values as a contour plot

Parameters:
class pttools.analysis.plot_entropy_grid.DurationPlot(grid, fig=None, ax=None)

Bases: VwAlphaPlot

Plot the time it took to simulate each bubble

Parameters:
class pttools.analysis.plot_entropy_grid.EntropyConservationPlot(grid, diff, fig=None, ax=None)

Bases: VwAlphaPlot

Plot the entropy generation at the wall

Parameters:
class pttools.analysis.plot_entropy_grid.EntropyPlot(grid, entropy, min_level, max_level, diff_level, fig=None, ax=None)

Bases: VwAlphaPlot

Plot the entropy of bubbles as a contour plot

Parameters:
class pttools.analysis.plot_entropy_grid.GieseApproximationPlot(grid, diff, fig=None, ax=None)

Bases: VwAlphaPlot

Plot the Giese approximation vs. simulated value for \( rac{ ilde{v}_+}{ ilde{v}_-}\)

Parameters:
class pttools.analysis.plot_entropy_grid.KappaOmegaSumPlot(grid, fig=None, ax=None)

Bases: VwAlphaPlot

Plot \(\kappa\) + \(\omega\) of bubbles as a contour plot

Parameters:

Functions

pttools.analysis.plot_entropy_grid.compute(bubble)

Compute the entropy quantities of a bubble

Parameters:

bubble (Bubble)

pttools.analysis.plot_entropy_grid.gen_and_plot_entropy(models, v_walls, alpha_ns, min_level, max_level, diff_level, use_bag_solver=False, path=None, single_plot=False)

Generate the entropy plots

Parameters:
  • models (List[Model])

  • v_walls (ndarray)

  • alpha_ns (ndarray)

  • min_level (float)

  • max_level (float)

  • diff_level (float)

  • use_bag_solver (bool)

  • path (str)

  • single_plot (bool)

Return type:

Tuple[Figure, ndarray]

pttools.analysis.plot_entropy_grid.plot_entropy_data(data, v_walls, alpha_ns, min_level, max_level, diff_level, fig=None, ax=None)

Plot entrpy data that is not from a BubbleGridVWAlpha object.

Parameters:
Return type:

Tuple[Figure, Axes]