Permalink
Browse files

Merge pull request #12566 from dschwen/volumetric_locking_11261

Fix combination of volumetric_locking_correction and use_finite_deform_jacobian
  • Loading branch information...
bwspenc committed Dec 1, 2018
2 parents b4e8099 + dfbb1d7 commit c9068b4a341c5fa53a771dc8ab257bc9a40b8619
Showing with 12 additions and 14 deletions.
  1. +12 −14 modules/tensor_mechanics/src/kernels/StressDivergenceTensors.C
@@ -153,6 +153,12 @@ StressDivergenceTensors::computeQpResidual()
void
StressDivergenceTensors::computeJacobian()
{
if (_volumetric_locking_correction)
{
computeAverageGradientTest();
computeAverageGradientPhi();
}
if (_use_finite_deform_jacobian)
{
_finite_deform_Jacobian_mult.resize(_qrule->n_points());
@@ -163,19 +169,18 @@ StressDivergenceTensors::computeJacobian()
ALEKernel::computeJacobian();
}
else
{
if (_volumetric_locking_correction)
{
computeAverageGradientTest();
computeAverageGradientPhi();
}
Kernel::computeJacobian();
}
}
void
StressDivergenceTensors::computeOffDiagJacobian(MooseVariableFEBase & jvar)
{
if (_volumetric_locking_correction)
{
computeAverageGradientPhi();
computeAverageGradientTest();
}
if (_use_finite_deform_jacobian)
{
_finite_deform_Jacobian_mult.resize(_qrule->n_points());
@@ -186,14 +191,7 @@ StressDivergenceTensors::computeOffDiagJacobian(MooseVariableFEBase & jvar)
ALEKernel::computeOffDiagJacobian(jvar);
}
else
{
if (_volumetric_locking_correction)
{
computeAverageGradientPhi();
computeAverageGradientTest();
}
Kernel::computeOffDiagJacobian(jvar);
}
}
Real

0 comments on commit c9068b4

Please sign in to comment.