Skip to content

fix: support ELEMENT_SHELL_THICKNESS_OFFSET with conditional table cards - #1167

Open
RaphaelHeiniger wants to merge 3 commits into
mainfrom
fix_element_shell_thickness_offset
Open

fix: support ELEMENT_SHELL_THICKNESS_OFFSET with conditional table cards#1167
RaphaelHeiniger wants to merge 3 commits into
mainfrom
fix_element_shell_thickness_offset

Conversation

@RaphaelHeiniger

Copy link
Copy Markdown
Collaborator
  • Add manifest entry for ELEMENT_SHELL_THICKNESS_OFFSET using table-card-group with a conditional card for the optional N5-N8 midside node thickness values.

  • required a fix in table_card_group handler _dvidide_data_lines to correctly handle conditional cards.

- Add manifest entry for ELEMENT_SHELL_THICKNESS_OFFSET using table-card-group
with a conditional card for the optional N5-N8 midside node thickness values.

- required a fix in table_card_group handler _dvidide_data_lines to correctly handle conditional cards.
@RaphaelHeiniger RaphaelHeiniger added the testing Anything related to testing label Mar 11, 2026
@RaphaelHeiniger
RaphaelHeiniger requested a review from a team as a code owner March 11, 2026 16:07
@RaphaelHeiniger RaphaelHeiniger added fix Pull requests related to resolving problems or errors Keywords Anything related to keyword subpackage labels Mar 11, 2026
@RaphaelHeiniger

Copy link
Copy Markdown
Collaborator Author

@koubaa the fix in ELEMENT_SHELL_THICKNESS_OFFSET required usage of table_card_group in combination with conditional cards. It required changes in table_card_group to make the conditional card work. Please review this and let me know if there is another way to get to the same result without changing anything in table_card_group or if there is a cleaner solution to this.

@koubaa

koubaa commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

@RaphaelHeiniger please also include the manifest change

@koubaa

koubaa commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

@koubaa the fix in ELEMENT_SHELL_THICKNESS_OFFSET required usage of table_card_group in combination with conditional cards. It required changes in table_card_group to make the conditional card work. Please review this and let me know if there is another way to get to the same result without changing anything in table_card_group or if there is a cleaner solution to this.

CardSet already handles this but it's less user-friendly than TableCardGroup. I'm not confident in the implementation proposed here yet, but I'll think about this some more. I'm concerned about the parameter handling (reading a deck with parameters in this keyword and writing it with and without substitution) since I believe the sub-card index when reading is encoded into the address of the parameter.

Moreover, the condition as understood in the manual seems to be applied per set, not for the entire n5 column. That makes the ['n5'].any() condition seem incorrect.

@RaphaelHeiniger

RaphaelHeiniger commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator Author

@koubaa I pushed the manifest.json. I did not anticipate that a user mixes this format. Not sure if LS-DYNA would accept it but could be. So would you prefer to do it with CardSet?

@koubaa

koubaa commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

I think it is worth testing to see if ls-dyna accepts it. CardSet is preferable to the current implementation due to the doubts about correctness but I think table-card-set is generally preferable if it can be made to work because the api feels cleaner

@RaphaelHeiniger

Copy link
Copy Markdown
Collaborator Author

I can confirm that a mixed input like the one attached does work.
element_shell_thickness_offset.txt

@koubaa

koubaa commented Mar 13, 2026

Copy link
Copy Markdown
Collaborator

In that case I would prefer a card set since we know it will be correct. We can revisit it later once we have some more time to enhance the table card

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Pull requests related to resolving problems or errors Keywords Anything related to keyword subpackage testing Anything related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants