Skip to content

LS-DYNA Binout Elout with Erosion #62

Open
@ricepatti

Description

@ricepatti

🐛 Describe the bug
When reading binout data using binout.py, a bug is encountered when the user is requesting ELOUT data with eroding elements. Typically, data is stored in a rectangular list, which is then converted using np.array to be returned to the user. However, when the ELOUT data contains eroded elements, the data is stored in a list of tuples that are not all the same length. This results in a "inhomogeneous shape" error when calling np.array(data) in binout.py.

🔢 To Reproduce
Steps to reproduce the behavior:

  1. I ran DYNA version R15 with Elout *DATABASE_HISTORY_BEAM_SET requested for both eroding and non eroding elements. The eroding elements are deleted during the analysis.
  2. Request binout.read(xxx,elout,beam,axial)
  3. Error occurs.

💘 Expected behavior
Elout data is returned as an array.

🖥️ Setup

  • lasso-python latest version as of 7/18/24
  • numpy version 2, latest release as of 7/18/24

ℹ️ Additional context
I feel like this was not a problem in the past, so maybe it's the numpy version or DYNA R15 changed how it stores the binout data. I was able to implement a workaround in binout.py by making a function which checks if the variable "data" is rectangular before calling np.array(data), and if it is not, padding it with zeros. I am not great with python so there is probably a better way to do this.

I am also sorry for the lack of details, this bug occurs on a computer with LS-DYNA that I cannot upload to Github from. If needed I can probably replicate the functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions