Skip to content

Note

Click here to download the full example code

Overview of the MockMultiCurves for load case Dummy

A toy model whose outputs illustrate the definition of figures holding several lines, styled lines, a secondary ordinate axis and horizontal reference lines.

from __future__ import annotations

from vimseo import EXAMPLE_RUNS_DIR
from vimseo.api import create_model
from vimseo.core.model_settings import IntegratedModelSettings

First, let's instantiate the model for a given load case:

model_name = "MockMultiCurves"
load_case = "Dummy"
model = create_model(
    model_name,
    load_case,
    check_subprocess=True,
    model_options=IntegratedModelSettings(
        directory_archive_root=EXAMPLE_RUNS_DIR / "archive/model_gallery",
        directory_scratch_root=EXAMPLE_RUNS_DIR / "scratch/model_gallery",
        cache_file_path=EXAMPLE_RUNS_DIR
        / f"caches/model_gallery/{model_name}_{load_case}_cache.hdf",
    ),
)

The model description can be accessed like this:

print(model.description)

Out:

Model MockMultiCurves: A toy model whose outputs illustrate figures with several lines, custom line styles, a secondary y-axis and horizontal reference lines.

Load case:
   Load case Dummy: A dummy load case.

Default values:

   Default geometrical variables:
      critical_crack_position = [35.0]
      max_displacement = [10.0]

Model inputs: critical_crack_position, max_displacement
Model outputs: cpu_time, crack_position_history, critical_crack_position, date, description, directory_archive_job, directory_archive_root, directory_scratch_job, directory_scratch_root, displacement_history, energy_damage_history, energy_strain_history, energy_viscous_history, energy_work_history, error_code, force_history, job_name, load_case, machine, model, n_cpus, persistent_result_files, user, vims_git_version

An illustration of the load case:

model.show_image()

The model is executed with its default input values:

model.execute()

Out:

{'max_displacement': array([10.]), 'critical_crack_position': array([35.]), 'displacement_history': array([ 0.        ,  0.20408163,  0.40816327,  0.6122449 ,  0.81632653,
        1.02040816,  1.2244898 ,  1.42857143,  1.63265306,  1.83673469,
        2.04081633,  2.24489796,  2.44897959,  2.65306122,  2.85714286,
        3.06122449,  3.26530612,  3.46938776,  3.67346939,  3.87755102,
        4.08163265,  4.28571429,  4.48979592,  4.69387755,  4.89795918,
        5.10204082,  5.30612245,  5.51020408,  5.71428571,  5.91836735,
        6.12244898,  6.32653061,  6.53061224,  6.73469388,  6.93877551,
        7.14285714,  7.34693878,  7.55102041,  7.75510204,  7.95918367,
        8.16326531,  8.36734694,  8.57142857,  8.7755102 ,  8.97959184,
        9.18367347,  9.3877551 ,  9.59183673,  9.79591837, 10.        ]), 'energy_strain_history': array([0.00000000e+00, 2.08246564e-02, 8.32986256e-02, 1.87421908e-01,
       3.33194502e-01, 5.20616410e-01, 7.49687630e-01, 1.02040816e+00,
       1.33277801e+00, 1.68679717e+00, 2.08246564e+00, 2.51978342e+00,
       2.99875052e+00, 3.51936693e+00, 4.08163265e+00, 4.68554769e+00,
       5.33111204e+00, 6.01832570e+00, 6.74718867e+00, 7.51770096e+00,
       8.32986256e+00, 9.18367347e+00, 1.00791337e+01, 1.10162432e+01,
       1.19950021e+01, 1.30154102e+01, 1.40774677e+01, 1.51811745e+01,
       1.63265306e+01, 1.75135360e+01, 1.87421908e+01, 2.00124948e+01,
       2.13244481e+01, 2.26780508e+01, 2.40733028e+01, 2.55102041e+01,
       2.69887547e+01, 2.85089546e+01, 3.00708038e+01, 3.16743024e+01,
       3.33194502e+01, 3.50062474e+01, 3.67346939e+01, 3.85047897e+01,
       4.03165348e+01, 4.21699292e+01, 4.40649729e+01, 4.60016660e+01,
       4.79800083e+01, 5.00000000e+01]), 'energy_damage_history': array([0.        , 0.01843894, 0.05215319, 0.09581153, 0.14751149,
       0.20615358, 0.27099592, 0.34149389, 0.41722551, 0.49785129,
       0.58309038, 0.67270538, 0.76649221, 0.86427292, 0.96589058,
       1.07120543, 1.18009195, 1.29243663, 1.4081361 , 1.52709578,
       1.64922864, 1.7744543 , 1.90269815, 2.03389079, 2.16796735,
       2.3048671 , 2.44453296, 2.5869112 , 2.73195111, 2.87960469,
       3.02982649, 3.18257331, 3.33780409, 3.49547971, 3.65556282,
       3.81801774, 3.98281035, 4.14990793, 4.31927913, 4.49089381,
       4.66472303, 4.84073893, 5.01891466, 5.19922436, 5.38164307,
       5.56614667, 5.75271188, 5.94131615, 6.13193767, 6.32455532]), 'energy_viscous_history': array([0.        , 0.01020408, 0.02040816, 0.03061224, 0.04081633,
       0.05102041, 0.06122449, 0.07142857, 0.08163265, 0.09183673,
       0.10204082, 0.1122449 , 0.12244898, 0.13265306, 0.14285714,
       0.15306122, 0.16326531, 0.17346939, 0.18367347, 0.19387755,
       0.20408163, 0.21428571, 0.2244898 , 0.23469388, 0.24489796,
       0.25510204, 0.26530612, 0.2755102 , 0.28571429, 0.29591837,
       0.30612245, 0.31632653, 0.32653061, 0.33673469, 0.34693878,
       0.35714286, 0.36734694, 0.37755102, 0.3877551 , 0.39795918,
       0.40816327, 0.41836735, 0.42857143, 0.43877551, 0.44897959,
       0.45918367, 0.46938776, 0.47959184, 0.48979592, 0.5       ]), 'energy_work_history': array([0.00000000e+00, 4.94676748e-02, 1.55859978e-01, 3.13845679e-01,
       5.21522323e-01, 7.77790399e-01, 1.08190804e+00, 1.43333062e+00,
       1.83163617e+00, 2.27648520e+00, 2.76759683e+00, 3.30473371e+00,
       3.88769171e+00, 4.51629291e+00, 5.19038037e+00, 5.90981434e+00,
       6.67446930e+00, 7.48423171e+00, 8.33899824e+00, 9.23867429e+00,
       1.01831728e+01, 1.11724135e+01, 1.22063216e+01, 1.32848279e+01,
       1.44078674e+01, 1.55753794e+01, 1.67873068e+01, 1.80435959e+01,
       1.93441960e+01, 2.06890591e+01, 2.20781397e+01, 2.35113946e+01,
       2.49887829e+01, 2.65102652e+01, 2.80758044e+01, 2.96853647e+01,
       3.13389120e+01, 3.30364136e+01, 3.47778381e+01, 3.65631554e+01,
       3.83923365e+01, 4.02653537e+01, 4.21821800e+01, 4.41427895e+01,
       4.61471574e+01, 4.81952595e+01, 5.02870726e+01, 5.24225740e+01,
       5.46017419e+01, 5.68245553e+01]), 'force_history': array([0.        , 0.19591948, 0.37616753, 0.54168431, 0.69335985,
       0.83203654, 0.95851152, 1.07353899, 1.17783231, 1.27206611,
       1.3568782 , 1.4328715 , 1.50061575, 1.56064923, 1.61348035,
       1.65958919, 1.69942897, 1.73342737, 1.76198793, 1.78549122,
       1.80429609, 1.81874077, 1.82914394, 1.83580578, 1.83900891,
       1.83901933, 1.83608731, 1.83044818, 1.82232318, 1.81192018,
       1.79943438, 1.78504902, 1.76893602, 1.75125659, 1.73216179,
       1.71179312, 1.69028301, 1.66775536, 1.64432596, 1.62010297,
       1.59518735, 1.56967325, 1.54364839, 1.51719445, 1.49038736,
       1.46329771, 1.43599095, 1.40852781, 1.38096445, 1.35335283]), 'crack_position_history': array([20.        , 20.6122449 , 21.2244898 , 21.83673469, 22.44897959,
       23.06122449, 23.67346939, 24.28571429, 24.89795918, 25.51020408,
       26.12244898, 26.73469388, 27.34693878, 27.95918367, 28.57142857,
       29.18367347, 29.79591837, 30.40816327, 31.02040816, 31.63265306,
       32.24489796, 32.85714286, 33.46938776, 34.08163265, 34.69387755,
       35.30612245, 35.91836735, 36.53061224, 37.14285714, 37.75510204,
       38.36734694, 38.97959184, 39.59183673, 40.20408163, 40.81632653,
       41.42857143, 42.04081633, 42.65306122, 43.26530612, 43.87755102,
       44.48979592, 45.10204082, 45.71428571, 46.32653061, 46.93877551,
       47.55102041, 48.16326531, 48.7755102 , 49.3877551 , 50.        ]), <MetaDataNames.error_code: 'error_code'>: array([0]), 'model': array(['MockMultiCurves'], dtype='<U15'), 'load_case': array(['Dummy'], dtype='<U5'), 'description': array([''], dtype='<U1'), 'job_name': array([''], dtype='<U1'), 'persistent_result_files': array([''], dtype='<U1'), 'n_cpus': array([1]), 'date': array(['2026-10-28 09:43:57.185699'], dtype='<U26'), 'cpu_time': array([0.01397371]), 'user': array(['sebastien.bocquet'], dtype='<U17'), 'machine': array(['PCBM20250036'], dtype='<U12'), 'vims_git_version': array(['5ba602a7e3571a2fc5a0a3604673c7e5410711b0'], dtype='<U40'), 'directory_archive_root': array(['C:\\Users\\sebastien.bocquet\\Dev\\vd017\\docs\\runnable_examples\\model_runs\\archive\\model_gallery'],
      dtype='<U92'), 'directory_archive_job': array(['C:\\Users\\sebastien.bocquet\\Dev\\vd017\\docs\\runnable_examples\\model_runs\\archive\\model_gallery\\MockMultiCurves\\Dummy\\1'],
      dtype='<U116'), 'directory_scratch_root': array(['C:\\Users\\sebastien.bocquet\\Dev\\vd017\\docs\\runnable_examples\\model_runs\\scratch\\model_gallery'],
      dtype='<U92'), 'directory_scratch_job': array([''], dtype='<U1')}

