spectre.Visualization.PlotEllipticConvergence

Functions

plot_elliptic_convergence(h5_file[, fig, ...])

Plot elliptic solver convergence

split_iteration_sequence(data)

Split a dataframe where its index is not strictly increasing.

spectre.Visualization.PlotEllipticConvergence.plot_elliptic_convergence(h5_file, fig=None, linear_residuals_subfile_name='GmresResiduals.dat', nonlinear_residuals_subfile_name='NewtonRaphsonResiduals.dat')

Plot elliptic solver convergence

Parameters:
  • h5_file – The H5 reductions file.

  • fig – Optional. The matplotlib figure to plot in.

  • linear_residuals_subfile_name – The name of the subfile containing the linear solver residuals.

  • nonlinear_residuals_subfile_name – The name of the subfile containing the nonlinear solver residuals.

spectre.Visualization.PlotEllipticConvergence.split_iteration_sequence(data: DataFrame) List[DataFrame]

Split a dataframe where its index is not strictly increasing.

Returns a list of dataframes, where each has a strictly increasing index.