Skip to content

Note

Click here to download the full example code

Usage of the BendingTestAnalytical

BendingTestAnalytical is a simple model implemented for testing and training purpose.

from __future__ import annotations

import logging

from gemseo.core.discipline import Discipline
from numpy import array

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

activate_logger(level=logging.INFO)

Introduction

BendingTestAnalytical is based on Bernoulli beam theory. It is configured on imposed displacement. It computes the reaction forces and the displacement and moment along the beam.

First, let's instantiate the model from the API:

model_name = "BendingTestAnalytical"
load_case = "Cantilever"
model_settings = IntegratedModelSettings(
    directory_archive_root=EXAMPLE_RUNS_DIR / "archive/basic_usage",
    directory_scratch_root=EXAMPLE_RUNS_DIR / "scratch/basic_usage",
    cache_file_path=EXAMPLE_RUNS_DIR
    / f"caches/basic_usage/{model_name}_{load_case}_cache.hdf",
)

model = create_model(
    model_name,
    load_case,
    model_options=model_settings,
)
model.set_cache(Discipline.CacheType.NONE)

The model description can be accessed like this: Note that the load case contains the names of the boundary conditions, and the output variables to be plotted on x-y plots:

print(model.description)

Out:

Model BendingTestAnalytical:  An analytical model for the bending of a parallelepipedic beam

Load case:
   Load case Cantilever: A cantilever load case.

   Boundary condition variables:
   ['imposed_dplt', 'relative_dplt_location']

   Plot parameters:
   {
    "curves": []
}
   Load:
   Load(direction='', sign='', type='')

Default values:

   Default geometrical variables:
   {"height": [40.0], "length": [600.0], "width": [30.0]}

   Default numerical variables:
   {}

   Default boundary conditions variables:
   {"imposed_dplt": [-5.0], "relative_dplt_location": [1.0]}

   Default material variables:
   {"nu_p": [0.3], "young_modulus": [210000.0]}
model_inputs:
   [
    "length",
    "width",
    "height",
    "imposed_dplt",
    "relative_dplt_location",
    "young_modulus",
    "nu_p"
]
model_outputs:
   [
    "reaction_forces",
    "moment",
    "moment_grid",
    "dplt",
    "dplt_grid",
    "maximum_dplt",
    "location_max_dplt",
    "dplt_at_force_location",
    "model",
    "load_case",
    "error_code",
    "description",
    "job_name",
    "persistent_result_files",
    "n_cpus",
    "date",
    "cpu_time",
    "user",
    "machine",
    "vims_git_version",
    "directory_archive_root",
    "directory_archive_job",
    "directory_scratch_root",
    "directory_scratch_job"
]

An illustration of the model can be shown:

model.show_image()
# and the path to the image accessed like this:
model.image_path

plot 01 basic usage

Out:

WindowsPath('C:/Users/sebastien.bocquet/Dev/vimseo/src/vimseo/problems/load_cases/Beam_Cantilever.png')

Specific image can also be associated with the load case:

model.load_case.show_image()

plot 01 basic usage

Executing the model with default parameters is straightforward:

model.execute()

Out:

    INFO - 23:52:31: Current root directory of job directory is C:\Users\sebastien.bocquet\Dev\vimseo\docs\runnable_examples\model_runs\archive\basic_usage.

