tests.paper.plot_plane_paper

\(\xi, v\) plane plotting

Functions

tests.paper.plot_plane_paper.filter_not(arr, mask)

Replace the elements that are False in the mask with np.nan

Parameters:
Return type:

ndarray

tests.paper.plot_plane_paper.get_differing_inds(data, data_ref, i, rtol, atol=0)

Get the indices where \(v\), \(w\) or \(\xi\) values do not meet the given tolerances

Parameters:
Return type:

ndarray

tests.paper.plot_plane_paper.get_label(rtol, atol)
Parameters:
  • rtol (float)

  • atol (float)

Return type:

str

tests.paper.plot_plane_paper.get_solver_name(method)
Parameters:

method (OdeSolver | Type[OdeSolver] | Type[odeint] | str)

Return type:

str

tests.paper.plot_plane_paper.plot_conditions(ax, cs2_s, cs2_b)
Parameters:
  • ax (Axes)

  • cs2_s (float)

  • cs2_b (float)

tests.paper.plot_plane_paper.plot_differing(ax, data, ref, rtol_diffs, atol_diffs)
Parameters:
tests.paper.plot_plane_paper.plot_plane(ax, data_s, data_b=None, method=None, deflag_ref=None, rtol_small_diff=1e-4, rtol_mid_diff=1e-3, rtol_high_diff=1e-2, atol_small_diff=0, atol_mid_diff=0, atol_high_diff=0, tau_backwards_end=-100.0, cs2_s=bubble.const.CS0_2, cs2_b=bubble.const.CS0_2, selected_solutions=True)

Modified from sound-shell-model/paper/python/fig_8r_xi-v_plane.py.

Parameters:
  • ax (Axes)

  • data_s (ndarray)

  • data_b (ndarray)

  • method (OdeSolver | Type[OdeSolver] | Type[odeint] | str)

  • deflag_ref (ndarray)

  • rtol_small_diff (float)

  • rtol_mid_diff (float)

  • rtol_high_diff (float)

  • atol_small_diff (float)

  • atol_mid_diff (float)

  • atol_high_diff (float)

  • tau_backwards_end (float)

  • cs2_s (float)

  • cs2_b (float)

  • selected_solutions (bool)

tests.paper.plot_plane_paper.plot_v_excerpt(ax, v_wall, alpha_plus, n_xi=500)

Plots parts of solution obtained by integration of fluid equations. Supersonic deflagration solution comes in two parts, ahead and behind wall, each with about npts values.

Parameters:
  • ax (Axes)

  • v_wall (float)

  • alpha_plus (float)

  • n_xi (int)

tests.paper.plot_plane_paper.set_invalid_v_to_nan(v)
Parameters:

v (ndarray)

tests.paper.plot_plane_paper.v_ahead_max(xi)

Maximum fluid velocity allowed