-
Notifications
You must be signed in to change notification settings - Fork 247
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] Simplified fluid flux for pw element #12338
[GeoMechanicsApplication] Simplified fluid flux for pw element #12338
Conversation
…s as an input list
This reverts commit 14f8280.
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 Richard,
The intent is clear to me.
Only some nagging about layout.
Wijtze Pieter
mRetentionLawVector[GPoint]->CalculateRelativePermeability(RetentionParameters); | ||
|
||
noalias(GradPressureTerm) = prod(trans(Variables.GradNpT), Variables.PressureVector); | ||
|
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.
lines 1124 and 1126 are constructing the contents of the same variable. This interspacing contradicts that.
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.
Removed blank line
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 improvement of the code. I have only one very minor comment. Let's try to get this in quickly, so you can proceed with the PR that started all this (extracting lists of
@@ -1112,6 +1091,48 @@ void UPwSmallStrainElement<TDim, TNumNodes>::InitializeBiotCoefficients(ElementV | |||
KRATOS_CATCH("") | |||
} | |||
|
|||
template <unsigned int TDim, unsigned int TNumNodes> | |||
std::vector<array_1d<double, TDim>> UPwSmallStrainElement<TDim, TNumNodes>::CalculateFluidFluxes( | |||
const std::vector<double>& permeability_update_factors, const ProcessInfo& rCurrentProcessInfo) |
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.
To be in line with the Kratos Style Guide, we should rename the first parameter:
const std::vector<double>& permeability_update_factors, const ProcessInfo& rCurrentProcessInfo) | |
const std::vector<double>& rPermeabilityUpdateFactors, const ProcessInfo& rCurrentProcessInfo) |
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.
Done
…d_fluid_flux_for_Pw_element
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.
Resize kijkt zelf wel naar de oorspronkelijke grootte, daar hoeft geen test voor en hoeft ook niet herhaald te worden met dezelfde grootte met een andere naam.
Dat kan best in een volgende ronde, want we zijn hier toch nog uitgebreid bezig.
📝 Description
We found that to calculate the fluid flux variable, the permeability update factor was calculated using strains, regardless of Pw vs UPw. Since strains are meaningless for Pw elements, this needed to be rectified. Therefore, a function is created to calculate fluid fluxes, which takes as an input a list of permeability update factors for the integration points (which are now always 1 for the Pw elements and calculated via the strain for UPw elements).