Skip to content

Note

Click here to download the full example code

Solution verification of the analytic Tan open-hole model

Assess the discretization error of the :class:TanOpenHole model with the DiscretizationSolutionVerification tool, which is based on the Richardson extrapolation 1 2, and compare two field-derived quantities:

  • sigma_xx_probe: sigma_xx bilinearly interpolated at a fixed point just outside the hole. It converges smoothly as the grid is refined.
  • sigma_xx_peak: the maximum of sigma_xx over the grid nodes. Because the node that happens to fall closest to the stress concentration jumps around as the grid changes, this quantity is non-monotone -- a sawtooth. Richardson extrapolation cannot be computed for a sawtooth, so the tool will fall back to a palliative estimator.

From the analytic solution, the model computes grid nodes evaluations and interpolates a field. Any value at a grid node is therefore exact, but coarse meshing degrades any other value querried from the discrete field. We look at two of them, plus the model's own native scalar outputs as a baseline.

... note::

This model is here used an illustrative use-case case for solution verification,
despite having a working principle different from
what is usually prone to solution verification.
from __future__ import annotations

import logging

import numpy as np
import plotly.graph_objects as go
from gemseo.utils.directory_creator import DirectoryNamingMethod
from numpy import atleast_1d
from pandas import DataFrame
from plotly.subplots import make_subplots

from vimseo import EXAMPLE_RUNS_DIR
from vimseo.api import activate_logger
from vimseo.api import create_model
from vimseo.core.model_result import ModelResult
from vimseo.core.model_settings import IntegratedModelSettings
from vimseo.tools.verification.solution_verification import (
    DiscretizationSolutionVerification,
)

First we set the logger level:

activate_logger(level=logging.INFO)

The model to verify is the analytic Tan open-hole model, loaded in tension:

model_name = "TanOpenHole"
load_case = "Tension"
model = create_model(
    model_name,
    load_case,
    model_options=IntegratedModelSettings(
        directory_archive_root=EXAMPLE_RUNS_DIR / "archive/solution_verification",
        directory_scratch_root=EXAMPLE_RUNS_DIR / "scratch/solution_verification",
        cache_file_path=EXAMPLE_RUNS_DIR
        / f"caches/solution_verification/{model_name}_{load_case}_cache.hdf",
    ),
)

We define a set of grid resolutions (points per direction), from coarse to fine:

grid_resolutions = [25, 33, 50, 66, 100, 200]

Helper function to place two plotly figures side by side in a single figure.

def side_by_side(fig_left, fig_right, left_title, right_title, y_title):
    """Place the traces of two plotly figures in a single 1x2 subplot figure."""
    combined = make_subplots(rows=1, cols=2, subplot_titles=(left_title, right_title))
    for trace in fig_left.data:
        combined.add_trace(trace, row=1, col=1)
    for trace in fig_right.data:
        # Avoid duplicating the shared legend entries in the right-hand panel.
        trace.showlegend = False
        combined.add_trace(trace, row=1, col=2)
    combined.update_xaxes(title_text="dx")
    combined.update_yaxes(title_text=y_title, row=1, col=1)
    # ``make_subplots`` centres each panel title over its half-width column, so
    # keep them short (see call sites) and a touch smaller than the default so
    # they do not run into each other in the middle gutter.
    combined.update_annotations(font_size=13)
    return combined

Generate the convergence data for the four quantities of interest. The model is executed once for each grid resolution, and the four quantities (the two field-derived ones and the two native hole-edge stresses) are collected in a single table.

model.execute({"grid_resolution": atleast_1d(grid_resolutions[0])})
input_data = model.get_input_data()
length = float(input_data["length"][0])
width = float(input_data["width"][0])
radius = float(input_data["radius"][0])
probe_x = 0.5 * length
probe_y = 0.5 * width + radius + 3.0

dx_values = []
probe_stresses = []
peak_stresses = []
sigma_xx_r_values = []
sigma_xx_d0_values = []
model_results = {}
for grid_resolution in grid_resolutions:
    output_data = model.execute({"grid_resolution": atleast_1d(grid_resolution)})
    result = ModelResult.from_data(
        {"outputs": output_data, "inputs": model.get_input_data()},
        model=model,
        load_fields=True,
    )
    field = result.fields["flux"][0]
    dx_values.append(float(output_data["dx"][0]))
    probe_stresses.append(field.probe("sigma_xx", probe_x, probe_y))
    peak_stresses.append(float(np.nanmax(field.point_data["sigma_xx"])))
    sigma_xx_r_values.append(float(output_data["sigma_xx_r"][0]))
    sigma_xx_d0_values.append(float(output_data["sigma_xx_d0"][0]))
    model_results[grid_resolution] = result

convergence_table = DataFrame({
    "dx": dx_values,
    "sigma_xx_probe": probe_stresses,
    "sigma_xx_peak": peak_stresses,
    "sigma_xx_r": sigma_xx_r_values,
    "sigma_xx_d0": sigma_xx_d0_values,
})
print(convergence_table)

Out:

    INFO - 09:44:11: Current scratch directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\scratch\solution_verification\TanOpenHole\Tension\1.
    INFO - 09:44:11: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\solution_verification\TanOpenHole\Tension\1.
    INFO - 09:44:11: Current scratch directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\scratch\solution_verification\TanOpenHole\Tension\2.
    INFO - 09:44:11: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\solution_verification\TanOpenHole\Tension\2.
    INFO - 09:44:11: Current scratch directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\scratch\solution_verification\TanOpenHole\Tension\3.
    INFO - 09:44:11: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\solution_verification\TanOpenHole\Tension\3.
    INFO - 09:44:11: Current scratch directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\scratch\solution_verification\TanOpenHole\Tension\4.
    INFO - 09:44:11: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\solution_verification\TanOpenHole\Tension\4.
    INFO - 09:44:11: Current scratch directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\scratch\solution_verification\TanOpenHole\Tension\5.
    INFO - 09:44:11: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\solution_verification\TanOpenHole\Tension\5.
    INFO - 09:44:11: Current scratch directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\scratch\solution_verification\TanOpenHole\Tension\6.
    INFO - 09:44:11: Current archive directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\model_runs\archive\solution_verification\TanOpenHole\Tension\6.
         dx  sigma_xx_probe  sigma_xx_peak   sigma_xx_r  sigma_xx_d0
0  3.333333     1312.692749    1998.087574  3137.629147   2094.95564
1  2.500000     1298.612676    1998.087574  3137.629147   2094.95564
2  1.632653     1296.809439    1753.841182  3137.629147   2094.95564
3  1.230769     1295.471224    1816.365910  3137.629147   2094.95564
4  0.808081     1295.369808    1937.173531  3137.629147   2094.95564
5  0.402010     1294.023377    2038.068734  3137.629147   2094.95564

The table is passed to the tool as it is. Tools accept the data a user already has -- a mapping of variable names to values, a DataFrame, or a GEMSEO Dataset -- so the dictionary built above would work just as well here. The tool knows which variable plays which role from its own settings, so nothing has to be tagged as an input or an output.

A smoothly converging quantity

We first verify the smooth probe stress. It converges monotonically, so the power-law fit recovers the converged stress with a small residual. The three-point Richardson cross-validation may still return nan here: it is fragile as soon as one grid triplet is ill-conditioned, which is one of the motivations for the robust estimators.

