Skip to content
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
merged 1 commit into from
Nov 6, 2023

Conversation

avdg81
Copy link
Contributor

@avdg81 avdg81 commented Nov 3, 2023

📝 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:

  • 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.

@avdg81 avdg81 added the GeoMechanics Issues related to the GeoMechanicsApplication label Nov 3, 2023
@avdg81 avdg81 self-assigned this Nov 3, 2023
WPK4FEM
WPK4FEM previously approved these changes Nov 3, 2023
Copy link
Contributor

@WPK4FEM WPK4FEM left a 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

WPK4FEM
WPK4FEM previously approved these changes Nov 3, 2023
rfaasse
rfaasse previously approved these changes Nov 3, 2023
Copy link
Contributor

@rfaasse rfaasse left a 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.

@avdg81 avdg81 dismissed stale reviews from rfaasse and WPK4FEM via 46d2e24 November 3, 2023 20:05
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 avdg81 merged commit 633fe21 into master Nov 6, 2023
14 of 16 checks passed
@avdg81 avdg81 deleted the geo/fix-condition-handling branch November 6, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GeoMechanics Issues related to the GeoMechanicsApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants