René's URL Explorer Experiment


Title: Error when reading Discrete Element Models · Issue #90 · open-lasso-python/lasso-python · GitHub

Open Graph Title: Error when reading Discrete Element Models · Issue #90 · open-lasso-python/lasso-python

X Title: Error when reading Discrete Element Models · Issue #90 · open-lasso-python/lasso-python

Description: 🐛 Describe the bug When parsing a model that contains discrete elements (i.e. *DISCRETE_ELEMENT_SPHERE or any method to generate DEs), LASSO will generate an error with a message related to airbags, specifically: File "Y:\model_dir\venv\...

Open Graph Description: 🐛 Describe the bug When parsing a model that contains discrete elements (i.e. *DISCRETE_ELEMENT_SPHERE or any method to generate DEs), LASSO will generate an error with a message related to airbags...

X Description: 🐛 Describe the bug When parsing a model that contains discrete elements (i.e. *DISCRETE_ELEMENT_SPHERE or any method to generate DEs), LASSO will generate an error with a message related to airbags...

Opengraph URL: https://github.com/open-lasso-python/lasso-python/issues/90

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when reading Discrete Element Models","articleBody":"**🐛 Describe the bug**\nWhen parsing a model that contains discrete elements (i.e. *DISCRETE_ELEMENT_SPHERE or any method to generate DEs), LASSO will generate an error with a message related to airbags, specifically:\n\n```\n File \"Y:\\model_dir\\venv\\Lib\\site-packages\\lasso\\dyna\\d3plot.py\", line 2841, in _read_particle_geometry_data\n    raise RuntimeError(\"variable ngeom in the airbag header must be 4 or 5.\")\nRuntimeError: variable ngeom in the airbag header must be 4 or 5.\n```\n\n**🔢 To Reproduce**\n\n1. Attempt to parse any one of the attached sample files. \n[DEM_Test_Model.zip](https://github.com/user-attachments/files/22223252/DEM_Test_Model.zip)\n\n**Explaination**\nI dug into the codebase, and it looks like parsing for DEM was never added. The odd error comes from some, er, creative, database design on LSTC's part. LSTC uses the same control flag for airbag particles as DEM, mainly `NPEFG`. Only a single integer in a single place is the indicator for parsing airbag data or parsing DEM data. DEM formats are poorly documented in all versions of the database.\n\nThe big issue is that the DEM information is tacked onto the end of everything in the manua,l and there are no real indicators in the main body of the manual that one should look at the end of the manual for DEM. Further, the body of the manual was not updated to account for changes that would signal a switch to DEM. Specifically, for older solvers, having a 1 in the 7th spot of the `NPEFG` flag would indicate switching to DEM, but in newer versions, it could be 1 or 2, with different behaviour. \n\nThis has a knock-on effect when parsing, as the code continues parsing if the header is read incorrectly, which sets incorrect buffer lengths, which would impact reading other data. But you hit the error I documented above. \n\n**🖥️ Setup**\n - lasso-python version: development\n - OS: win11\n\n**Resolution**\nDEM parsing would need to be integrated. This would involve editing the header and geometry parsing for particle data, which impacts both airbags and DEM. And, given the poor documentation, this is likely an endeavour. If it makes folks feel better, even PrePost seems to struggle with handling DEM data. \n\nI ran into this error because a colleague had been struggling with a model that has some DEM in it, and we couldn't figure out the cause for a while. We are using DEM more than I expected in my group, so I may begin looking at writing some new code, but it would be a slow process. ","author":{"url":"https://github.com/DCHartlen","@type":"Person","name":"DCHartlen"},"datePublished":"2025-09-09T00:00:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/90/lasso-python/issues/90"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c9427354-7e4f-c1fe-9e8b-2335ec69c87b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8BDA:93913:65A6E:8C724:698E13DC
html-safe-nonce026a4ff1eba21e11add2659b72e9eaa1370c7367955608b94af43a60daaceb45
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkRBOjkzOTEzOjY1QTZFOjhDNzI0OjY5OEUxM0RDIiwidmlzaXRvcl9pZCI6IjcxODk4NDk2MjY5Mjg2MTY0MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac81002ce6aa8cb5bda87ce7f23475c0b3889a2df17c3cab36a7337a9722c67988
hovercard-subject-tagissue:3396083993
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/open-lasso-python/lasso-python/90/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3021d95edfa8838b8b627c9c26cbfb96bc66b49674001512506c003d91709ff9/open-lasso-python/lasso-python/issues/90
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3021d95edfa8838b8b627c9c26cbfb96bc66b49674001512506c003d91709ff9/open-lasso-python/lasso-python/issues/90
og:image:alt🐛 Describe the bug When parsing a model that contains discrete elements (i.e. *DISCRETE_ELEMENT_SPHERE or any method to generate DEs), LASSO will generate an error with a message related to airbags...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDCHartlen
hostnamegithub.com
expected-hostnamegithub.com
None52130a026bd9a3f98228b6aa6af91acdab5d18de411e2c1e67e6253493561296
turbo-cache-controlno-preview
go-importgithub.com/open-lasso-python/lasso-python git https://github.com/open-lasso-python/lasso-python.git
octolytics-dimension-user_id114169132
octolytics-dimension-user_loginopen-lasso-python
octolytics-dimension-repository_id540129748
octolytics-dimension-repository_nwoopen-lasso-python/lasso-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id540129748
octolytics-dimension-repository_network_root_nwoopen-lasso-python/lasso-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release301a1d7743177dcb7528b1322117cdafeda8ff08
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/issues/90#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopen-lasso-python%2Flasso-python%2Fissues%2F90
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopen-lasso-python%2Flasso-python%2Fissues%2F90
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=open-lasso-python%2Flasso-python
Reloadhttps://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/issues/90
Reloadhttps://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/issues/90
Reloadhttps://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/issues/90
open-lasso-python https://patch-diff.githubusercontent.com/open-lasso-python
lasso-pythonhttps://patch-diff.githubusercontent.com/open-lasso-python/lasso-python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fopen-lasso-python%2Flasso-python
Fork 25 https://patch-diff.githubusercontent.com/login?return_to=%2Fopen-lasso-python%2Flasso-python
Star 76 https://patch-diff.githubusercontent.com/login?return_to=%2Fopen-lasso-python%2Flasso-python
Code https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python
Issues 21 https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/issues
Pull requests 4 https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/pulls
Actions https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/actions
Projects 0 https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/projects
Security 0 https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/security
Insights https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/pulse
Code https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python
Issues https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/issues
Pull requests https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/pulls
Actions https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/actions
Projects https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/projects
Security https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/security
Insights https://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/open-lasso-python/lasso-python/issues/90
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/open-lasso-python/lasso-python/issues/90
Error when reading Discrete Element Modelshttps://patch-diff.githubusercontent.com/open-lasso-python/lasso-python/issues/90#top
bugSomething isn't workinghttps://github.com/open-lasso-python/lasso-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/DCHartlen
https://github.com/DCHartlen
DCHartlenhttps://github.com/DCHartlen
on Sep 9, 2025https://github.com/open-lasso-python/lasso-python/issues/90#issue-3396083993
DEM_Test_Model.ziphttps://github.com/user-attachments/files/22223252/DEM_Test_Model.zip
bugSomething isn't workinghttps://github.com/open-lasso-python/lasso-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.