{'young_modulus': array([210000.]), 'nu_p': array([0.3]), 'length': array([600.]), 'width': array([30.]), 'height': array([40.]), 'imposed_dplt': array([-5.]), 'relative_dplt_location': array([1.]), 'reaction_forces': array([-2333.33333333]), 'moment': array([1400000.,       0.]), 'moment_grid': array([  0., 600.]), 'dplt': array([ 0.00000000e+00, -7.62651513e-04, -3.04029995e-03, -6.81748616e-03,
       -1.20787510e-02, -1.88086353e-02, -2.69916799e-02, -3.66124257e-02,
       -4.76554134e-02, -6.01051841e-02, -7.39462784e-02, -8.91632373e-02,
       -1.05740602e-01, -1.23662912e-01, -1.42914710e-01, -1.63480535e-01,
       -1.85344930e-01, -2.08492434e-01, -2.32907588e-01, -2.58574934e-01,
       -2.85479012e-01, -3.13604363e-01, -3.42935528e-01, -3.73457048e-01,
       -4.05153463e-01, -4.38009315e-01, -4.72009144e-01, -5.07137491e-01,
       -5.43378897e-01, -5.80717902e-01, -6.19139049e-01, -6.58626877e-01,
       -6.99165927e-01, -7.40740741e-01, -7.83335858e-01, -8.26935821e-01,
       -8.71525169e-01, -9.17088444e-01, -9.63610186e-01, -1.01107494e+00,
       -1.05946724e+00, -1.10877163e+00, -1.15897265e+00, -1.21005484e+00,
       -1.26200274e+00, -1.31480090e+00, -1.36843385e+00, -1.42288614e+00,
       -1.47814230e+00, -1.53418688e+00, -1.59100442e+00, -1.64857946e+00,
       -1.70689653e+00, -1.76594019e+00, -1.82569497e+00, -1.88614540e+00,
       -1.94727605e+00, -2.00907143e+00, -2.07151610e+00, -2.13459459e+00,
       -2.19829145e+00, -2.26259122e+00, -2.32747844e+00, -2.39293764e+00,
       -2.45895337e+00, -2.52551018e+00, -2.59259259e+00, -2.66018516e+00,
       -2.72827242e+00, -2.79683891e+00, -2.86586918e+00, -2.93534776e+00,
       -3.00525920e+00, -3.07558804e+00, -3.14631882e+00, -3.21743607e+00,
       -3.28892434e+00, -3.36076818e+00, -3.43295211e+00, -3.50546069e+00,
       -3.57827845e+00, -3.65138993e+00, -3.72477968e+00, -3.79843224e+00,
       -3.87233214e+00, -3.94646393e+00, -4.02081214e+00, -4.09536133e+00,
       -4.17009602e+00, -4.24500077e+00, -4.32006011e+00, -4.39525857e+00,
       -4.47058072e+00, -4.54601107e+00, -4.62153419e+00, -4.69713459e+00,
       -4.77279684e+00, -4.84850546e+00, -4.92424500e+00, -5.00000000e+00]), 'dplt_grid': array([  0.        ,   6.06060606,  12.12121212,  18.18181818,
        24.24242424,  30.3030303 ,  36.36363636,  42.42424242,
        48.48484848,  54.54545455,  60.60606061,  66.66666667,
        72.72727273,  78.78787879,  84.84848485,  90.90909091,
        96.96969697, 103.03030303, 109.09090909, 115.15151515,
       121.21212121, 127.27272727, 133.33333333, 139.39393939,
       145.45454545, 151.51515152, 157.57575758, 163.63636364,
       169.6969697 , 175.75757576, 181.81818182, 187.87878788,
       193.93939394, 200.        , 206.06060606, 212.12121212,
       218.18181818, 224.24242424, 230.3030303 , 236.36363636,
       242.42424242, 248.48484848, 254.54545455, 260.60606061,
       266.66666667, 272.72727273, 278.78787879, 284.84848485,
       290.90909091, 296.96969697, 303.03030303, 309.09090909,
       315.15151515, 321.21212121, 327.27272727, 333.33333333,
       339.39393939, 345.45454545, 351.51515152, 357.57575758,
       363.63636364, 369.6969697 , 375.75757576, 381.81818182,
       387.87878788, 393.93939394, 400.        , 406.06060606,
       412.12121212, 418.18181818, 424.24242424, 430.3030303 ,
       436.36363636, 442.42424242, 448.48484848, 454.54545455,
       460.60606061, 466.66666667, 472.72727273, 478.78787879,
       484.84848485, 490.90909091, 496.96969697, 503.03030303,
       509.09090909, 515.15151515, 521.21212121, 527.27272727,
       533.33333333, 539.39393939, 545.45454545, 551.51515152,
       557.57575758, 563.63636364, 569.6969697 , 575.75757576,
       581.81818182, 587.87878788, 593.93939394, 600.        ]), 'dplt_at_force_location': array([-5.]), 'maximum_dplt': array([-5.]), 'location_max_dplt': array([600.]), 'model': array(['BendingTestAnalytical'], dtype='<U21'), 'load_case': array(['Cantilever'], dtype='<U10'), 'error_code': array([-1]), 'description': array([''], dtype='<U1'), 'job_name': array([''], dtype='<U1'), 'persistent_result_files': array([''], dtype='<U1'), 'n_cpus': array([0]), 'date': array(['2026-09-03 23:52:31.824290'], dtype='<U26'), 'cpu_time': array([0.06850624]), 'user': array(['sebastien.bocquet'], dtype='<U17'), 'machine': array(['PCBM20250036'], dtype='<U12'), 'vims_git_version': array(['b7d1160379511fbe2c21194e6fa38c68e33d88e2'], dtype='<U40'), 'directory_archive_root': array(['C:\\Users\\sebastien.bocquet\\Dev\\vimseo\\docs\\runnable_examples\\model_runs\\archive\\basic_usage'],
      dtype='<U91'), 'directory_archive_job': array(['C:\\Users\\sebastien.bocquet\\Dev\\vimseo\\docs\\runnable_examples\\model_runs\\archive\\basic_usage\\BendingTestAnalytical\\Cantilever\\33'],
      dtype='<U127'), 'directory_scratch_root': array(['C:\\Users\\sebastien.bocquet\\Dev\\vimseo\\docs\\runnable_examples\\model_runs\\scratch\\basic_usage'],
      dtype='<U91'), 'directory_scratch_job': array([''], dtype='<U1')}

And input parameters could also be redefined. First get the list of parameters:

model.get_input_data_names()

Out:

['length', 'width', 'height', 'imposed_dplt', 'relative_dplt_location', 'young_modulus', 'nu_p']

Then modify inputs, for instance, Young's modulus:

model.execute({"young_modulus": array([195000.0])})

Out:

    INFO - 23:52:31: Current root directory of job directory is C:\Users\sebastien.bocquet\Dev\vimseo\docs\runnable_examples\model_runs\archive\basic_usage.

