-
Notifications
You must be signed in to change notification settings - Fork 250
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
Fluid flux output computation similar to the one in CalculateRHS. #13159
base: master
Are you sure you want to change the base?
Conversation
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.
Hi Wijtze-Pieter, thank you for fixing the difference between calculation and output. I have a few non-blocking comments.
applications/GeoMechanicsApplication/custom_elements/U_Pw_small_strain_element.cpp
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/custom_elements/U_Pw_small_strain_element.cpp
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/custom_elements/U_Pw_small_strain_element.hpp
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/custom_elements/U_Pw_small_strain_element.cpp
Show resolved
Hide resolved
…de English error text, renamed variable to be consistent.
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.
Nice fix for a hard-to-catch subtle issue. I don't have any blocking comments, but if possible, I'd very much like it if we could add some unit tests to make sure we don't end up in a similar situation.
|
||
auto relative_permeability_values = this->CalculateRelativePermeabilityValues( | ||
GeoTransportEquationUtilities::CalculateFluidPressures(Variables.NContainer, Variables.PressureVector)); | ||
const auto fluid_pressures = GeoTransportEquationUtilities::CalculateFluidPressures( |
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.
Is it possible to unit-test this behavior?
auto relative_permeability_values = | ||
CalculateRelativePermeabilityValues(GeoTransportEquationUtilities::CalculateFluidPressures( | ||
Variables.NpContainer, Variables.PressureVector)); | ||
const auto fluid_pressures = GeoTransportEquationUtilities::CalculateFluidPressures( |
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.
Good catch, I fear this was introduced in the refactor efforts
📝 Description
The output item FLUID_FLUX_VECTOR did not take the Bishop coefficient for partial saturation into account. This has been corrected, such that now the flux computation is the same as when forming the RHS.