.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "api/gallery/structural_engineering/plot_structural_engineering_models.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code or to run this example in your browser via JupyterLite. .. rst-class:: sphx-glr-example-title .. _sphx_glr_api_gallery_structural_engineering_plot_structural_engineering_models.py: Beam deflection under a uniform load ==================================== Compute an inspectable engineering model using SI inputs. See the linked domain guide for assumptions and benchmark checks. .. GENERATED FROM PYTHON SOURCE LINES 8-21 .. image-sg:: /api/gallery/structural_engineering/images/sphx_glr_plot_structural_engineering_models_001.png :alt: plot structural engineering models :srcset: /api/gallery/structural_engineering/images/sphx_glr_plot_structural_engineering_models_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none {'max_abs_shear': 5000.0, 'max_abs_moment': 6250.0, 'max_abs_deflection': 0.010172526041666666, 'reactions': (5000.0, 5000.0)} | .. code-block:: Python import matplotlib.pyplot as plt from engineeringkit.structural_engineering import SimplySupportedBeam result = SimplySupportedBeam(5, 200e9, 8e-6).solve_uniform_load(2000) print(result.summary()) fig, axes = result.plot() for ax, label in zip(axes, ["shear [N]", "moment [N m]", "deflection [m]"]): ax.set_ylabel(label) fig.tight_layout() plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.143 seconds) .. _sphx_glr_download_api_gallery_structural_engineering_plot_structural_engineering_models.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: lite-badge .. image:: images/jupyterlite_badge_logo.svg :target: ../../../lite/lab/index.html?path=api/gallery/structural_engineering/plot_structural_engineering_models.ipynb :alt: Launch JupyterLite :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_structural_engineering_models.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_structural_engineering_models.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_structural_engineering_models.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_