File tree Expand file tree Collapse file tree
applications/GeoMechanicsApplication/custom_utilities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,8 +207,14 @@ double ConstitutiveLawUtilities::GetUndrainedPoissonsRatio(const Properties& rPr
207207 << " Non-physical values: denominator < epsilon." << std::endl;
208208 result = (3.0 * poissons_ratio + biot_coefficient * skempton_b * (1.0 - 2.0 * poissons_ratio)) / denominator;
209209 }
210- constexpr auto max_value_poisson_ratio = 0.495 ;
211- return result < max_value_poisson_ratio ? result : max_value_poisson_ratio;
210+ constexpr auto max_poisson_ratio = 0.495 ;
211+ if (result > max_poisson_ratio) {
212+ KRATOS_WARNING (" Clamping undrained Poisson ratio from " )
213+ << result << " to " << max_poisson_ratio << " ." << std::endl;
214+ return max_poisson_ratio;
215+ }
216+
217+ return result;
212218}
213219
214220double ConstitutiveLawUtilities::GetSkemptonB (const Properties& rProperties)
You can’t perform that action at this time.
0 commit comments