-
Notifications
You must be signed in to change notification settings - Fork 247
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
[GeoMechanicsApplication] Fixed a bug related to handling of conditions #11765
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WPK4FEM
previously approved these changes
Nov 3, 2023
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.
Tiny improvement is adding the forgotten unit in the README file
applications/GeoMechanicsApplication/tests/line_load_tests/line_loads_in_stages/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_settlement_workflow/test_model.mdpa
Show resolved
Hide resolved
WPK4FEM
previously approved these changes
Nov 3, 2023
rfaasse
previously approved these changes
Nov 3, 2023
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.
Clear PR, good find! Just two (non-blocking) comments.
applications/GeoMechanicsApplication/custom_workflows/write_output.cpp
Outdated
Show resolved
Hide resolved
avdg81
force-pushed
the
geo/fix-condition-handling
branch
from
November 3, 2023 20:05
d524a1a
to
46d2e24
Compare
We have found that conditions were only added to the computational model part, but never removed from it. In multi-stage analysis, that could result in adding inactive loads from previous stages. That has been corrected. Other changes include: - Added a simple regression test with two uniform line loads, where each one is active in its own stage. - Added a static method to Python class `GiDOutputFileReader`, which returns a list of nodal result values at the given time. Optionally, it filters its result given a sequence of node IDs. - Use `math.isclose` to test whether two given times are nearly equal rather than using `==`. - Removed some duplicated conditions that had been created by GiD. - Updated the expected results of the settlement work flow test. - Added a few nodal results that can be written by class `GeoOutputWriter`: reaction forces, normal contact stresses, and tangential contact stresses. - Files `write_output.{cpp,h}` have been renamed to `geo_output_writer.{cpp,h}`.
avdg81
force-pushed
the
geo/fix-condition-handling
branch
from
November 5, 2023 13:32
46d2e24
to
b4d8b5b
Compare
rfaasse
approved these changes
Nov 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
We have found that conditions were only added to the computational model part, but never removed from it. In multi-stage analysis, that could result in adding inactive loads from previous stages. That has been corrected.
🆕 Changelog
Other changes include:
GiDOutputFileReader
, which returns a list of nodal result values at the given time. Optionally, it filters its result given a sequence of node IDs.math.isclose
to test whether two given times are nearly equal rather than using==
.GeoOutputWriter
: reaction forces, normal contact stresses, and tangential contact stresses.