ogstools.logparser.plots module#
- ogstools.logparser.plots.plot_convergence_order(df, n=3, x_metric='time_step', **kwargs)[source]#
Create a heatmap of the nonlinear solver convergence order.
see:
convergence_order_per_ts_iteration()In order to estimate the convergence order we need to take into account multiple values and thus cannot assign each iteration a convergence order. Only for iterations i of i >= n an order is calculated and plotted. Per default the scale is limited to a range of 0 to 2 to limit the view to meaningful data. Set the keyword arguments vmin and vmax`to `None to see the entire scale.- Parameters:
- Return type:
- Keyword Arguments:
see:
heatmap())
- Return type:
- Returns:
A figure with a heatmap of the nonlinear solver convergence order.
- ogstools.logparser.plots.plot_convergence(df, metric='dx', x_metric='time_step', **kwargs)[source]#
Create a heatmap of the nonlinear solver convergence data.
The individual values in the heatmap correspond to the top right indices on the x- and y-axis. E.g. the very first entry which fills the space between timesteps 0-1 and iteration 0-1 belongs to the first iteration of the first timestep. Thus we immediately read on which iteration a timestep converged and on which timestep the simulation ended. Per default logarithmic scaling is used. Set log_scaled to False to use linear scaling.
- Parameters:
- Return type:
- Keyword Arguments:
see:
heatmap())
- Return type:
- Returns:
A figure with a heatmap of the nonlinear solver convergence data.