Skip to content

[GeoMechanicsApplication] Fixed a bug related to handling of conditions#11765

Merged
avdg81 merged 1 commit intomasterfrom
geo/fix-condition-handling
Nov 6, 2023
Merged

[GeoMechanicsApplication] Fixed a bug related to handling of conditions#11765
avdg81 merged 1 commit intomasterfrom
geo/fix-condition-handling

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 requested review from WPK4FEM and rfaasse November 3, 2023 14:08
@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
@avdg81 avdg81 force-pushed the geo/fix-condition-handling branch from d524a1a to 46d2e24 Compare November 3, 2023 20:05
@avdg81 avdg81 requested review from WPK4FEM and rfaasse November 3, 2023 20:06
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 force-pushed the geo/fix-condition-handling branch from 46d2e24 to b4d8b5b Compare November 5, 2023 13:32
@avdg81 avdg81 merged commit 633fe21 into master Nov 6, 2023
@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.

3 participants