{'length': array([600.]), 'width': array([30.]), 'height': array([40.]), 'imposed_dplt': array([-5.]), 'relative_dplt_location': array([1.]), 'young_modulus': array([195000.]), 'nu_p': array([0.3]), 'reaction_forces': array([-2166.66666667]), 'moment': array([1300000.,       0.]), 'moment_grid': array([  0., 600.]), 'dplt': array([ 0.00000000e+00, -7.62651513e-04, -3.04029995e-03, -6.81748616e-03,
       -1.20787510e-02, -1.88086353e-02, -2.69916799e-02, -3.66124257e-02,
       -4.76554134e-02, -6.01051841e-02, -7.39462784e-02, -8.91632373e-02,
       -1.05740602e-01, -1.23662912e-01, -1.42914710e-01, -1.63480535e-01,
       -1.85344930e-01, -2.08492434e-01, -2.32907588e-01, -2.58574934e-01,
       -2.85479012e-01, -3.13604363e-01, -3.42935528e-01, -3.73457048e-01,
       -4.05153463e-01, -4.38009315e-01, -4.72009144e-01, -5.07137491e-01,
       -5.43378897e-01, -5.80717902e-01, -6.19139049e-01, -6.58626877e-01,
       -6.99165927e-01, -7.40740741e-01, -7.83335858e-01, -8.26935821e-01,
       -8.71525169e-01, -9.17088444e-01, -9.63610186e-01, -1.01107494e+00,
       -1.05946724e+00, -1.10877163e+00, -1.15897265e+00, -1.21005484e+00,
       -1.26200274e+00, -1.31480090e+00, -1.36843385e+00, -1.42288614e+00,
       -1.47814230e+00, -1.53418688e+00, -1.59100442e+00, -1.64857946e+00,
       -1.70689653e+00, -1.76594019e+00, -1.82569497e+00, -1.88614540e+00,
       -1.94727605e+00, -2.00907143e+00, -2.07151610e+00, -2.13459459e+00,
       -2.19829145e+00, -2.26259122e+00, -2.32747844e+00, -2.39293764e+00,
       -2.45895337e+00, -2.52551018e+00, -2.59259259e+00, -2.66018516e+00,
       -2.72827242e+00, -2.79683891e+00, -2.86586918e+00, -2.93534776e+00,
       -3.00525920e+00, -3.07558804e+00, -3.14631882e+00, -3.21743607e+00,
       -3.28892434e+00, -3.36076818e+00, -3.43295211e+00, -3.50546069e+00,
       -3.57827845e+00, -3.65138993e+00, -3.72477968e+00, -3.79843224e+00,
       -3.87233214e+00, -3.94646393e+00, -4.02081214e+00, -4.09536133e+00,
       -4.17009602e+00, -4.24500077e+00, -4.32006011e+00, -4.39525857e+00,
       -4.47058072e+00, -4.54601107e+00, -4.62153419e+00, -4.69713459e+00,
       -4.77279684e+00, -4.84850546e+00, -4.92424500e+00, -5.00000000e+00]), 'dplt_grid': array([  0.        ,   6.06060606,  12.12121212,  18.18181818,
        24.24242424,  30.3030303 ,  36.36363636,  42.42424242,
        48.48484848,  54.54545455,  60.60606061,  66.66666667,
        72.72727273,  78.78787879,  84.84848485,  90.90909091,
        96.96969697, 103.03030303, 109.09090909, 115.15151515,
       121.21212121, 127.27272727, 133.33333333, 139.39393939,
       145.45454545, 151.51515152, 157.57575758, 163.63636364,
       169.6969697 , 175.75757576, 181.81818182, 187.87878788,
       193.93939394, 200.        , 206.06060606, 212.12121212,
       218.18181818, 224.24242424, 230.3030303 , 236.36363636,
       242.42424242, 248.48484848, 254.54545455, 260.60606061,
       266.66666667, 272.72727273, 278.78787879, 284.84848485,
       290.90909091, 296.96969697, 303.03030303, 309.09090909,
       315.15151515, 321.21212121, 327.27272727, 333.33333333,
       339.39393939, 345.45454545, 351.51515152, 357.57575758,
       363.63636364, 369.6969697 , 375.75757576, 381.81818182,
       387.87878788, 393.93939394, 400.        , 406.06060606,
       412.12121212, 418.18181818, 424.24242424, 430.3030303 ,
       436.36363636, 442.42424242, 448.48484848, 454.54545455,
       460.60606061, 466.66666667, 472.72727273, 478.78787879,
       484.84848485, 490.90909091, 496.96969697, 503.03030303,
       509.09090909, 515.15151515, 521.21212121, 527.27272727,
       533.33333333, 539.39393939, 545.45454545, 551.51515152,
       557.57575758, 563.63636364, 569.6969697 , 575.75757576,
       581.81818182, 587.87878788, 593.93939394, 600.        ]), 'dplt_at_force_location': array([-5.]), 'maximum_dplt': array([-5.]), 'location_max_dplt': array([600.]), 'model': array(['BendingTestAnalytical'], dtype='<U21'), 'load_case': array(['Cantilever'], dtype='<U10'), 'error_code': array([-1]), 'description': array([''], dtype='<U1'), 'job_name': array([''], dtype='<U1'), 'persistent_result_files': array([''], dtype='<U1'), 'n_cpus': array([0]), 'date': array(['2026-09-03 23:52:31.887597'], dtype='<U26'), 'cpu_time': array([0.01777697]), 'user': array(['sebastien.bocquet'], dtype='<U17'), 'machine': array(['PCBM20250036'], dtype='<U12'), 'vims_git_version': array(['b7d1160379511fbe2c21194e6fa38c68e33d88e2'], dtype='<U40'), 'directory_archive_root': array(['C:\\Users\\sebastien.bocquet\\Dev\\vimseo\\docs\\runnable_examples\\model_runs\\archive\\basic_usage'],
      dtype='<U91'), 'directory_archive_job': array(['C:\\Users\\sebastien.bocquet\\Dev\\vimseo\\docs\\runnable_examples\\model_runs\\archive\\basic_usage\\BendingTestAnalytical\\Cantilever\\34'],
      dtype='<U127'), 'directory_scratch_root': array(['C:\\Users\\sebastien.bocquet\\Dev\\vimseo\\docs\\runnable_examples\\model_runs\\scratch\\basic_usage'],
      dtype='<U91'), 'directory_scratch_job': array([''], dtype='<U1')}

Switching load cases: A new model must be created to switch to another load case:

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

# It is also possible to specify values for other inputs:
output_data = model.execute({"height": array([20.0])})
print(output_data)

Out:

    INFO - 23:52:31: Found 2 entries in the cache file : C:\Users\sebastien.bocquet\Dev\vimseo\docs\runnable_examples\model_runs\caches\basic_usage\BendingTestAnalytical_ThreePoints_cache.hdf node : node
{'length': array([600.]), 'width': array([30.]), 'height': array([20.]), 'imposed_dplt': array([-5.]), 'relative_support_location': array([0.5]), 'young_modulus': array([210000.]), 'nu_p': array([0.3]), 'cpu_time': array([0.04554367]), 'date': array(['2026-03-17 09:04:42.822244'], dtype='<U26'), 'description': array([''], dtype='<U1'), 'directory_archive_job': array(['C:\\Users\\sebastien.bocquet\\PycharmProjects\\vimseo\\docs\\runnable_examples\\model_runs\\archive\\basic_usage\\BendingTestAnalytical\\ThreePoints\\1'],
      dtype='<U139'), 'directory_archive_root': array(['C:\\Users\\sebastien.bocquet\\PycharmProjects\\vimseo\\docs\\runnable_examples\\model_runs\\archive\\basic_usage'],
      dtype='<U103'), 'directory_scratch_job': array([''], dtype='<U1'), 'directory_scratch_root': array(['C:\\Users\\sebastien.bocquet\\PycharmProjects\\vimseo\\docs\\runnable_examples\\model_runs\\scratch\\basic_usage'],
      dtype='<U103'), 'dplt': array([ 0.00000000e+00, -1.51499692e-01, -3.02875712e-01, -4.54004384e-01,
       -6.04762037e-01, -7.55024997e-01, -9.04669592e-01, -1.05357215e+00,
       -1.20160899e+00, -1.34865645e+00, -1.49459084e+00, -1.63928851e+00,
       -1.78262577e+00, -1.92447895e+00, -2.06472438e+00, -2.20323838e+00,
       -2.33989729e+00, -2.47457742e+00, -2.60715511e+00, -2.73750669e+00,
       -2.86550847e+00, -2.99103678e+00, -3.11396796e+00, -3.23417833e+00,
       -3.35154421e+00, -3.46594194e+00, -3.57724784e+00, -3.68533823e+00,
       -3.79008945e+00, -3.89137781e+00, -3.98907965e+00, -4.08307130e+00,
       -4.17322908e+00, -4.25942931e+00, -4.34154833e+00, -4.41946245e+00,
       -4.49304802e+00, -4.56218135e+00, -4.62673877e+00, -4.68659661e+00,
       -4.74163119e+00, -4.79171884e+00, -4.83673589e+00, -4.87655867e+00,
       -4.91106350e+00, -4.94012670e+00, -4.96362461e+00, -4.98143356e+00,
       -4.99342986e+00, -4.99948985e+00, -4.99948985e+00, -4.99342986e+00,
       -4.98143356e+00, -4.96362461e+00, -4.94012670e+00, -4.91106350e+00,
       -4.87655867e+00, -4.83673589e+00, -4.79171884e+00, -4.74163119e+00,
       -4.68659661e+00, -4.62673877e+00, -4.56218135e+00, -4.49304802e+00,
       -4.41946245e+00, -4.34154833e+00, -4.25942931e+00, -4.17322908e+00,
       -4.08307130e+00, -3.98907965e+00, -3.89137781e+00, -3.79008945e+00,
       -3.68533823e+00, -3.57724784e+00, -3.46594194e+00, -3.35154421e+00,
       -3.23417833e+00, -3.11396796e+00, -2.99103678e+00, -2.86550847e+00,
       -2.73750669e+00, -2.60715511e+00, -2.47457742e+00, -2.33989729e+00,
       -2.20323838e+00, -2.06472438e+00, -1.92447895e+00, -1.78262577e+00,
       -1.63928851e+00, -1.49459084e+00, -1.34865645e+00, -1.20160899e+00,
       -1.05357215e+00, -9.04669592e-01, -7.55024997e-01, -6.04762037e-01,
       -4.54004384e-01, -3.02875712e-01, -1.51499692e-01, -1.55752418e-17]), 'dplt_at_force_location': array([-4.99948985]), 'dplt_grid': array([  0.        ,   6.06060606,  12.12121212,  18.18181818,
        24.24242424,  30.3030303 ,  36.36363636,  42.42424242,
        48.48484848,  54.54545455,  60.60606061,  66.66666667,
        72.72727273,  78.78787879,  84.84848485,  90.90909091,
        96.96969697, 103.03030303, 109.09090909, 115.15151515,
       121.21212121, 127.27272727, 133.33333333, 139.39393939,
       145.45454545, 151.51515152, 157.57575758, 163.63636364,
       169.6969697 , 175.75757576, 181.81818182, 187.87878788,
       193.93939394, 200.        , 206.06060606, 212.12121212,
       218.18181818, 224.24242424, 230.3030303 , 236.36363636,
       242.42424242, 248.48484848, 254.54545455, 260.60606061,
       266.66666667, 272.72727273, 278.78787879, 284.84848485,
       290.90909091, 296.96969697, 303.03030303, 309.09090909,
       315.15151515, 321.21212121, 327.27272727, 333.33333333,
       339.39393939, 345.45454545, 351.51515152, 357.57575758,
       363.63636364, 369.6969697 , 375.75757576, 381.81818182,
       387.87878788, 393.93939394, 400.        , 406.06060606,
       412.12121212, 418.18181818, 424.24242424, 430.3030303 ,
       436.36363636, 442.42424242, 448.48484848, 454.54545455,
       460.60606061, 466.66666667, 472.72727273, 478.78787879,
       484.84848485, 490.90909091, 496.96969697, 503.03030303,
       509.09090909, 515.15151515, 521.21212121, 527.27272727,
       533.33333333, 539.39393939, 545.45454545, 551.51515152,
       557.57575758, 563.63636364, 569.6969697 , 575.75757576,
       581.81818182, 587.87878788, 593.93939394, 600.        ]), 'error_code': array([0]), 'job_name': array([''], dtype='<U1'), 'load_case': array(['ThreePoints'], dtype='<U11'), 'location_max_dplt': array([296.96969697]), 'machine': array(['B20191729'], dtype='<U9'), 'maximum_dplt': array([-4.99948985]), 'model': array(['BendingTestAnalytical'], dtype='<U21'), 'moment': array([      0., -700000.,       0.]), 'moment_grid': array([  0., 300., 600.]), 'n_cpus': array([1]), 'persistent_result_files': array([''], dtype='<U1'), 'reaction_forces': array([-4666.66666667]), 'user': array(['sebastien.bocquet'], dtype='<U17'), 'vims_git_version': array(['1b6e7132b9faba0cc93317d127a381ee76a8cb8e'], dtype='<U40')}