verificator = DiscretizationSolutionVerification(
    directory_naming_method=DirectoryNamingMethod.NUMBERED,
    working_directory="DiscretizationSolutionVerification_probe",
)
verificator.execute(
    simulated_data=convergence_table,
    element_size_variable_name="dx",
    abscissa_name="dx",
    output_name="sigma_xx_probe",
)
extrapolation = verificator.result.extrapolation
print("Richardson q_extrap:", extrapolation["q_extrap"])
print(
    f"Power-law fit: q_converged={extrapolation['q_converged_fit']:.2f}, "
    f"order={extrapolation['order_fit']:.2f}, rmse={extrapolation['fit_rmse']:.2g}"
)
print(
    f"Robust median: q_converged={extrapolation['q_converged_robust']:.2f} "
    f"+/- {extrapolation['q_converged_robust_band']:.2g}"
)
# The tool selects Richardson when available and falls back to a palliative
# otherwise; ``q_converged_method`` says which one was used.
print(
    f"Selected converged value: {extrapolation['q_converged']:.2f} "
    f"(method: {extrapolation['q_converged_method']})"
)

Out:

C:\Users\sebastien.bocquet\Dev\vd017\.tox\doc\Lib\site-packages\pydantic\main.py:463: UserWarning:

Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `str` - serialized value may not be as expected [input_value=(FieldInfo(annotation=Non... assess convergence.'),), input_type=tuple])

    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_probe
    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_probe\CustomDOETool
 WARNING - 09:44:12: Richardson extrapolation could not be computed (returned nan); falling back to the palliative 'power_law_fit (palliative)' for output 'sigma_xx_probe'. This is not the reference Richardson method.
Richardson q_extrap: nan
Power-law fit: q_converged=1294.77, order=4.00, rmse=0.92
Robust median: q_converged=1295.37 +/- 0.15
Selected converged value: 1294.77 (method: power_law_fit (palliative))

The convergence-fit plot shows the sampled stress, the fitted power law and the converged-value estimates at a null element size:

figures = verificator.plot_results(
    verificator.result,
    save=False,
    show=True,
    directory_path=verificator.working_directory,
)
figures["convergence_fit_plotter"]

Out:

    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_probe
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="b7d08553-ff5f-4958-88da-191a2f603dc3" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("b7d08553-ff5f-4958-88da-191a2f603dc3")) {                    Plotly.newPlot(                        "b7d08553-ff5f-4958-88da-191a2f603dc3",                        [{"error_y":{"array":[0.3506248982275798],"type":"data"},"line":{"color":"chocolate"},"marker":{"size":11,"symbol":"square"},"mode":"markers","name":"converged (power_law_fit (palliative))","showlegend":true,"x":[0.0],"y":[1294.7659549355624],"type":"scatter"},{"line":{"color":"blue","dash":"dash","width":2},"mode":"lines+markers","name":"fold[2.5    1.6327 1.2308 0.8081 0.402 ]","showlegend":true,"x":[2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[1298.6126764271248,1296.8094386216826,1295.4712244795198,1295.3698079185901,1294.0233767083528],"type":"scatter"},{"line":{"color":"blue","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[1294.0233767083528,1293.4013344773641],"type":"scatter"},{"line":{"color":"red","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 1.6327 1.2308 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[1312.6927490695966,1296.8094386216826,1295.4712244795198,1295.3698079185901,1294.0233767083528],"type":"scatter"},{"line":{"color":"red","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[1294.0233767083528,1294.3780602126342],"type":"scatter"},{"line":{"color":"black","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.2308 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[1312.6927490695966,1298.6126764271248,1295.4712244795198,1295.3698079185901,1294.0233767083528],"type":"scatter"},{"line":{"color":"black","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[1294.0233767083528,1295.4213974790132],"type":"scatter"},{"line":{"color":"green","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,0.8080808080808081,0.4020100502512563],"y":[1312.6927490695966,1298.6126764271248,1296.8094386216826,1295.3698079185901,1294.0233767083528],"type":"scatter"},{"line":{"color":"green","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[1294.0233767083528,1296.73004125082],"type":"scatter"},{"line":{"color":"orange","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 1.2308 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.4020100502512563],"y":[1312.6927490695966,1298.6126764271248,1296.8094386216826,1295.4712244795198,1294.0233767083528],"type":"scatter"},{"line":{"color":"orange","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[1294.0233767083528,1296.73004125082],"type":"scatter"},{"line":{"color":"magenta","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 1.2308 0.8081]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081],"y":[1312.6927490695966,1298.6126764271248,1296.8094386216826,1295.4712244795198,1295.3698079185901],"type":"scatter"},{"line":{"color":"magenta","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.8080808080808081,0.0],"y":[1295.3698079185901,1296.73004125082],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"title":{"text":""},"xaxis":{"title":{"text":"dx"},"showgrid":true},"yaxis":{"title":{"text":"sigma_xx_probe"},"showgrid":true}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_probe
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="e23d2ffb-6ec5-410d-8010-3a239714e438" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("e23d2ffb-6ec5-410d-8010-3a239714e438")) {                    Plotly.newPlot(                        "e23d2ffb-6ec5-410d-8010-3a239714e438",                        [{"marker":{"color":"blue"},"mode":"lines+markers","name":"sigma_xx_probe","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[1312.6927490695966,1298.6126764271248,1296.8094386216826,1295.4712244795198,1295.3698079185901,1294.0233767083528],"type":"scatter"},{"line":{"color":"green","dash":"dash"},"mode":"lines","name":"power-law fit palliative (order=4.00, rmse=0.92)","x":[0.0,0.03367003367003367,0.06734006734006734,0.10101010101010101,0.13468013468013468,0.16835016835016836,0.20202020202020202,0.23569023569023567,0.26936026936026936,0.30303030303030304,0.3367003367003367,0.37037037037037035,0.40404040404040403,0.4377104377104377,0.47138047138047134,0.5050505050505051,0.5387205387205387,0.5723905723905723,0.6060606060606061,0.6397306397306397,0.6734006734006734,0.7070707070707071,0.7407407407407407,0.7744107744107744,0.8080808080808081,0.8417508417508417,0.8754208754208754,0.9090909090909091,0.9427609427609427,0.9764309764309764,1.0101010101010102,1.0437710437710437,1.0774410774410774,1.1111111111111112,1.1447811447811447,1.1784511784511784,1.2121212121212122,1.2457912457912457,1.2794612794612794,1.3131313131313131,1.3468013468013469,1.3804713804713804,1.4141414141414141,1.4478114478114479,1.4814814814814814,1.5151515151515151,1.5488215488215489,1.5824915824915824,1.6161616161616161,1.6498316498316499,1.6835016835016834,1.7171717171717171,1.7508417508417509,1.7845117845117844,1.8181818181818181,1.8518518518518519,1.8855218855218854,1.9191919191919191,1.9528619528619529,1.9865319865319866,2.0202020202020203,2.0538720538720536,2.0875420875420874,2.121212121212121,2.154882154882155,2.1885521885521886,2.2222222222222223,2.255892255892256,2.2895622895622894,2.323232323232323,2.356902356902357,2.3905723905723906,2.4242424242424243,2.457912457912458,2.4915824915824913,2.525252525252525,2.558922558922559,2.5925925925925926,2.6262626262626263,2.65993265993266,2.6936026936026938,2.727272727272727,2.760942760942761,2.7946127946127945,2.8282828282828283,2.861952861952862,2.8956228956228958,2.929292929292929,2.962962962962963,2.9966329966329965,3.0303030303030303,3.063973063973064,3.0976430976430978,3.131313131313131,3.164983164983165,3.1986531986531985,3.2323232323232323,3.265993265993266,3.2996632996632997,3.3333333333333335],"y":[1294.7659549355624,1294.7659551173672,1294.765957844439,1294.7659696617502,1294.7660014775884,1294.7660685635553,1294.7661905545688,1294.7663914488603,1294.7666996079774,1294.767147756782,1294.7677729834506,1294.7686167394756,1294.7697248396635,1294.771147462136,1294.7729391483301,1294.7751588029969,1294.777869694203,1294.78113945333,1294.7850400750744,1294.7896479174474,1294.795043701775,1294.8013125126986,1294.8085437981742,1294.816831369473,1294.826273401181,1294.8369724311988,1294.8490353607422,1294.8625734543425,1294.8777023398447,1294.89454200841,1294.9132168145138,1294.9338554759465,1294.9565910738133,1294.9815610525352,1295.0089072198468,1295.0387757467988,1295.071317167756,1295.1066863803987,1295.1450426457218,1295.1865495880354,1295.2313751949641,1295.279691817448,1295.331676169742,1295.3875093294153,1295.4473767373527,1295.5114681977536,1295.5799778781327,1295.6531043093194,1295.7310503854578,1295.8140233640074,1295.9022348657425,1295.9959008747517,1296.0952417384397,1296.200482167525,1296.3118512360418,1296.4295823813386,1296.5539134040798,1296.6850864682438,1296.8233481011239,1296.9689491933293,1297.1221449987831,1297.2831951347239,1297.452363581705,1297.6299186835947,1297.8161331475765,1298.0112840441484,1298.2156528071234,1298.4295252336296,1298.65319148411,1298.8869460823225,1299.13108791534,1299.38592023355,1299.6517506506557,1299.9288911436743,1300.2176580529383,1300.5183720820955,1300.8313582981084,1301.1569461312538,1301.4954693751247,1301.8472661866278,1302.2126790859854,1302.5920549567347,1302.9857450457275,1303.394104963131,1303.817494682427,1304.256278540412,1304.7108252371984,1305.1815078362122,1305.6687037641955,1306.1727948112045,1306.6941671306108,1307.2332112391007,1307.7903220166759,1308.3658987066522,1308.9603449156612,1309.5740686136487,1310.207482133876,1310.861002172919,1311.5350497906684,1312.2300504103305],"type":"scatter"},{"marker":{"color":"green","size":10,"symbol":"square"},"mode":"markers","name":"q converged (power-law fit)","x":[0.0],"y":[1294.7659549355624],"type":"scatter"},{"error_y":{"array":[0.15036019323436198],"type":"data"},"marker":{"color":"chocolate","size":10,"symbol":"diamond"},"mode":"markers","name":"q converged (robust median)","x":[0.0],"y":[1295.3698079185901],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"title":{"text":"Converged sigma_xx_probe = 1295  (method: power_law_fit (palliative))"},"xaxis":{"title":{"text":"dx"}},"yaxis":{"title":{"text":"sigma_xx_probe"}}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_probe
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="2f6d6f11-5bb8-4d05-a285-98ebfaf63f8f" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("2f6d6f11-5bb8-4d05-a285-98ebfaf63f8f")) {                    Plotly.newPlot(                        "2f6d6f11-5bb8-4d05-a285-98ebfaf63f8f",                        [{"marker":{"color":"blue"},"mode":"markers","name":"|sigma_xx_probe-extrap|","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[17.926794134034253,3.846721491562448,2.0434836861202257,0.7052695439574563,0.6038529830277639,0.7425782272096058],"type":"scatter"},{"line":{"color":"green","dash":"dash"},"mode":"lines","name":"order 1","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[6.157211133946315,4.617908350459736,3.0157768819328887,2.2734318033032546,1.492657244593046,0.7425782272096058],"type":"scatter"},{"line":{"color":"black","dash":"dash"},"mode":"lines","name":"order 2","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[51.05354231897152,28.717617554421476,12.24774692866622,6.960198905497656,3.0003918350910714,0.7425782272096056],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"xaxis":{"type":"log","title":{"text":"dx"},"minor":{"ticks":"inside","ticklen":6,"showgrid":true}},"yaxis":{"type":"log","minor":{"ticks":"inside","ticklen":6,"showgrid":true}}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_probe
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="718428df-42ca-42ed-b7e8-f384169bbf05" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("718428df-42ca-42ed-b7e8-f384169bbf05")) {                    Plotly.newPlot(                        "718428df-42ca-42ed-b7e8-f384169bbf05",                        [{"marker":{"color":"blue"},"mode":"lines+markers","name":"sigma_xx_probe","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[0.013845586583195594,0.0029709782504699013,0.0015782649198726618,0.0005447081314341139,0.00046638002854949666,-0.0005735231331801292],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"yaxis":{"minor":{"ticks":"inside","ticklen":6,"showgrid":true},"title":{"text":"Relative error on sigma_xx_probe"}},"xaxis":{"minor":{"ticks":"inside","ticklen":6,"showgrid":true},"title":{"text":"dx"}}},                        {"responsive": true}                    )                };                            </script>        </div>'}

A sawtooth quantity

We now verify the peak stress. Its non-monotone (sawtooth) behaviour makes the three-point Richardson extrapolation fail (nan), so the Richardson-based indicators are unavailable:

verificator_peak = DiscretizationSolutionVerification(
    directory_naming_method=DirectoryNamingMethod.NUMBERED,
    working_directory="DiscretizationSolutionVerification_peak",
)
verificator_peak.execute(
    simulated_data=convergence_table,
    element_size_variable_name="dx",
    abscissa_name="dx",
    output_name="sigma_xx_peak",
)
extrapolation_peak = verificator_peak.result.extrapolation
print(
    "Richardson q_extrap (nan expected for sawtooth):", extrapolation_peak["q_extrap"]
)
# The residual and band are now much larger than for the smooth probe, correctly
# flagging that this converged value is far less trustworthy.
print(
    f"Power-law fit: q_converged={extrapolation_peak['q_converged_fit']:.2f}, "
    f"order={extrapolation_peak['order_fit']:.2f}, rmse={extrapolation_peak['fit_rmse']:.2g}"
)
print(
    f"Robust median: q_converged={extrapolation_peak['q_converged_robust']:.2f} "
    f"+/- {extrapolation_peak['q_converged_robust_band']:.2g}"
)
# Richardson failed here, so the tool falls back to a palliative and says so.
print(
    f"Selected converged value: {extrapolation_peak['q_converged']:.2f} "
    f"(method: {extrapolation_peak['q_converged_method']})"
)

Out:

C:\Users\sebastien.bocquet\Dev\vd017\.tox\doc\Lib\site-packages\pydantic\main.py:463: UserWarning:

Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `str` - serialized value may not be as expected [input_value=(FieldInfo(annotation=Non... assess convergence.'),), input_type=tuple])

    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_peak
    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_peak\CustomDOETool
 WARNING - 09:44:12: Richardson extrapolation could not be computed (returned nan); falling back to the palliative 'power_law_fit (palliative)' for output 'sigma_xx_peak'. This is not the reference Richardson method.
Richardson q_extrap (nan expected for sawtooth): nan
Power-law fit: q_converged=1897.80, order=4.00, rmse=96
Robust median: q_converged=1937.17 +/- 1.5e+02
Selected converged value: 1897.80 (method: power_law_fit (palliative))

Two plots are produced. The convergence-fit plot (on all grid points) stays informative: it overlays the power-law fit (with its fitted order and residual) and the model-free median of the finest grids (with its uncertainty band) on the sawtooth data:

figures_peak = verificator_peak.plot_results(
    verificator_peak.result,
    save=False,
    show=True,
    directory_path=verificator_peak.working_directory,
)
figures_peak["convergence_fit_plotter"]

Out:

    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_peak
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="47823311-2f9f-40bf-9de4-ae437e32b73e" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("47823311-2f9f-40bf-9de4-ae437e32b73e")) {                    Plotly.newPlot(                        "47823311-2f9f-40bf-9de4-ae437e32b73e",                        [{"error_y":{"array":[193.33074382605048],"type":"data"},"line":{"color":"chocolate"},"marker":{"size":11,"symbol":"square"},"mode":"markers","name":"converged (power_law_fit (palliative))","showlegend":true,"x":[0.0],"y":[1897.8033735492404],"type":"scatter"},{"line":{"color":"blue","dash":"dash","width":2},"mode":"lines+markers","name":"fold[2.5    1.6327 1.2308 0.8081 0.402 ]","showlegend":true,"x":[2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[1998.0875744127472,1753.8411818590084,1816.3659098216335,1937.173530737571,2038.068733813785],"type":"scatter"},{"line":{"color":"blue","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[2038.068733813785,2583.456377285287],"type":"scatter"},{"line":{"color":"red","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 1.6327 1.2308 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[1998.0875744127472,1753.8411818590084,1816.3659098216335,1937.173530737571,2038.068733813785],"type":"scatter"},{"line":{"color":"red","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[2038.068733813785,2310.683343691386],"type":"scatter"},{"line":{"color":"black","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.2308 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[1998.0875744127472,1998.0875744127472,1816.3659098216335,1937.173530737571,2038.068733813785],"type":"scatter"},{"line":{"color":"black","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[2038.068733813785,1938.2581753454197],"type":"scatter"},{"line":{"color":"green","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,0.8080808080808081,0.4020100502512563],"y":[1998.0875744127472,1998.0875744127472,1753.8411818590084,1937.173530737571,2038.068733813785],"type":"scatter"},{"line":{"color":"green","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[2038.068733813785,1922.668992060577],"type":"scatter"},{"line":{"color":"orange","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 1.2308 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.4020100502512563],"y":[1998.0875744127472,1998.0875744127472,1753.8411818590084,1816.3659098216335,2038.068733813785],"type":"scatter"},{"line":{"color":"orange","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[2038.068733813785,1885.832330312807],"type":"scatter"},{"line":{"color":"magenta","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 1.2308 0.8081]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081],"y":[1998.0875744127472,1998.0875744127472,1753.8411818590084,1816.3659098216335,1937.173530737571],"type":"scatter"},{"line":{"color":"magenta","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.8080808080808081,0.0],"y":[1937.173530737571,1844.6950368597816],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"title":{"text":""},"xaxis":{"title":{"text":"dx"},"showgrid":true},"yaxis":{"title":{"text":"sigma_xx_peak"},"showgrid":true}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_peak
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="d31de2b0-c15c-4484-83a5-53c2ca847882" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("d31de2b0-c15c-4484-83a5-53c2ca847882")) {                    Plotly.newPlot(                        "d31de2b0-c15c-4484-83a5-53c2ca847882",                        [{"marker":{"color":"blue"},"mode":"lines+markers","name":"sigma_xx_peak","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[1998.0875744127472,1998.0875744127472,1753.8411818590084,1816.3659098216335,1937.173530737571,2038.068733813785],"type":"scatter"},{"line":{"color":"green","dash":"dash"},"mode":"lines","name":"power-law fit palliative (order=4.00, rmse=96)","x":[0.0,0.03367003367003367,0.06734006734006734,0.10101010101010101,0.13468013468013468,0.16835016835016836,0.20202020202020202,0.23569023569023567,0.26936026936026936,0.30303030303030304,0.3367003367003367,0.37037037037037035,0.40404040404040403,0.4377104377104377,0.47138047138047134,0.5050505050505051,0.5387205387205387,0.5723905723905723,0.6060606060606061,0.6397306397306397,0.6734006734006734,0.7070707070707071,0.7407407407407407,0.7744107744107744,0.8080808080808081,0.8417508417508417,0.8754208754208754,0.9090909090909091,0.9427609427609427,0.9764309764309764,1.0101010101010102,1.0437710437710437,1.0774410774410774,1.1111111111111112,1.1447811447811447,1.1784511784511784,1.2121212121212122,1.2457912457912457,1.2794612794612794,1.3131313131313131,1.3468013468013469,1.3804713804713804,1.4141414141414141,1.4478114478114479,1.4814814814814814,1.5151515151515151,1.5488215488215489,1.5824915824915824,1.6161616161616161,1.6498316498316499,1.6835016835016834,1.7171717171717171,1.7508417508417509,1.7845117845117844,1.8181818181818181,1.8518518518518519,1.8855218855218854,1.9191919191919191,1.9528619528619529,1.9865319865319866,2.0202020202020203,2.0538720538720536,2.0875420875420874,2.121212121212121,2.154882154882155,2.1885521885521886,2.2222222222222223,2.255892255892256,2.2895622895622894,2.323232323232323,2.356902356902357,2.3905723905723906,2.4242424242424243,2.457912457912458,2.4915824915824913,2.525252525252525,2.558922558922559,2.5925925925925926,2.6262626262626263,2.65993265993266,2.6936026936026938,2.727272727272727,2.760942760942761,2.7946127946127945,2.8282828282828283,2.861952861952862,2.8956228956228958,2.929292929292929,2.962962962962963,2.9966329966329965,3.0303030303030303,3.063973063973064,3.0976430976430978,3.131313131313131,3.164983164983165,3.1986531986531985,3.2323232323232323,3.265993265993266,3.2996632996632997,3.3333333333333335],"y":[1897.8033735492404,1897.8033747034679,1897.8033920168803,1897.8034670416675,1897.8036690314796,1897.8040949414258,1897.8048694280758,1897.806144849459,1897.8081012650653,1897.8109464358438,1897.8149158242034,1897.8202725940132,1897.8273076106027,1897.8363394407604,1897.8477143527352,1897.861806316236,1897.8790170024313,1897.8997757839493,1897.9245397348789,1897.9537936307681,1897.988049948625,1898.0278488669182,1898.0737582655752,1898.1263737259842,1898.1863185309928,1898.254243664909,1898.3308278135,1898.4167773639936,1898.512826405077,1898.6197367268974,1898.7382978210624,1898.8693268806387,1899.0136688001533,1899.1721961755932,1899.345809304405,1899.5354361854957,1899.7420325192315,1899.966581707439,1900.2100948534046,1900.4736107618744,1900.7581959390545,1901.0649445926113,1901.3949786316703,1901.7494476668176,1902.1295290100988,1902.5364276750195,1902.971376376545,1903.4356355311013,1903.9304932565733,1904.457265372306,1905.0172953991048,1905.6119545592346,1906.2426417764202,1906.9107836758465,1907.617834584158,1908.3652765294594,1909.1546192413148,1909.9874001507492,1910.8651843902462,1911.78956479375,1912.7621618966652,1913.784623935855,1914.8586268496435,1915.9858742778147,1917.1680975616116,1918.407055743738,1919.7045355683574,1921.062351481093,1922.4823456290276,1923.9663878607046,1925.516375726127,1927.1342344767575,1928.8219170655188,1930.5814041467936,1932.4147040764244,1934.3238529117136,1936.3109144114235,1938.3779800357763,1940.527168946454,1942.7606280065986,1945.0805317808122,1947.4890825351563,1949.9885102371527,1952.5810725557828,1955.269054861488,1958.05477022617,1960.9405594231896,1963.928790927368,1967.0218609149863,1970.2221932637854,1973.532239552966,1976.9544790631887,1980.4914187765744,1984.1455933767031,1987.9195652486155,1991.8159244788117,1995.837288855252,1999.986303867356,2004.265642706004,2008.6780062635357],"type":"scatter"},{"marker":{"color":"green","size":10,"symbol":"square"},"mode":"markers","name":"q converged (power-law fit)","x":[0.0],"y":[1897.8033735492404],"type":"scatter"},{"error_y":{"array":[149.58722808079503],"type":"data"},"marker":{"color":"chocolate","size":10,"symbol":"diamond"},"mode":"markers","name":"q converged (robust median)","x":[0.0],"y":[1937.173530737571],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"title":{"text":"Converged sigma_xx_peak = 1898  (method: power_law_fit (palliative))"},"xaxis":{"title":{"text":"dx"}},"yaxis":{"title":{"text":"sigma_xx_peak"}}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_peak
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="1a6530b0-d817-4907-8217-bd3ec1253bc4" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("1a6530b0-d817-4907-8217-bd3ec1253bc4")) {                    Plotly.newPlot(                        "1a6530b0-d817-4907-8217-bd3ec1253bc4",                        [{"marker":{"color":"blue"},"mode":"markers","name":"|sigma_xx_peak-extrap|","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[100.28420086350684,100.28420086350684,143.96219169023198,81.43746372760688,39.370157188330495,140.2653602645446],"type":"scatter"},{"line":{"color":"green","dash":"dash"},"mode":"lines","name":"order 1","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[1163.0336121935156,872.2752091451366,569.6491161764158,429.4277952714519,281.94754234994315,140.2653602645446],"type":"scatter"},{"line":{"color":"black","dash":"dash"},"mode":"lines","name":"order 2","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[9643.4870344379,5424.461456871318,2313.47294120626,1314.7097116772143,566.743039673118,140.2653602645446],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"xaxis":{"type":"log","title":{"text":"dx"},"minor":{"ticks":"inside","ticklen":6,"showgrid":true}},"yaxis":{"type":"log","minor":{"ticks":"inside","ticklen":6,"showgrid":true}}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_peak
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="8878b2c3-e13f-4a70-b036-db7311a28401" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("8878b2c3-e13f-4a70-b036-db7311a28401")) {                    Plotly.newPlot(                        "8878b2c3-e13f-4a70-b036-db7311a28401",                        [{"marker":{"color":"blue"},"mode":"lines+markers","name":"sigma_xx_peak","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[0.05284225028853068,0.05284225028853068,-0.0758572746242917,-0.042911433746323197,0.02074511919256476,0.07390932180830864],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"yaxis":{"minor":{"ticks":"inside","ticklen":6,"showgrid":true},"title":{"text":"Relative error on sigma_xx_peak"}},"xaxis":{"minor":{"ticks":"inside","ticklen":6,"showgrid":true},"title":{"text":"dx"}}},                        {"responsive": true}                    )                };                            </script>        </div>'}

Discussion: smooth versus sawtooth

Putting the two diagnostics side by side for the two outputs tells a consistent story about whether the mesh is in the asymptotic (converged) regime.

Cross-validation plot (smooth probe on the left, sawtooth peak on the right). For the smooth probe stress the leave-one-grid-out folds almost overlap and all extrapolate to nearly the same value, so the cross-validation band is tight: dropping any grid barely moves the estimate, a sign that the converged value is trustworthy. For the sawtooth peak stress the folds scatter and extrapolate to markedly different values, giving a wide band: the estimate depends heavily on which grids are used.

side_by_side(
    figures["convergence_cross_validation_plotter"],
    figures_peak["convergence_cross_validation_plotter"],
    "smooth probe",
    "sawtooth peak",
    "sigma_xx",
)

Relative-error plot (smooth probe on the left, sawtooth peak on the right). For the probe the relative error with respect to the converged value decreases monotonically as the element size shrinks -- the expected asymptotic behaviour. For the peak it oscillates and does not settle, showing that the quantity never enters the asymptotic regime, so no meaningful discretization order (and hence no reliable Richardson extrapolation) exists.

side_by_side(
    figures["relative_error_versus_element_size_plotter"],
    figures_peak["relative_error_versus_element_size_plotter"],
    "smooth probe",
    "sawtooth peak",
    "relative error",
)

The two diagnostics agree, and they agree with the fit residual and the robust band reported earlier: the probe stress is converged and its palliative value is reliable, whereas the peak stress is dominated by mesh sampling noise and its "converged value" should be treated with caution. In practice, a wide cross-validation band or a non-monotone relative error is the signal to refine the mesh further (or to pick a smoother quantity of interest) before trusting the extrapolation.

Native analytic outputs: a mesh-independent baseline

The model's native scalar outputs sigma_xx_r and sigma_xx_d0 are the hole-edge stresses evaluated directly on the analytic Tan solution (at the hole radius, and one stress-point distance d0 beyond it). They do not read the discretised field at all, so they are exactly mesh-independent. They were collected in the same loop as the field-derived quantities above, so no extra model runs are needed here -- we just verify them from the same dataset. Verifying them is a useful sanity check and a third reference behaviour, next to the smooth and sawtooth field quantities.

native_verificators = {}
for native_output in ("sigma_xx_r", "sigma_xx_d0"):
    verificator_native = DiscretizationSolutionVerification(
        directory_naming_method=DirectoryNamingMethod.NUMBERED,
        working_directory=f"DiscretizationSolutionVerification_{native_output}",
    )
    verificator_native.execute(
        simulated_data=convergence_table,
        element_size_variable_name="dx",
        abscissa_name="dx",
        output_name=native_output,
    )
    native_verificators[native_output] = verificator_native
    native_extrapolation = verificator_native.result.extrapolation
    print(
        f"{native_output}: converged={native_extrapolation['q_converged']:.4f} "
        f"(method: {native_extrapolation['q_converged_method']})"
    )

Out:

C:\Users\sebastien.bocquet\Dev\vd017\.tox\doc\Lib\site-packages\pydantic\main.py:463: UserWarning:

Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `str` - serialized value may not be as expected [input_value=(FieldInfo(annotation=Non... assess convergence.'),), input_type=tuple])

    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_r
    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_r\CustomDOETool
sigma_xx_r: converged=3137.6291 (method: richardson)
C:\Users\sebastien.bocquet\Dev\vd017\.tox\doc\Lib\site-packages\pydantic\main.py:463: UserWarning:

Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `str` - serialized value may not be as expected [input_value=(FieldInfo(annotation=Non... assess convergence.'),), input_type=tuple])

    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_d0
    INFO - 09:44:12: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_d0\CustomDOETool
sigma_xx_d0: converged=2094.9556 (method: richardson)

Because the values are constant, Richardson succeeds trivially and returns the constant as the converged value (no palliative needed). The convergence-fit plots are flat, side by side (sigma_xx_r on the left, sigma_xx_d0 on the right):

native_figures = {
    name: verificator.plot_results(
        verificator.result,
        save=False,
        show=True,
        directory_path=verificator.working_directory,
    )
    for name, verificator in native_verificators.items()
}
side_by_side(
    native_figures["sigma_xx_r"]["convergence_fit_plotter"],
    native_figures["sigma_xx_d0"]["convergence_fit_plotter"],
    "sigma_xx_r",
    "sigma_xx_d0",
    "sigma_xx",
)

Out:

    INFO - 09:44:13: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_r
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="6c2b2403-800c-4141-bc9c-1d573bcbbd59" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("6c2b2403-800c-4141-bc9c-1d573bcbbd59")) {                    Plotly.newPlot(                        "6c2b2403-800c-4141-bc9c-1d573bcbbd59",                        [{"error_y":{"array":[1.3484168448485433e-12],"type":"data"},"line":{"color":"chocolate"},"marker":{"size":11,"symbol":"square"},"mode":"markers","name":"converged (richardson)","showlegend":true,"x":[0.0],"y":[3137.6291470592705],"type":"scatter"},{"line":{"color":"blue","dash":"dash","width":2},"mode":"lines+markers","name":"fold[2.5    1.6327 1.2308 0.8081 0.402 ]","showlegend":true,"x":[2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"blue","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"red","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 1.6327 1.2308 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"red","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"black","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.2308 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"black","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"green","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,0.8080808080808081,0.4020100502512563],"y":[3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"green","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"orange","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 1.2308 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.4020100502512563],"y":[3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"orange","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"magenta","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 1.2308 0.8081]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081],"y":[3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271],"type":"scatter"},{"line":{"color":"magenta","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.8080808080808081,0.0],"y":[3137.629147059271,3137.629147059271],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"title":{"text":""},"xaxis":{"title":{"text":"dx"},"showgrid":true},"yaxis":{"title":{"text":"sigma_xx_r"},"showgrid":true}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:13: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_r
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="515e9ccd-402c-4f26-8b58-5f7c876823f9" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("515e9ccd-402c-4f26-8b58-5f7c876823f9")) {                    Plotly.newPlot(                        "515e9ccd-402c-4f26-8b58-5f7c876823f9",                        [{"marker":{"color":"blue"},"mode":"lines+markers","name":"sigma_xx_r","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271],"type":"scatter"},{"error_y":{"array":[1.3484168448485433e-12],"type":"data"},"marker":{"color":"red","size":11,"symbol":"circle"},"mode":"markers","name":"Richardson extrapolation","x":[0.0],"y":[3137.6291470592705],"type":"scatter"},{"line":{"color":"green","dash":"dash"},"mode":"lines","name":"power-law fit palliative (order=2.00, rmse=0)","x":[0.0,0.03367003367003367,0.06734006734006734,0.10101010101010101,0.13468013468013468,0.16835016835016836,0.20202020202020202,0.23569023569023567,0.26936026936026936,0.30303030303030304,0.3367003367003367,0.37037037037037035,0.40404040404040403,0.4377104377104377,0.47138047138047134,0.5050505050505051,0.5387205387205387,0.5723905723905723,0.6060606060606061,0.6397306397306397,0.6734006734006734,0.7070707070707071,0.7407407407407407,0.7744107744107744,0.8080808080808081,0.8417508417508417,0.8754208754208754,0.9090909090909091,0.9427609427609427,0.9764309764309764,1.0101010101010102,1.0437710437710437,1.0774410774410774,1.1111111111111112,1.1447811447811447,1.1784511784511784,1.2121212121212122,1.2457912457912457,1.2794612794612794,1.3131313131313131,1.3468013468013469,1.3804713804713804,1.4141414141414141,1.4478114478114479,1.4814814814814814,1.5151515151515151,1.5488215488215489,1.5824915824915824,1.6161616161616161,1.6498316498316499,1.6835016835016834,1.7171717171717171,1.7508417508417509,1.7845117845117844,1.8181818181818181,1.8518518518518519,1.8855218855218854,1.9191919191919191,1.9528619528619529,1.9865319865319866,2.0202020202020203,2.0538720538720536,2.0875420875420874,2.121212121212121,2.154882154882155,2.1885521885521886,2.2222222222222223,2.255892255892256,2.2895622895622894,2.323232323232323,2.356902356902357,2.3905723905723906,2.4242424242424243,2.457912457912458,2.4915824915824913,2.525252525252525,2.558922558922559,2.5925925925925926,2.6262626262626263,2.65993265993266,2.6936026936026938,2.727272727272727,2.760942760942761,2.7946127946127945,2.8282828282828283,2.861952861952862,2.8956228956228958,2.929292929292929,2.962962962962963,2.9966329966329965,3.0303030303030303,3.063973063973064,3.0976430976430978,3.131313131313131,3.164983164983165,3.1986531986531985,3.2323232323232323,3.265993265993266,3.2996632996632997,3.3333333333333335],"y":[3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271,3137.629147059271],"type":"scatter"},{"marker":{"color":"green","size":10,"symbol":"square"},"mode":"markers","name":"q converged (power-law fit)","x":[0.0],"y":[3137.629147059271],"type":"scatter"},{"error_y":{"array":[0.0],"type":"data"},"marker":{"color":"chocolate","size":10,"symbol":"diamond"},"mode":"markers","name":"q converged (robust median)","x":[0.0],"y":[3137.629147059271],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"title":{"text":"Converged sigma_xx_r = 3138  (method: richardson)"},"xaxis":{"title":{"text":"dx"}},"yaxis":{"title":{"text":"sigma_xx_r"}}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:13: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_r
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="4588515b-a8e6-403b-bc5f-3e85ac838c1a" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("4588515b-a8e6-403b-bc5f-3e85ac838c1a")) {                    Plotly.newPlot(                        "4588515b-a8e6-403b-bc5f-3e85ac838c1a",                        [{"marker":{"color":"blue"},"mode":"markers","name":"|sigma_xx_r-extrap|","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[4.547473508864641e-13,4.547473508864641e-13,4.547473508864641e-13,4.547473508864641e-13,4.547473508864641e-13,4.547473508864641e-13],"type":"scatter"},{"line":{"color":"green","dash":"dash"},"mode":"lines","name":"order 1","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[3.770613451100265e-12,2.8279600883251987e-12,1.8468310780899254e-12,1.3922265050216362e-12,9.1408810935764e-13,4.547473508864641e-13],"type":"scatter"},{"line":{"color":"black","dash":"dash"},"mode":"lines","name":"order 2","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[3.126466986537303e-11,1.7586376799272326e-11,7.500395602855003e-12,4.26235499229701e-12,1.8374094319411145e-12,4.547473508864641e-13],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"xaxis":{"type":"log","title":{"text":"dx"},"minor":{"ticks":"inside","ticklen":6,"showgrid":true}},"yaxis":{"type":"log","minor":{"ticks":"inside","ticklen":6,"showgrid":true}}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:13: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_r
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="3570f016-bfa1-4c2b-86de-b6072ed60a06" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("3570f016-bfa1-4c2b-86de-b6072ed60a06")) {                    Plotly.newPlot(                        "3570f016-bfa1-4c2b-86de-b6072ed60a06",                        [{"marker":{"color":"blue"},"mode":"lines+markers","name":"sigma_xx_r","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[1.4493342889572343e-16,1.4493342889572343e-16,1.4493342889572343e-16,1.4493342889572343e-16,1.4493342889572343e-16,1.4493342889572343e-16],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"yaxis":{"minor":{"ticks":"inside","ticklen":6,"showgrid":true},"title":{"text":"Relative error on sigma_xx_r"}},"xaxis":{"minor":{"ticks":"inside","ticklen":6,"showgrid":true},"title":{"text":"dx"}}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:13: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_d0
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="9816a476-9538-4bcc-bf2e-c5c4c88c6b77" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("9816a476-9538-4bcc-bf2e-c5c4c88c6b77")) {                    Plotly.newPlot(                        "9816a476-9538-4bcc-bf2e-c5c4c88c6b77",                        [{"error_y":{"array":[0.0],"type":"data"},"line":{"color":"chocolate"},"marker":{"size":11,"symbol":"square"},"mode":"markers","name":"converged (richardson)","showlegend":true,"x":[0.0],"y":[2094.9556398123455],"type":"scatter"},{"line":{"color":"blue","dash":"dash","width":2},"mode":"lines+markers","name":"fold[2.5    1.6327 1.2308 0.8081 0.402 ]","showlegend":true,"x":[2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"blue","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"red","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 1.6327 1.2308 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"red","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"black","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.2308 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"black","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"green","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 0.8081 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,0.8080808080808081,0.4020100502512563],"y":[2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"green","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"orange","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 1.2308 0.402 ]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.4020100502512563],"y":[2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"orange","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.4020100502512563,0.0],"y":[2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"magenta","dash":"dash","width":2},"mode":"lines+markers","name":"fold[3.3333 2.5    1.6327 1.2308 0.8081]","showlegend":true,"x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081],"y":[2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455],"type":"scatter"},{"line":{"color":"magenta","dash":"dashdot"},"mode":"lines","name":"","showlegend":false,"x":[0.8080808080808081,0.0],"y":[2094.9556398123455,2094.9556398123455],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"title":{"text":""},"xaxis":{"title":{"text":"dx"},"showgrid":true},"yaxis":{"title":{"text":"sigma_xx_d0"},"showgrid":true}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:13: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_d0
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="bc77150c-d982-43bf-b2e4-2d89550f18b3" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("bc77150c-d982-43bf-b2e4-2d89550f18b3")) {                    Plotly.newPlot(                        "bc77150c-d982-43bf-b2e4-2d89550f18b3",                        [{"marker":{"color":"blue"},"mode":"lines+markers","name":"sigma_xx_d0","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455],"type":"scatter"},{"error_y":{"array":[0.0],"type":"data"},"marker":{"color":"red","size":11,"symbol":"circle"},"mode":"markers","name":"Richardson extrapolation","x":[0.0],"y":[2094.9556398123455],"type":"scatter"},{"line":{"color":"green","dash":"dash"},"mode":"lines","name":"power-law fit palliative (order=2.00, rmse=0)","x":[0.0,0.03367003367003367,0.06734006734006734,0.10101010101010101,0.13468013468013468,0.16835016835016836,0.20202020202020202,0.23569023569023567,0.26936026936026936,0.30303030303030304,0.3367003367003367,0.37037037037037035,0.40404040404040403,0.4377104377104377,0.47138047138047134,0.5050505050505051,0.5387205387205387,0.5723905723905723,0.6060606060606061,0.6397306397306397,0.6734006734006734,0.7070707070707071,0.7407407407407407,0.7744107744107744,0.8080808080808081,0.8417508417508417,0.8754208754208754,0.9090909090909091,0.9427609427609427,0.9764309764309764,1.0101010101010102,1.0437710437710437,1.0774410774410774,1.1111111111111112,1.1447811447811447,1.1784511784511784,1.2121212121212122,1.2457912457912457,1.2794612794612794,1.3131313131313131,1.3468013468013469,1.3804713804713804,1.4141414141414141,1.4478114478114479,1.4814814814814814,1.5151515151515151,1.5488215488215489,1.5824915824915824,1.6161616161616161,1.6498316498316499,1.6835016835016834,1.7171717171717171,1.7508417508417509,1.7845117845117844,1.8181818181818181,1.8518518518518519,1.8855218855218854,1.9191919191919191,1.9528619528619529,1.9865319865319866,2.0202020202020203,2.0538720538720536,2.0875420875420874,2.121212121212121,2.154882154882155,2.1885521885521886,2.2222222222222223,2.255892255892256,2.2895622895622894,2.323232323232323,2.356902356902357,2.3905723905723906,2.4242424242424243,2.457912457912458,2.4915824915824913,2.525252525252525,2.558922558922559,2.5925925925925926,2.6262626262626263,2.65993265993266,2.6936026936026938,2.727272727272727,2.760942760942761,2.7946127946127945,2.8282828282828283,2.861952861952862,2.8956228956228958,2.929292929292929,2.962962962962963,2.9966329966329965,3.0303030303030303,3.063973063973064,3.0976430976430978,3.131313131313131,3.164983164983165,3.1986531986531985,3.2323232323232323,3.265993265993266,3.2996632996632997,3.3333333333333335],"y":[2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455,2094.9556398123455],"type":"scatter"},{"marker":{"color":"green","size":10,"symbol":"square"},"mode":"markers","name":"q converged (power-law fit)","x":[0.0],"y":[2094.9556398123455],"type":"scatter"},{"error_y":{"array":[0.0],"type":"data"},"marker":{"color":"chocolate","size":10,"symbol":"diamond"},"mode":"markers","name":"q converged (robust median)","x":[0.0],"y":[2094.9556398123455],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"title":{"text":"Converged sigma_xx_d0 = 2095  (method: richardson)"},"xaxis":{"title":{"text":"dx"}},"yaxis":{"title":{"text":"sigma_xx_d0"}}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:13: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_d0
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="fd08dcd0-849c-45c6-bbcc-f9c0ae3f6529" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("fd08dcd0-849c-45c6-bbcc-f9c0ae3f6529")) {                    Plotly.newPlot(                        "fd08dcd0-849c-45c6-bbcc-f9c0ae3f6529",                        [{"marker":{"color":"blue"},"mode":"markers","name":"|sigma_xx_d0-extrap|","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[0.0,0.0,0.0,0.0,0.0,0.0],"type":"scatter"},{"line":{"color":"green","dash":"dash"},"mode":"lines","name":"order 1","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[0.0,0.0,0.0,0.0,0.0,0.0],"type":"scatter"},{"line":{"color":"black","dash":"dash"},"mode":"lines","name":"order 2","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[0.0,0.0,0.0,0.0,0.0,0.0],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"xaxis":{"type":"log","title":{"text":"dx"},"minor":{"ticks":"inside","ticklen":6,"showgrid":true}},"yaxis":{"type":"log","minor":{"ticks":"inside","ticklen":6,"showgrid":true}}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 09:44:13: Working directory is C:\Users\sebastien.bocquet\Dev\vd017\docs\runnable_examples\05_solution_verification\DiscretizationSolutionVerification_sigma_xx_d0
{'text/html': '<div>            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: \'local\'};</script>\n        <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.0.min.js"></script>                <div id="6abe202d-3e56-4ad9-8489-0ae8d62b8ebb" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("6abe202d-3e56-4ad9-8489-0ae8d62b8ebb")) {                    Plotly.newPlot(                        "6abe202d-3e56-4ad9-8489-0ae8d62b8ebb",                        [{"marker":{"color":"blue"},"mode":"lines+markers","name":"sigma_xx_d0","x":[3.3333333333333335,2.5,1.6326530612244898,1.2307692307692308,0.8080808080808081,0.4020100502512563],"y":[0.0,0.0,0.0,0.0,0.0,0.0],"type":"scatter"}],                        {"template":{"data":{"candlestick":[{"decreasing":{"line":{"color":"#000033"}},"increasing":{"line":{"color":"#000032"}},"type":"candlestick"}],"contourcarpet":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contourcarpet"}],"contour":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"contour"}],"heatmap":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"heatmap"}],"histogram2d":[{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"type":"histogram2d"}],"icicle":[{"textfont":{"color":"white"},"type":"icicle"}],"sankey":[{"textfont":{"color":"#000036"},"type":"sankey"}],"scatter":[{"marker":{"line":{"width":0}},"type":"scatter"}],"table":[{"cells":{"fill":{"color":"#000038"},"font":{"color":"#000037"},"line":{"color":"#000039"}},"header":{"fill":{"color":"#000040"},"font":{"color":"#000036"},"line":{"color":"#000039"}},"type":"table"}],"waterfall":[{"connector":{"line":{"color":"#000036","width":2}},"decreasing":{"marker":{"color":"#000033"}},"increasing":{"marker":{"color":"#000032"}},"totals":{"marker":{"color":"#000034"}},"type":"waterfall"}]},"layout":{"coloraxis":{"colorscale":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorscale":{"diverging":[[0.0,"#000021"],[0.1,"#000022"],[0.2,"#000023"],[0.3,"#000024"],[0.4,"#000025"],[0.5,"#000026"],[0.6,"#000027"],[0.7,"#000028"],[0.8,"#000029"],[0.9,"#000030"],[1.0,"#000031"]],"sequential":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]],"sequentialminus":[[0.0,"#000011"],[0.1111111111111111,"#000012"],[0.2222222222222222,"#000013"],[0.3333333333333333,"#000014"],[0.4444444444444444,"#000015"],[0.5555555555555556,"#000016"],[0.6666666666666666,"#000017"],[0.7777777777777778,"#000018"],[0.8888888888888888,"#000019"],[1.0,"#000020"]]},"colorway":["#000001","#000002","#000003","#000004","#000005","#000006","#000007","#000008","#000009","#000010"]}},"yaxis":{"minor":{"ticks":"inside","ticklen":6,"showgrid":true},"title":{"text":"Relative error on sigma_xx_d0"}},"xaxis":{"minor":{"ticks":"inside","ticklen":6,"showgrid":true},"title":{"text":"dx"}}},                        {"responsive": true}                    )                };                            </script>        </div>'}

The relative-error plots sit at zero: these outputs carry no discretization error, in contrast with the field-sampled quantities above. This is exactly the behaviour expected of an analytical model output, and a reassuring baseline for the solution-verification workflow.

side_by_side(
    native_figures["sigma_xx_r"]["relative_error_versus_element_size_plotter"],
    native_figures["sigma_xx_d0"]["relative_error_versus_element_size_plotter"],
    "sigma_xx_r",
    "sigma_xx_d0",
    "relative error",
)

Comparison of the fields

Beyond the scalar convergence, the whole sigma_xx field can be compared between the coarsest and the finest grid. Both are exact at their nodes, but the finer grid resolves the stress concentration around the hole far better:

coarse = model_results[grid_resolutions[0]].fields["flux"][0]
fine = model_results[grid_resolutions[-1]].fields["flux"][0]
x_coarse, y_coarse, z_coarse = coarse.to_structured_grid("sigma_xx")
x_fine, y_fine, z_fine = fine.to_structured_grid("sigma_xx")

color_min = float(np.nanmin([np.nanmin(z_coarse), np.nanmin(z_fine)]))
color_max = float(np.nanmax([np.nanmax(z_coarse), np.nanmax(z_fine)]))

fig = make_subplots(
    rows=1,
    cols=2,
    shared_yaxes=True,
    subplot_titles=(
        f"coarse grid ({grid_resolutions[0]})",
        f"fine grid ({grid_resolutions[-1]})",
    ),
)
fig.add_trace(
    go.Heatmap(
        x=x_coarse, y=y_coarse, z=z_coarse.T, coloraxis="coloraxis", name="coarse"
    ),
    row=1,
    col=1,
)
fig.add_trace(
    go.Heatmap(x=x_fine, y=y_fine, z=z_fine.T, coloraxis="coloraxis", name="fine"),
    row=1,
    col=2,
)
fig.update_layout(
    title={
        "text": "sigma_xx field around the hole",
        "x": 0.5,
        "xanchor": "center",
        "y": 0.98,
        "yanchor": "top",
    },
    # Extra top margin so the centred figure title clears the two panel titles
    # that ``make_subplots`` pins just above the plot area.
    margin={"t": 110},
    coloraxis={
        "colorscale": "Viridis",
        "cmin": color_min,
        "cmax": color_max,
        "colorbar": {"title": "sigma_xx"},
    },
)
# Equal aspect ratio so the hole stays circular in both panels:
fig.update_yaxes(scaleanchor="x", row=1, col=1)
fig.update_yaxes(scaleanchor="x2", row=1, col=2)
fig

Total running time of the script: ( 0 minutes 2.271 seconds)

Download Python source code: plot_tan_open_hole_convergence.py

Download Jupyter notebook: plot_tan_open_hole_convergence.ipynb

Gallery generated by mkdocs-gallery


  1. Lewis Fry Richardson. The approximate arithmetical solution by finite differences of physical problems involving differential equations, with an application to the stresses in a masonry dam. Philosophical Transactions of the Royal Society A, 210:307–357, 1911. doi:https://doi.org/10.1098/rsta.1911.0009. ↩

  2. Petr Krysl. Confidence intervals for richardson extrapolation in solid mechanics. J. Verif. Valid. Uncert., 7(3):031005, 2022. doi:https://doi.org/10.1115/1.4055728. ↩