Title: Wrong offset in 'element_beam_node_indexes' · Issue #91 · open-lasso-python/lasso-python · GitHub
Open Graph Title: Wrong offset in 'element_beam_node_indexes' · Issue #91 · open-lasso-python/lasso-python
X Title: Wrong offset in 'element_beam_node_indexes' · Issue #91 · open-lasso-python/lasso-python
Description: Accoring to the LS-DYNA® Database Binary Output Files Manual, Section GEOMETRY DATA (Page 18) the Array IX2(6,1) contains Connectivity, orientation node, two null entries, and the material number for each 2 node beam element. For some be...
Open Graph Description: Accoring to the LS-DYNA® Database Binary Output Files Manual, Section GEOMETRY DATA (Page 18) the Array IX2(6,1) contains Connectivity, orientation node, two null entries, and the material number f...
X Description: Accoring to the LS-DYNA® Database Binary Output Files Manual, Section GEOMETRY DATA (Page 18) the Array IX2(6,1) contains Connectivity, orientation node, two null entries, and the material number f...
Opengraph URL: https://github.com/open-lasso-python/lasso-python/issues/91
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong offset in 'element_beam_node_indexes'","articleBody":"\nAccoring to the [LS-DYNA® Database Binary Output Files](https://ftp.lstc.com/anonymous/outgoing/lsprepost/d3plot_database_manual/ls-dyna_database_Apr2020.pdf) Manual, Section `GEOMETRY DATA` (Page 18) the Array `IX2(6,1)` contains\n\n\u003e Connectivity, orientation node, two null entries, and the material number for each 2 node beam element.\n\u003e For some beam types the last two number contain the beam type and length to width ratio * 100 and length to height ratio * 100\n\u003e type = ix2(5,\\*) \u0026 0x3F\n\u003e width = 0.01 * length / (ix2(5,\\*)\u003e\u003e6\n\u003e height = 0.01 * length / ix2(6,\\*)\n\u003e Third node (orientation) may be \u003e 1e9 Contain flag 1e9 to indicate a spot weld\n\nMy interpretation of this is the array layout is this:\n\n- [N1, N2, N3, 0, 0, MAT_ID] for 2-Node-Beams\n- [N1, N2, N3, LW_RATIO_TYPE, LH_RATIO, MAT_ID] for some other Beams\n\nIn [Line 2426](https://github.com/open-lasso-python/lasso-python/blob/a9607eff8d397913a8834358e6450a5febcec8d8/src/lasso/dyna/d3plot.py#L2426) you subtract the FORTRAN_OFFSET (1) from all values of the array, but this is not correct. The offset should only be applied for N1, N2, N3 and must not be applied for LW_RATIO_TYPE, LH_RATIO. Otherwise the extraction of these values does not work (without having to add 1 again).\n\n```python\n# element_beam_node_indexes = d3plot.arrays[ArrayType.element_beam_node_indexes]\nbeam_type = element_beam_node_indexes[3] \u0026 0x3F\nbeam_width = 100 * L / (element_beam_node_indexes[3] \u003e\u003e 6)\nbeam_height = 100 * L / element_beam_node_indexes[4]\n```\n\nOne could also think of adding a new array with these values \n\n- `element_beam_node_indexes` containing `N1`, `N2`, `N3` and `TYPE` (all `integer` values)\n- `element_beam_dimensions` containing `WIDTH` and `HEIGHT` (all `float` values) \n\nIn [Line 2424](https://github.com/open-lasso-python/lasso-python/blob/a9607eff8d397913a8834358e6450a5febcec8d8/src/lasso/dyna/d3plot.py#L2424) you add the MAT_ID to the PART_ID (Array `element_beam_part_indexes`). Is this correct?\n\nKind regards\nFlorian","author":{"url":"https://github.com/FlorianFritz","@type":"Person","name":"FlorianFritz"},"datePublished":"2025-09-13T08:15:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/91/lasso-python/issues/91"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:44d9eba3-3a8b-c5aa-d749-089e6704b121 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCE0:D25A0:65ACCC:88F319:698E3642 |
| html-safe-nonce | 46131663dc1138c19b570ad8abc0cab58e6eaaf04a992f784fc2f6ff374132f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0UwOkQyNUEwOjY1QUNDQzo4OEYzMTk6Njk4RTM2NDIiLCJ2aXNpdG9yX2lkIjoiMTg5NzE3MzM5Mzg0NjcxMTg3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6834d9070c7912a365e1c984b18de72cc68882f58968d1e3132437e8beb169b4 |
| hovercard-subject-tag | issue:3412866746 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/open-lasso-python/lasso-python/91/issue_layout |
| twitter:image | https://opengraph.githubassets.com/375c91307262268acda8e66ae586737f247dc5923f1c1abc7f51de1e70565f81/open-lasso-python/lasso-python/issues/91 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/375c91307262268acda8e66ae586737f247dc5923f1c1abc7f51de1e70565f81/open-lasso-python/lasso-python/issues/91 |
| og:image:alt | Accoring to the LS-DYNA® Database Binary Output Files Manual, Section GEOMETRY DATA (Page 18) the Array IX2(6,1) contains Connectivity, orientation node, two null entries, and the material number f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FlorianFritz |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 |
| turbo-cache-control | no-preview |
| go-import | github.com/open-lasso-python/lasso-python git https://github.com/open-lasso-python/lasso-python.git |
| octolytics-dimension-user_id | 114169132 |
| octolytics-dimension-user_login | open-lasso-python |
| octolytics-dimension-repository_id | 540129748 |
| octolytics-dimension-repository_nwo | open-lasso-python/lasso-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 540129748 |
| octolytics-dimension-repository_network_root_nwo | open-lasso-python/lasso-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | df1885ca022c7c5634d3a31e5a91e6a35990d0b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width