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.

“””

Airbag examples#

These examples show how to create and use airbag models.

Airbag deploy

Airbag deploy

Airbag deploy postprocessing

Airbag deploy postprocessing

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

EM examples#

These examples show how to create and use electromagnetic models.

Resistive heating

Resistive heating

Resistive heating 2D

Resistive heating 2D

Resistive heating 2D connect isopotential

Resistive heating 2D connect isopotential

Resistive heating 2D multiple-connect isopotential

Resistive heating 2D multiple-connect isopotential

RLC circuit by function

RLC circuit by function

RLC circuit by isopotential

RLC circuit by isopotential

Explicit examples#

These examples show how to create and use explicit models.

Ball plate

Ball plate

Belted dummy

Belted dummy

ICFD examples#

These examples show how to create and use ICFD incompressible computational fluid dynamics) models.

Cylinder flow

Cylinder flow

Dam break

Dam break

DEM coupling

DEM coupling

Driven cavity

Driven cavity

Free convection flow

Free convection flow

Imposed move

Imposed move

Internal 3D flow

Internal 3D flow

Mesh adaptivity

Mesh adaptivity

Mesh morphing

Mesh morphing

Mesh size

Mesh size

Plate flow

Plate flow

Sloshing

Sloshing

Strong FSI

Strong FSI

Thermal flow

Thermal flow

Weak FSI

Weak FSI

ISPH examples#

These examples show how to create and use ISPH (incompressible smooth particle hydrodynamics) models.

Rigid test

Rigid test

Implicit examples#

These examples show how to create and use implicit models.

Implicit model

Implicit model

Pendulum#

This example is adapted from https://lsdyna.ansys.com/pendlum/ to run from Python.

John Reid pendulum example

John Reid pendulum example

Pipe#

This example is adapted from https://lsdyna.ansys.com/pipe-d51/ to run from Python.

John Reid pipe example

John Reid pipe example

NVH examples#

These examples show how to create and use NVH (noise, vibration, and harshness) models.

FRF for a rectangular plate

FRF for a rectangular plate

FRF for a colume model with a hole

FRF for a colume model with a hole

S-ALE examples#

These examples show how to create and use S-ALE (Structured ALE) models.

EFP concrete target

EFP concrete target

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.

Taylor bar example

Taylor bar example

Thermal examples#

These examples show how to create and use thermal models.

Thermal stress example

Thermal stress example

Gallery generated by Sphinx-Gallery