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] Inlined member functions SetRetentionParameters #12374

Merged
merged 3 commits into from
May 15, 2024

Conversation

avdg81
Copy link
Contributor

@avdg81 avdg81 commented May 13, 2024

📝 Description
These member functions only set the fluid pressure (taken from the ElementVariables data structure) that is kept by the retention law parameters. This simple action does not need another level of indirection.

🆕 Changelog
Other changes include:

  • It was found that in one location the fluid pressure was calculated, but its result was not stored. Now it is.
  • Marked a few member functions [[nodiscard]], to trigger warnings when the returned result is discarded.
  • A few more member functions have been made const.

These member functions only set the fluid pressure (taken from the
`ElementVariables` data structure) that is kept by the retention law
parameters. This simple action does not need another level of
indirection.

Furthermore, it was found that in one location the fluid pressure was
calculated, but its result was not stored. Now it is.

Also marked a few member functions `[[nodiscard]]`, to trigger warnings
when the returned result is discarded.

Finally, a few more member functions have been made `const`.
@avdg81 avdg81 added Cleanup GeoMechanics Issues related to the GeoMechanicsApplication labels May 13, 2024
@avdg81 avdg81 requested review from rfaasse, WPK4FEM and markelov208 May 13, 2024 13:46
@avdg81 avdg81 self-assigned this May 13, 2024
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.

Anne, a small change but minus a function with unclear name. I included CalculateFluidPressure function content in transport_equation_utilities to calculate a permeability matrix. The content is the same for all elements, the input is slightly different. Would it be useful to place CalculateFluidPressure as a function in trasnport_equition_utilities? Thank you.

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.

This looks good! I don't know if there might be any conflicts with #12363

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.

Hi Anne,

This cuts one intermediate step from setting the integration point water pressure in the retention law parameters. That is o.k, it makes it more straightforward.

However, a desirable situation for me is the following. The parameters of the saturation law is the user material input. Water pressure is the independent variable that should be passed to the functions for computation of Saturation, Effective Saturation, Bishop coefficient etc. Somewhere in the retention laws, I read about interpolation polynomials. The interpolation polynomials should remain in the elements and not be anywhere in the retention laws.

So much for future wishes.
Regards,
Wijtze Pieter

@avdg81 avdg81 merged commit f21f537 into master May 15, 2024
11 checks passed
@avdg81 avdg81 deleted the geo/remove-SetRetentionParameters branch May 15, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup GeoMechanics Issues related to the GeoMechanicsApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants