-
Notifications
You must be signed in to change notification settings - Fork 40
Adding missing stress components #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: Luong Vu Nam <[email protected]>
Signed-off-by: Luong Vu Nam <[email protected]>
johannes-mueller
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General request: Please add unit tests to test the new behavior.
| # element_types = {el.type for el in instance.elements} | ||
| # unsupported_types = {et for et in element_types if et[0] != "C"} | ||
| # if unsupported_types: | ||
| # raise ValueError( | ||
| # "Only continuum elements (C...) are supported at this point, sorry. " | ||
| # "Please submit an issue to https://github.com/boschresearch/pylife/issues " | ||
| # "if you need to support other types. " | ||
| # "(Unsupported types %s found in instance %s)" % ( | ||
| # ", ".join(unsupported_types), instance_name | ||
| # )) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this code still needed? Do we really support all element types? We need to be sure about that. If yes we delete the code, not comment it.
| if stress_component not in response_values.columns: | ||
| response_values[stress_component] = 0.0 | ||
|
|
||
| return response_values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about other tensor variables like strain and force? Can we add those, too? Otherwise it would be like a half finished improvement.
Adding missing stress components in order to directly calculate Stress Criteria, such as Von Mises, Tresca...