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] Add the missing conditions to Geomechanics Application for 2D #11625

Merged
merged 31 commits into from
Mar 15, 2024

Conversation

mnabideltares
Copy link
Contributor

@mnabideltares mnabideltares commented Sep 27, 2023

📝 Description
The conditions are not completely added to the GeoMechanics Application. For example, PwCondition is defined on 2 noded element (in 2D) but it is not extended to 3 noded element. There are also missing higher order condition elements in 3D.
Here we fix the 2D conditions. The 3D conditions will be done in a seperate issue in order to keep this commit managable

🆕 Changelog

  • Added missing 2D conditions
  • Modified the functions to make them generic for n-th order line elements/conditions
  • Cleaned up some parts

** Acceptance

  • All existing test cases have to pass

@mnabideltares mnabideltares self-assigned this Sep 27, 2023
@mnabideltares mnabideltares added GeoMechanics Issues related to the GeoMechanicsApplication Feature labels Sep 27, 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.

Codewise this is quite an improvement, the formulas have been written down using vector multiplications i.s.o. writing down component multiplication and summation.

However, new conditions have been added without adding tests for the new conditions. These have to be made.

Further, run clang format on the changed code.

@mnabideltares mnabideltares requested review from WPK4FEM and avdg81 and removed request for mcgicjn2, avdg81, rfaasse, indigocoral and WPK4FEM March 11, 2024 13:01
Copy link
Contributor

@markelov208 markelov208 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mohamed, just a small comment on READMe file but it is not blocking.

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.

Thank you Mohamed and Gennady for all improvements.
Some small things left.

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.

Thank you for your hard work in incorporating these changes @mnabideltares and @markelov208! This PR improves the code quality a lot!

There are a couple of minor suggestions and questions left from my side and there is a (very minor) merge conflict with master that still needs to be fixed (it's about added includes that should just both be included), but I think we're quite close now to getting this done!

@@ -80,7 +81,8 @@ def AssembleTestSuites():
KratosGeoMechanicsChangingWaterLevelTests,
KratosGeoMechanicsStrainMeasureTests,
KratosGeoMechanicsSetMultipleMovingLoadProcessTests,
KratosGeoMechanicsRotationWithMovingLoadTests
KratosGeoMechanicsRotationWithMovingLoadTests,
KratosGeoMechanicsConditionTests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, how close we already are to the limit, do you know @avdg81?

@rfaasse rfaasse marked this pull request as ready for review March 15, 2024 13:33
@WPK4FEM WPK4FEM self-requested a review March 15, 2024 13:34
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.

My stack of remarks has been processed.

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.

Thank you for your hard work, looks good to me!

@mnabideltares mnabideltares merged commit a82f1b0 into master Mar 15, 2024
15 of 16 checks passed
@mnabideltares mnabideltares deleted the geo/11616-add-missing-conditions-2d branch March 15, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature GeoMechanics Issues related to the GeoMechanicsApplication
Development

Successfully merging this pull request may close these issues.

[GeoMechanicsApplication] Add the missing conditions to Geomechanics Application for 2D
5 participants