And the results are visualised with the pre-defined plots:

figures = model.plot_results(show=True)

Out:

{'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="b0dbe64d-33c6-4895-884f-b0be345c392f" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("b0dbe64d-33c6-4895-884f-b0be345c392f")) {                    Plotly.newPlot(                        "b0dbe64d-33c6-4895-884f-b0be345c392f",                        [{"line":{"color":"blue","dash":"solid"},"marker":{"color":"blue"},"mode":"lines","name":"energy_strain_history","x":[0.0,0.20408163265306123,0.40816326530612246,0.6122448979591837,0.8163265306122449,1.0204081632653061,1.2244897959183674,1.4285714285714286,1.6326530612244898,1.836734693877551,2.0408163265306123,2.2448979591836737,2.4489795918367347,2.6530612244897958,2.857142857142857,3.0612244897959187,3.2653061224489797,3.4693877551020407,3.673469387755102,3.8775510204081636,4.081632653061225,4.285714285714286,4.4897959183673475,4.6938775510204085,4.8979591836734695,5.1020408163265305,5.3061224489795915,5.510204081632653,5.714285714285714,5.918367346938775,6.122448979591837,6.326530612244898,6.530612244897959,6.73469387755102,6.938775510204081,7.142857142857143,7.346938775510204,7.551020408163265,7.755102040816327,7.959183673469388,8.16326530612245,8.36734693877551,8.571428571428571,8.775510204081632,8.979591836734695,9.183673469387756,9.387755102040817,9.591836734693878,9.795918367346939,10.0],"y":[0.0,0.020824656393169515,0.08329862557267806,0.1874219075385256,0.33319450229071224,0.5206164098292378,0.7496876301541024,1.0204081632653061,1.332778009162849,1.6867971678467306,2.0824656393169514,2.5197834235735117,2.99875052061641,3.5193669304456474,4.081632653061225,4.685547688463141,5.331112036651396,6.018325697625989,6.7471886713869225,7.517700957934196,8.329862557267806,9.183673469387754,10.079133694294047,11.016243231986675,11.99500208246564,13.015410245730944,14.07746772178259,15.181174510620577,16.3265306122449,17.513536026655558,18.742190753852565,20.012494793835906,21.324448146605583,22.678050812161597,24.073302790503956,25.510204081632654,26.98875468554769,28.508954602249062,30.070803831736782,31.674302374010832,33.31945022907122,35.00624739691795,36.73469387755102,38.504789670970425,40.31653477717619,42.16992919616827,44.0649729279467,46.00166597251146,47.98000832986256,50.0],"type":"scatter"},{"line":{"color":"red","dash":"solid"},"marker":{"color":"red"},"mode":"lines","name":"energy_damage_history","x":[0.0,0.20408163265306123,0.40816326530612246,0.6122448979591837,0.8163265306122449,1.0204081632653061,1.2244897959183674,1.4285714285714286,1.6326530612244898,1.836734693877551,2.0408163265306123,2.2448979591836737,2.4489795918367347,2.6530612244897958,2.857142857142857,3.0612244897959187,3.2653061224489797,3.4693877551020407,3.673469387755102,3.8775510204081636,4.081632653061225,4.285714285714286,4.4897959183673475,4.6938775510204085,4.8979591836734695,5.1020408163265305,5.3061224489795915,5.510204081632653,5.714285714285714,5.918367346938775,6.122448979591837,6.326530612244898,6.530612244897959,6.73469387755102,6.938775510204081,7.142857142857143,7.346938775510204,7.551020408163265,7.755102040816327,7.959183673469388,8.16326530612245,8.36734693877551,8.571428571428571,8.775510204081632,8.979591836734695,9.183673469387756,9.387755102040817,9.591836734693878,9.795918367346939,10.0],"y":[0.0,0.01843893679398472,0.05215318897958693,0.09581152609419816,0.14751149435187777,0.20615358052085933,0.27099591926815747,0.34149388838125533,0.41722551183669543,0.4978512934375875,0.5830903790087464,0.6727053836659866,0.7664922087535853,0.8642729169847693,0.9658905768325904,1.0712054268731102,1.1800919548150222,1.2924366284366766,1.4081361024488475,1.527095780114952,1.6492286441668746,1.7744542954517681,1.9026981541236692,2.0338907896581424,2.1679673541452598,2.30486709924809,2.4445329615832336,2.5869112045433504,2.7319511070500426,2.879604691614377,3.0298264855432264,3.182573310270725,3.3378040946935634,3.49547970910381,3.6555628168858094,3.818017741606063,3.9828103475007,4.149907931672535,4.319279126562574,4.490893811470137,4.664723032069971,4.8407389270202925,5.0189146608781705,5.199224362641935,5.381643069327893,5.566146674063203,5.752711878240537,5.941316147334716,6.131937670028682,6.324555320336759],"type":"scatter"},{"line":{"color":"green","dash":"solid"},"marker":{"color":"green"},"mode":"lines","name":"energy_viscous_history","x":[0.0,0.20408163265306123,0.40816326530612246,0.6122448979591837,0.8163265306122449,1.0204081632653061,1.2244897959183674,1.4285714285714286,1.6326530612244898,1.836734693877551,2.0408163265306123,2.2448979591836737,2.4489795918367347,2.6530612244897958,2.857142857142857,3.0612244897959187,3.2653061224489797,3.4693877551020407,3.673469387755102,3.8775510204081636,4.081632653061225,4.285714285714286,4.4897959183673475,4.6938775510204085,4.8979591836734695,5.1020408163265305,5.3061224489795915,5.510204081632653,5.714285714285714,5.918367346938775,6.122448979591837,6.326530612244898,6.530612244897959,6.73469387755102,6.938775510204081,7.142857142857143,7.346938775510204,7.551020408163265,7.755102040816327,7.959183673469388,8.16326530612245,8.36734693877551,8.571428571428571,8.775510204081632,8.979591836734695,9.183673469387756,9.387755102040817,9.591836734693878,9.795918367346939,10.0],"y":[0.0,0.010204081632653062,0.020408163265306124,0.030612244897959186,0.04081632653061225,0.05102040816326531,0.06122448979591837,0.07142857142857144,0.0816326530612245,0.09183673469387756,0.10204081632653061,0.11224489795918369,0.12244897959183675,0.1326530612244898,0.14285714285714288,0.15306122448979595,0.163265306122449,0.17346938775510204,0.1836734693877551,0.19387755102040818,0.20408163265306123,0.2142857142857143,0.22448979591836737,0.23469387755102045,0.2448979591836735,0.25510204081632654,0.2653061224489796,0.2755102040816327,0.28571428571428575,0.29591836734693877,0.3061224489795919,0.3163265306122449,0.326530612244898,0.33673469387755106,0.3469387755102041,0.3571428571428572,0.3673469387755102,0.3775510204081633,0.38775510204081637,0.39795918367346944,0.40816326530612246,0.41836734693877553,0.4285714285714286,0.4387755102040816,0.44897959183673475,0.4591836734693878,0.4693877551020409,0.4795918367346939,0.489795918367347,0.5],"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":{"title":{"text":"Displacement"}},"yaxis":{"title":{"font":{"color":"black"},"text":"energy_strain_history, energy_damage_history, energy_viscous_history"},"tickfont":{"color":"black"}}},                        {"responsive": true}                    )                };                            </script>        </div>'}
{'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="c6b72c26-0d96-4687-b301-5bf90f2b32e0" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("c6b72c26-0d96-4687-b301-5bf90f2b32e0")) {                    Plotly.newPlot(                        "c6b72c26-0d96-4687-b301-5bf90f2b32e0",                        [{"line":{"color":"blue","dash":"solid"},"marker":{"color":"blue","symbol":"circle"},"mode":"lines+markers","name":"force","x":[0.0,0.20408163265306123,0.40816326530612246,0.6122448979591837,0.8163265306122449,1.0204081632653061,1.2244897959183674,1.4285714285714286,1.6326530612244898,1.836734693877551,2.0408163265306123,2.2448979591836737,2.4489795918367347,2.6530612244897958,2.857142857142857,3.0612244897959187,3.2653061224489797,3.4693877551020407,3.673469387755102,3.8775510204081636,4.081632653061225,4.285714285714286,4.4897959183673475,4.6938775510204085,4.8979591836734695,5.1020408163265305,5.3061224489795915,5.510204081632653,5.714285714285714,5.918367346938775,6.122448979591837,6.326530612244898,6.530612244897959,6.73469387755102,6.938775510204081,7.142857142857143,7.346938775510204,7.551020408163265,7.755102040816327,7.959183673469388,8.16326530612245,8.36734693877551,8.571428571428571,8.775510204081632,8.979591836734695,9.183673469387756,9.387755102040817,9.591836734693878,9.795918367346939,10.0],"y":[0.0,0.1959194778133628,0.37616752950927546,0.5416843127457299,0.6933598502598469,0.8320365362729214,0.9585115226043914,1.0735389901075514,1.1778323107832753,1.2720661056830163,1.356878203478359,1.4328715043509772,1.5006157536434686,1.5606492295078076,1.6134803485935976,1.6595891936325464,1.699428966598211,1.7334273709507164,1.7619879263144482,1.7854912187823628,1.804296089893166,1.8187407671869282,1.8291439391103743,1.8358057769148712,1.8390089060677466,1.8390193295807193,1.8360873055477285,1.830448181077973,1.8223231847084023,1.8119201792829165,1.799434377192991,1.7850490197861304,1.768936022664251,1.7512565885136837,1.7321617890317,1.7117931174412553,1.69028301301574,1.6677553589688423,1.6443259550010259,1.6201029657333956,1.5951873462018462,1.5696732455291011,1.5436483898395916,1.5171944454318025,1.4903873631747873,1.4632977050497957,1.4359909537143192,1.4085278059242619,1.3809644506102332,1.353352832366127],"type":"scatter","xaxis":"x","yaxis":"y"},{"line":{"color":"red","dash":"dash"},"marker":{"color":"red"},"mode":"lines","name":"crack position","x":[0.0,0.20408163265306123,0.40816326530612246,0.6122448979591837,0.8163265306122449,1.0204081632653061,1.2244897959183674,1.4285714285714286,1.6326530612244898,1.836734693877551,2.0408163265306123,2.2448979591836737,2.4489795918367347,2.6530612244897958,2.857142857142857,3.0612244897959187,3.2653061224489797,3.4693877551020407,3.673469387755102,3.8775510204081636,4.081632653061225,4.285714285714286,4.4897959183673475,4.6938775510204085,4.8979591836734695,5.1020408163265305,5.3061224489795915,5.510204081632653,5.714285714285714,5.918367346938775,6.122448979591837,6.326530612244898,6.530612244897959,6.73469387755102,6.938775510204081,7.142857142857143,7.346938775510204,7.551020408163265,7.755102040816327,7.959183673469388,8.16326530612245,8.36734693877551,8.571428571428571,8.775510204081632,8.979591836734695,9.183673469387756,9.387755102040817,9.591836734693878,9.795918367346939,10.0],"y":[20.0,20.612244897959183,21.224489795918366,21.836734693877553,22.448979591836736,23.06122448979592,23.6734693877551,24.285714285714285,24.89795918367347,25.510204081632654,26.122448979591837,26.73469387755102,27.346938775510203,27.959183673469386,28.57142857142857,29.183673469387756,29.79591836734694,30.408163265306122,31.02040816326531,31.63265306122449,32.244897959183675,32.85714285714286,33.46938775510204,34.08163265306123,34.69387755102041,35.30612244897959,35.91836734693877,36.53061224489796,37.14285714285714,37.755102040816325,38.36734693877551,38.9795918367347,39.59183673469388,40.20408163265306,40.816326530612244,41.42857142857143,42.04081632653062,42.6530612244898,43.26530612244898,43.87755102040816,44.48979591836735,45.10204081632653,45.714285714285715,46.326530612244895,46.93877551020408,47.55102040816327,48.163265306122454,48.775510204081634,49.38775510204081,50.0],"type":"scatter","xaxis":"x","yaxis":"y2"},{"line":{"color":"black","dash":"dot"},"marker":{"color":"black"},"mode":"lines","name":"critical crack position","x":[0.0,10.0],"y":[35.0,35.0],"type":"scatter","xaxis":"x","yaxis":"y2"}],                        {"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":{"anchor":"y","domain":[0.0,0.94],"title":{"text":"Displacement"}},"yaxis":{"anchor":"x","domain":[0.0,1.0],"title":{"font":{"color":"blue"},"text":"Force"},"tickfont":{"color":"blue"}},"yaxis2":{"anchor":"x","overlaying":"y","side":"right","title":{"font":{"color":"black"},"text":"Crack position"},"tickfont":{"color":"black"}},"title":{"text":"Crack propagation"}},                        {"responsive": true}                    )                };                            </script>        </div>'}

Plot of energy_strain_history_and_2_more_vs_displacement_history

figures["energy_strain_history_and_2_more_vs_displacement_history"]

Plot of crack_propagation

figures["crack_propagation"]

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

Download Python source code: plot_MockMultiCurves_Dummy.py

Download Jupyter notebook: plot_MockMultiCurves_Dummy.ipynb

Gallery generated by mkdocs-gallery