Post-treatment of the results

The BendingTestAnalytical provides the following outputs:

  • reaction_forces: a scalar value giving the reaction forces calculated at the
  • maximum_dplt: a scalar value giving the maximum displacement of the beam
  • location_max_dplt: a scalar value giving the location of the maximum displacement along the beam
  • displacement: an array of displacement values
  • displacement_grid: an array of sorted coordinates along the beam at which displacement are computed
  • moment: an array of moment values
  • moment_grid: an array of sorted coordinates along the beam at which
# The value of the maximum displacement along the beam can be obtained like this:

model.get_output_data()["maximum_dplt"]

Out:

array([-4.99948985])

And the outputs plotted like this:

figures = model.plot_results(save=True, show=True)

figures["dplt_vs_dplt_grid"]

Out:

    INFO - 23:52:31: Saving plots to C:\Users\sebastien.bocquet\Dev\vimseo\docs\runnable_examples\02_integrated_models
{'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="cc27b2f1-14a3-4f0d-8370-5d9f746a6472" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("cc27b2f1-14a3-4f0d-8370-5d9f746a6472")) {                    Plotly.newPlot(                        "cc27b2f1-14a3-4f0d-8370-5d9f746a6472",                        [{"line":{"color":"blue","dash":"solid","width":2},"mode":"lines","name":"dplt","showlegend":true,"x":[0.0,6.0606060606060606,12.121212121212121,18.18181818181818,24.242424242424242,30.303030303030305,36.36363636363636,42.42424242424242,48.484848484848484,54.54545454545455,60.60606060606061,66.66666666666667,72.72727272727272,78.78787878787878,84.84848484848484,90.9090909090909,96.96969696969697,103.03030303030303,109.0909090909091,115.15151515151516,121.21212121212122,127.27272727272727,133.33333333333334,139.3939393939394,145.45454545454544,151.5151515151515,157.57575757575756,163.63636363636363,169.6969696969697,175.75757575757575,181.8181818181818,187.87878787878788,193.93939393939394,200.0,206.06060606060606,212.12121212121212,218.1818181818182,224.24242424242425,230.3030303030303,236.36363636363637,242.42424242424244,248.48484848484847,254.54545454545453,260.6060606060606,266.6666666666667,272.72727272727275,278.7878787878788,284.8484848484849,290.9090909090909,296.96969696969694,303.030303030303,309.09090909090907,315.1515151515151,321.2121212121212,327.27272727272725,333.3333333333333,339.3939393939394,345.45454545454544,351.5151515151515,357.57575757575756,363.6363636363636,369.6969696969697,375.75757575757575,381.8181818181818,387.8787878787879,393.93939393939394,400.0,406.06060606060606,412.1212121212121,418.1818181818182,424.24242424242425,430.3030303030303,436.3636363636364,442.42424242424244,448.4848484848485,454.54545454545456,460.6060606060606,466.6666666666667,472.72727272727275,478.7878787878788,484.8484848484849,490.9090909090909,496.96969696969694,503.030303030303,509.09090909090907,515.1515151515151,521.2121212121212,527.2727272727273,533.3333333333334,539.3939393939394,545.4545454545455,551.5151515151515,557.5757575757576,563.6363636363636,569.6969696969697,575.7575757575758,581.8181818181818,587.8787878787879,593.9393939393939,600.0],"y":[0.0,-0.15149969236286967,-0.30287571150748394,-0.4540043842155874,-0.6047620372689246,-0.7550249974492403,-0.9046695915382788,-1.053572146317785,-1.2016089885695034,-1.3486564450751786,-1.4945908426165553,-1.6392885079753778,-1.7826257679333906,-1.9244789492723386,-2.0647243787739664,-2.203238383220018,-2.339897289392239,-2.4745774240723737,-2.607155114042166,-2.7375066860833615,-2.8655084669777042,-2.9910367835069387,-3.1139679624528105,-3.2341783305970626,-3.35154421472144,-3.465941941607688,-3.577247838037551,-3.6853382307927736,-3.7900894466551,-3.8913778124062754,-3.9890796548280445,-4.0830713007021515,-4.17322907681034,-4.259429309934356,-4.3415483268559445,-4.419462454356849,-4.493048019218815,-4.562181348223586,-4.626738768152906,-4.686596605788521,-4.741631187912176,-4.791718841305615,-4.836735892750582,-4.876558669028823,-4.911063496922081,-4.940126703212101,-4.963624614680628,-4.981433558109407,-4.993429860280181,-4.999489847974696,-4.999489847974696,-4.993429860280181,-4.981433558109407,-4.963624614680628,-4.940126703212101,-4.911063496922081,-4.876558669028823,-4.836735892750583,-4.791718841305616,-4.741631187912176,-4.686596605788521,-4.626738768152906,-4.562181348223586,-4.493048019218815,-4.419462454356849,-4.3415483268559445,-4.259429309934356,-4.17322907681034,-4.0830713007021515,-3.9890796548280445,-3.8913778124062754,-3.7900894466551,-3.6853382307927736,-3.577247838037551,-3.465941941607688,-3.35154421472144,-3.2341783305970617,-3.1139679624528096,-2.9910367835069387,-2.8655084669777042,-2.7375066860833615,-2.6071551140421674,-2.474577424072375,-2.3398972893922405,-2.2032383832200195,-2.0647243787739678,-1.9244789492723386,-1.782625767933392,-1.6392885079753776,-1.4945908426165564,-1.3486564450751783,-1.2016089885695045,-1.0535721463177845,-0.9046695915382795,-0.7550249974492393,-0.604762037268925,-0.454004384215589,-0.302875711507484,-0.15149969236287109,-1.5575241834112075e-17],"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":"dplt_grid"},"showgrid":true},"yaxis":{"title":{"text":""},"showgrid":true}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 23:52:32: Plot BendingTestAnalytical_ThreePoints_dplt_vs_dplt_grid.html is saved in C:\Users\sebastien.bocquet\Dev\vimseo\docs\runnable_examples\02_integrated_models
{'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="c83d0625-e6a0-4ecb-b1b4-e1c2ac8616ff" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("c83d0625-e6a0-4ecb-b1b4-e1c2ac8616ff")) {                    Plotly.newPlot(                        "c83d0625-e6a0-4ecb-b1b4-e1c2ac8616ff",                        [{"line":{"color":"blue","dash":"solid","width":2},"mode":"lines","name":"moment","showlegend":true,"x":[0.0,300.0,600.0],"y":[0.0,-700000.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"]}},"title":{"text":""},"xaxis":{"title":{"text":"moment_grid"},"showgrid":true},"yaxis":{"title":{"text":""},"showgrid":true}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 23:52:32: Plot BendingTestAnalytical_ThreePoints_moment_vs_moment_grid.html is saved in C:\Users\sebastien.bocquet\Dev\vimseo\docs\runnable_examples\02_integrated_models

And now, we want to change the support location. By default, it is located at both ends of the beam. It is now positioned at 0.3 times the half length of the beam.

output_data = model.execute({"relative_support_location": array([0.3])})

Note that the reaction force has increased compared to the previous simulation, because the support are closer to the beam center.

print(output_data)

Out:

{'length': array([600.]), 'width': array([30.]), 'height': array([40.]), 'imposed_dplt': array([-5.]), 'relative_support_location': array([0.3]), 'young_modulus': array([210000.]), 'nu_p': array([0.3]), 'cpu_time': array([0.01528096]), 'date': array(['2026-03-17 09:04:43.595295'], dtype='<U26'), 'description': array([''], dtype='<U1'), 'directory_archive_job': array(['C:\\Users\\sebastien.bocquet\\PycharmProjects\\vimseo\\docs\\runnable_examples\\model_runs\\archive\\basic_usage\\BendingTestAnalytical\\ThreePoints\\2'],
      dtype='<U139'), 'directory_archive_root': array(['C:\\Users\\sebastien.bocquet\\PycharmProjects\\vimseo\\docs\\runnable_examples\\model_runs\\archive\\basic_usage'],
      dtype='<U103'), 'directory_scratch_job': array([''], dtype='<U1'), 'directory_scratch_root': array(['C:\\Users\\sebastien.bocquet\\PycharmProjects\\vimseo\\docs\\runnable_examples\\model_runs\\scratch\\basic_usage'],
      dtype='<U103'), 'dplt': array([ 0.00000000e+00, -1.51499692e-01, -3.02875712e-01, -4.54004384e-01,
       -6.04762037e-01, -7.55024997e-01, -9.04669592e-01, -1.05357215e+00,
       -1.20160899e+00, -1.34865645e+00, -1.49459084e+00, -1.63928851e+00,
       -1.78262577e+00, -1.92447895e+00, -2.06472438e+00, -2.20323838e+00,
       -2.33989729e+00, -2.47457742e+00, -2.60715511e+00, -2.73750669e+00,
       -2.86550847e+00, -2.99103678e+00, -3.11396796e+00, -3.23417833e+00,
       -3.35154421e+00, -3.46594194e+00, -3.57724784e+00, -3.68533823e+00,
       -3.79008945e+00, -3.89137781e+00, -3.98907965e+00, -4.08307130e+00,
       -4.17322908e+00, -4.25942931e+00, -4.34154833e+00, -4.41946245e+00,
       -4.49304802e+00, -4.56218135e+00, -4.62673877e+00, -4.68659661e+00,
       -4.74163119e+00, -4.79171884e+00, -4.83673589e+00, -4.87655867e+00,
       -4.91106350e+00, -4.94012670e+00, -4.96362461e+00, -4.98143356e+00,
       -4.99342986e+00, -4.99948985e+00, -4.99948985e+00, -4.99342986e+00,
       -4.98143356e+00, -4.96362461e+00, -4.94012670e+00, -4.91106350e+00,
       -4.87655867e+00, -4.83673589e+00, -4.79171884e+00, -4.74163119e+00,
       -4.68659661e+00, -4.62673877e+00, -4.56218135e+00, -4.49304802e+00,
       -4.41946245e+00, -4.34154833e+00, -4.25942931e+00, -4.17322908e+00,
       -4.08307130e+00, -3.98907965e+00, -3.89137781e+00, -3.79008945e+00,
       -3.68533823e+00, -3.57724784e+00, -3.46594194e+00, -3.35154421e+00,
       -3.23417833e+00, -3.11396796e+00, -2.99103678e+00, -2.86550847e+00,
       -2.73750669e+00, -2.60715511e+00, -2.47457742e+00, -2.33989729e+00,
       -2.20323838e+00, -2.06472438e+00, -1.92447895e+00, -1.78262577e+00,
       -1.63928851e+00, -1.49459084e+00, -1.34865645e+00, -1.20160899e+00,
       -1.05357215e+00, -9.04669592e-01, -7.55024997e-01, -6.04762037e-01,
       -4.54004384e-01, -3.02875712e-01, -1.51499692e-01, -1.21972744e-19]), 'dplt_at_force_location': array([-4.99948985]), 'dplt_grid': array([120.        , 123.63636364, 127.27272727, 130.90909091,
       134.54545455, 138.18181818, 141.81818182, 145.45454545,
       149.09090909, 152.72727273, 156.36363636, 160.        ,
       163.63636364, 167.27272727, 170.90909091, 174.54545455,
       178.18181818, 181.81818182, 185.45454545, 189.09090909,
       192.72727273, 196.36363636, 200.        , 203.63636364,
       207.27272727, 210.90909091, 214.54545455, 218.18181818,
       221.81818182, 225.45454545, 229.09090909, 232.72727273,
       236.36363636, 240.        , 243.63636364, 247.27272727,
       250.90909091, 254.54545455, 258.18181818, 261.81818182,
       265.45454545, 269.09090909, 272.72727273, 276.36363636,
       280.        , 283.63636364, 287.27272727, 290.90909091,
       294.54545455, 298.18181818, 301.81818182, 305.45454545,
       309.09090909, 312.72727273, 316.36363636, 320.        ,
       323.63636364, 327.27272727, 330.90909091, 334.54545455,
       338.18181818, 341.81818182, 345.45454545, 349.09090909,
       352.72727273, 356.36363636, 360.        , 363.63636364,
       367.27272727, 370.90909091, 374.54545455, 378.18181818,
       381.81818182, 385.45454545, 389.09090909, 392.72727273,
       396.36363636, 400.        , 403.63636364, 407.27272727,
       410.90909091, 414.54545455, 418.18181818, 421.81818182,
       425.45454545, 429.09090909, 432.72727273, 436.36363636,
       440.        , 443.63636364, 447.27272727, 450.90909091,
       454.54545455, 458.18181818, 461.81818182, 465.45454545,
       469.09090909, 472.72727273, 476.36363636, 480.        ]), 'error_code': array([0]), 'job_name': array([''], dtype='<U1'), 'load_case': array(['ThreePoints'], dtype='<U11'), 'location_max_dplt': array([298.18181818]), 'machine': array(['B20191729'], dtype='<U9'), 'maximum_dplt': array([-4.99948985]), 'model': array(['BendingTestAnalytical'], dtype='<U21'), 'moment': array([        0.        , -15555555.55555555,         0.        ]), 'moment_grid': array([120., 300., 480.]), 'n_cpus': array([1]), 'persistent_result_files': array([''], dtype='<U1'), 'reaction_forces': array([-172839.50617284]), 'user': array(['sebastien.bocquet'], dtype='<U17'), 'vims_git_version': array(['1b6e7132b9faba0cc93317d127a381ee76a8cb8e'], dtype='<U40')}

The outputs can be plotted again. Note that the displcement curve support now corresponds to +/- 0.3 times the half length of the beam:

figures = model.plot_results(show=True)

figures["dplt_vs_dplt_grid"]

Out:

    INFO - 23:52:32: Saving plots to C:\Users\sebastien.bocquet\Dev\vimseo\docs\runnable_examples\02_integrated_models
{'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="a1281663-9eba-42d1-a89c-9635afb13ba1" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("a1281663-9eba-42d1-a89c-9635afb13ba1")) {                    Plotly.newPlot(                        "a1281663-9eba-42d1-a89c-9635afb13ba1",                        [{"line":{"color":"blue","dash":"solid","width":2},"mode":"lines","name":"dplt","showlegend":true,"x":[120.0,123.63636363636364,127.27272727272727,130.9090909090909,134.54545454545453,138.1818181818182,141.8181818181818,145.45454545454544,149.0909090909091,152.72727272727272,156.36363636363637,160.0,163.63636363636363,167.27272727272728,170.9090909090909,174.54545454545456,178.1818181818182,181.8181818181818,185.45454545454544,189.0909090909091,192.72727272727272,196.36363636363637,200.0,203.63636363636363,207.27272727272725,210.9090909090909,214.54545454545456,218.1818181818182,221.8181818181818,225.45454545454544,229.0909090909091,232.72727272727272,236.36363636363637,240.0,243.63636363636363,247.27272727272725,250.9090909090909,254.54545454545453,258.1818181818182,261.8181818181818,265.45454545454544,269.0909090909091,272.72727272727275,276.3636363636364,280.0,283.6363636363636,287.27272727272725,290.9090909090909,294.5454545454545,298.1818181818182,301.8181818181818,305.45454545454544,309.0909090909091,312.72727272727275,316.3636363636364,320.0,323.6363636363636,327.27272727272725,330.9090909090909,334.5454545454545,338.1818181818182,341.8181818181818,345.45454545454544,349.0909090909091,352.72727272727275,356.3636363636364,360.0,363.6363636363636,367.27272727272725,370.9090909090909,374.5454545454545,378.1818181818182,381.8181818181818,385.45454545454544,389.09090909090907,392.7272727272727,396.3636363636364,400.0,403.6363636363636,407.27272727272725,410.9090909090909,414.54545454545456,418.1818181818182,421.8181818181818,425.45454545454544,429.09090909090907,432.7272727272727,436.3636363636364,440.0,443.6363636363636,447.27272727272725,450.9090909090909,454.54545454545456,458.1818181818182,461.8181818181818,465.45454545454544,469.09090909090907,472.7272727272727,476.3636363636364,480.0],"y":[0.0,-0.15149969236286986,-0.3028757115074837,-0.4540043842155873,-0.6047620372689241,-0.7550249974492405,-0.9046695915382786,-1.0535721463177845,-1.2016089885695036,-1.3486564450751783,-1.4945908426165555,-1.6392885079753776,-1.7826257679333901,-1.924478949272339,-2.0647243787739664,-2.203238383220019,-2.3398972893922396,-2.4745774240723737,-2.607155114042166,-2.737506686083362,-2.8655084669777042,-2.9910367835069396,-3.1139679624528105,-3.234178330597062,-3.3515442147214394,-3.465941941607688,-3.577247838037552,-3.6853382307927744,-3.790089446655101,-3.891377812406276,-3.989079654828045,-4.0830713007021515,-4.173229076810341,-4.259429309934357,-4.341548326855945,-4.41946245435685,-4.493048019218816,-4.562181348223587,-4.626738768152908,-4.686596605788523,-4.741631187912178,-4.7917188413056175,-4.836735892750585,-4.8765586690288245,-4.9110634969220825,-4.940126703212103,-4.96362461468063,-4.9814335581094085,-4.993429860280183,-4.999489847974698,-4.999489847974698,-4.993429860280183,-4.9814335581094085,-4.96362461468063,-4.940126703212103,-4.9110634969220825,-4.8765586690288245,-4.836735892750585,-4.7917188413056175,-4.741631187912179,-4.686596605788523,-4.626738768152908,-4.562181348223588,-4.493048019218816,-4.41946245435685,-4.341548326855945,-4.259429309934357,-4.173229076810341,-4.083071300702152,-3.989079654828046,-3.8913778124062777,-3.790089446655101,-3.6853382307927744,-3.577247838037552,-3.4659419416076895,-3.351544214721442,-3.2341783305970626,-3.113967962452811,-2.99103678350694,-2.8655084669777056,-2.7375066860833632,-2.6071551140421665,-2.474577424072374,-2.33989728939224,-2.2032383832200195,-2.0647243787739678,-1.9244789492723404,-1.7826257679333903,-1.6392885079753776,-1.4945908426165555,-1.3486564450751792,-1.2016089885695045,-1.0535721463177843,-0.9046695915382785,-0.7550249974492403,-0.6047620372689252,-0.4540043842155884,-0.3028757115074854,-0.1514996923628692,-1.2197274440461925e-19],"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":"dplt_grid"},"showgrid":true},"yaxis":{"title":{"text":""},"showgrid":true}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 23:52:32: Plot BendingTestAnalytical_ThreePoints_dplt_vs_dplt_grid.html is saved in C:\Users\sebastien.bocquet\Dev\vimseo\docs\runnable_examples\02_integrated_models
{'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="cd88bdfe-3d6f-4d96-a4da-89a60a628239" class="plotly-graph-div" style="height:525px; width:100%;"></div>            <script type="text/javascript">                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById("cd88bdfe-3d6f-4d96-a4da-89a60a628239")) {                    Plotly.newPlot(                        "cd88bdfe-3d6f-4d96-a4da-89a60a628239",                        [{"line":{"color":"blue","dash":"solid","width":2},"mode":"lines","name":"moment","showlegend":true,"x":[120.0,300.0,480.0],"y":[0.0,-15555555.555555552,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"]}},"title":{"text":""},"xaxis":{"title":{"text":"moment_grid"},"showgrid":true},"yaxis":{"title":{"text":""},"showgrid":true}},                        {"responsive": true}                    )                };                            </script>        </div>'}
    INFO - 23:52:32: Plot BendingTestAnalytical_ThreePoints_moment_vs_moment_grid.html is saved in C:\Users\sebastien.bocquet\Dev\vimseo\docs\runnable_examples\02_integrated_models

For a model running an external solver, the options of the job can be modified. The basic job options are defined in the pydantic model BaseUserJobSettings() and passed to the model's job executor. To set the number of CPUs to 2, the following command can be used: model.run.job_executor.set_options(BaseUserJobSettings(n_cpus=2)).

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

Download Python source code: plot_01_basic_usage.py

Download Jupyter notebook: plot_01_basic_usage.ipynb

Gallery generated by mkdocs-gallery