:orphan: Examples ======== These examples show end-to-end workflows for using PyDyna to create keyword files for LS-DYNA and then solve them from Python. Many are adapted from the `LS-DYNA Knowledge Base <_ls_dyna_knowledge_base>`_. .. LINKS AND REFERENCES .. _ls_dyna_knowledge_base: https://lsdyna.ansys.com/knowledge-base/ """ .. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
Airbag examples ~~~~~~~~~~~~~~~~ These examples show how to create and use airbag models. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/Airbag/images/thumb/sphx_glr_airbag_deploy_thumb.png :alt: :ref:`sphx_glr_examples_Airbag_airbag_deploy.py` .. raw:: html
Airbag deploy
.. raw:: html
.. only:: html .. image:: /examples/Airbag/images/thumb/sphx_glr_airbag_post_thumb.png :alt: :ref:`sphx_glr_examples_Airbag_airbag_post.py` .. raw:: html
Airbag deploy postprocessing
.. thumbnail-parent-div-close .. raw:: html
Beer can buckling ================= Note: due to `https://github.com/ansys/pydyna/issues/583`, this example is not available in the documentation. But it can be found in the code at `https://github.com/ansys/pydyna/tree/main/examples/Buckling_Beer_Can` .. This example is adapted from `https://lsdyna.ansys.com/example-nonlinear-2/` to run from .. Python. It is a highly nonlinear problem that whose solution will not fully converge, but .. that is expected. .. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
EM examples ~~~~~~~~~~~~ These examples show how to create and use electromagnetic models. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/EM/images/thumb/sphx_glr_em_resistive_heating_thumb.png :alt: :ref:`sphx_glr_examples_EM_em_resistive_heating.py` .. raw:: html
Resistive heating
.. raw:: html
.. only:: html .. image:: /examples/EM/images/thumb/sphx_glr_em_resistive_heating_2d_thumb.png :alt: :ref:`sphx_glr_examples_EM_em_resistive_heating_2d.py` .. raw:: html
Resistive heating 2D
.. raw:: html
.. only:: html .. image:: /examples/EM/images/thumb/sphx_glr_em_resistive_heating_2d_isopots_thumb.png :alt: :ref:`sphx_glr_examples_EM_em_resistive_heating_2d_isopots.py` .. raw:: html
Resistive heating 2D connect isopotential
.. raw:: html
.. only:: html .. image:: /examples/EM/images/thumb/sphx_glr_em_resistive_heating_2d_multi_isopots_thumb.png :alt: :ref:`sphx_glr_examples_EM_em_resistive_heating_2d_multi_isopots.py` .. raw:: html
Resistive heating 2D multiple-connect isopotential
.. raw:: html
.. only:: html .. image:: /examples/EM/images/thumb/sphx_glr_em_rlc_define_func_thumb.png :alt: :ref:`sphx_glr_examples_EM_em_rlc_define_func.py` .. raw:: html
RLC circuit by function
.. raw:: html
.. only:: html .. image:: /examples/EM/images/thumb/sphx_glr_em_rlc_isopotential_thumb.png :alt: :ref:`sphx_glr_examples_EM_em_rlc_isopotential.py` .. raw:: html
RLC circuit by isopotential
.. thumbnail-parent-div-close .. raw:: html
Explicit examples ~~~~~~~~~~~~~~~~~ These examples show how to create and use explicit models. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/Explicit/images/thumb/sphx_glr_ball_plate_thumb.png :alt: :ref:`sphx_glr_examples_Explicit_ball_plate.py` .. raw:: html
Ball plate
.. raw:: html
.. only:: html .. image:: /examples/Explicit/images/thumb/sphx_glr_belted_dummy_thumb.png :alt: :ref:`sphx_glr_examples_Explicit_belted_dummy.py` .. raw:: html
Belted dummy
.. thumbnail-parent-div-close .. raw:: html
ICFD examples ~~~~~~~~~~~~~~ These examples show how to create and use ICFD incompressible computational fluid dynamics) models. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_cylinderflow_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_cylinderflow.py` .. raw:: html
Cylinder flow
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_dam_break_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_dam_break.py` .. raw:: html
Dam break
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_dem_coupling_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_dem_coupling.py` .. raw:: html
DEM coupling
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_driven_cavity_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_driven_cavity.py` .. raw:: html
Driven cavity
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_free_convection_flow_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_free_convection_flow.py` .. raw:: html
Free convection flow
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_imposed_move_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_imposed_move.py` .. raw:: html
Imposed move
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_internal_3d_flow_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_internal_3d_flow.py` .. raw:: html
Internal 3D flow
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_mesh_adaptivity_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_mesh_adaptivity.py` .. raw:: html
Mesh adaptivity
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_mesh_morphing_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_mesh_morphing.py` .. raw:: html
Mesh morphing
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_mesh_size_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_mesh_size.py` .. raw:: html
Mesh size
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_plate_flow_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_plate_flow.py` .. raw:: html
Plate flow
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_sloshing_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_sloshing.py` .. raw:: html
Sloshing
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_strong_fsi_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_strong_fsi.py` .. raw:: html
Strong FSI
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_thermal_flow_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_thermal_flow.py` .. raw:: html
Thermal flow
.. raw:: html
.. only:: html .. image:: /examples/ICFD/images/thumb/sphx_glr_icfd_weak_fsi_thumb.png :alt: :ref:`sphx_glr_examples_ICFD_icfd_weak_fsi.py` .. raw:: html
Weak FSI
.. thumbnail-parent-div-close .. raw:: html
ISPH examples ~~~~~~~~~~~~~ These examples show how to create and use ISPH (incompressible smooth particle hydrodynamics) models. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/ISPH/images/thumb/sphx_glr_rigidtest_thumb.png :alt: :ref:`sphx_glr_examples_ISPH_rigidtest.py` .. raw:: html
Rigid test
.. thumbnail-parent-div-close .. raw:: html
Implicit examples ~~~~~~~~~~~~~~~~~~ These examples show how to create and use implicit models. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/Implicit/images/thumb/sphx_glr_camry_rc_thumb.png :alt: :ref:`sphx_glr_examples_Implicit_camry_rc.py` .. raw:: html
Implicit model
.. thumbnail-parent-div-close .. raw:: html
Pendulum ======== This example is adapted from `https://lsdyna.ansys.com/pendlum/` to run from Python. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/John_Reid_Pendulum/images/thumb/sphx_glr_plot_john_reid_pendulum_thumb.png :alt: :ref:`sphx_glr_examples_John_Reid_Pendulum_plot_john_reid_pendulum.py` .. raw:: html
John Reid pendulum example
.. thumbnail-parent-div-close .. raw:: html
Pipe ==== This example is adapted from `https://lsdyna.ansys.com/pipe-d51/` to run from Python. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/John_Reid_Pipe/images/thumb/sphx_glr_plot_john_pipe_thumb.png :alt: :ref:`sphx_glr_examples_John_Reid_Pipe_plot_john_pipe.py` .. raw:: html
John Reid pipe example
.. thumbnail-parent-div-close .. raw:: html
NVH examples ~~~~~~~~~~~~~ These examples show how to create and use NVH (noise, vibration, and harshness) models. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/NVH/images/thumb/sphx_glr_frf_plate_damping_thumb.png :alt: :ref:`sphx_glr_examples_NVH_frf_plate_damping.py` .. raw:: html
FRF for a rectangular plate
.. raw:: html
.. only:: html .. image:: /examples/NVH/images/thumb/sphx_glr_nvh_frf_solid_thumb.png :alt: :ref:`sphx_glr_examples_NVH_nvh_frf_solid.py` .. raw:: html
FRF for a colume model with a hole
.. thumbnail-parent-div-close .. raw:: html
S-ALE examples ~~~~~~~~~~~~~~ These examples show how to create and use S-ALE (Structured ALE) models. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/SALE/images/thumb/sphx_glr_sale_efp_thumb.png :alt: :ref:`sphx_glr_examples_SALE_sale_efp.py` .. raw:: html
EFP concrete target
.. thumbnail-parent-div-close .. raw:: html
Taylor bar impact ================= This example, inspired by the `https://lsdyna.ansys.com/bar-a/` example, shows how to use PyDyna to parameterize a LS-DYNA problem and compare results. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/Taylor_Bar/images/thumb/sphx_glr_plot_taylor_bar_thumb.png :alt: :ref:`sphx_glr_examples_Taylor_Bar_plot_taylor_bar.py` .. raw:: html
Taylor bar example
.. thumbnail-parent-div-close .. raw:: html
Thermal examples ~~~~~~~~~~~~~~~~ These examples show how to create and use thermal models. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/Thermal/images/thumb/sphx_glr_thermal_stress_thumb.png :alt: :ref:`sphx_glr_examples_Thermal_thermal_stress.py` .. raw:: html
Thermal stress example
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /examples/Airbag/index.rst /examples/Buckling_Beer_Can/index.rst /examples/EM/index.rst /examples/Explicit/index.rst /examples/ICFD/index.rst /examples/ISPH/index.rst /examples/Implicit/index.rst /examples/John_Reid_Pendulum/index.rst /examples/John_Reid_Pipe/index.rst /examples/NVH/index.rst /examples/SALE/index.rst /examples/Taylor_Bar/index.rst /examples/Thermal/index.rst .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_