Commit 7e93a5b6 authored by Antoine Jacquey's avatar Antoine Jacquey

Fixed bug when no friction angle is specified.

parent 218798b3
...@@ -206,6 +206,8 @@ LynxDamageDeformation::damageCorrection() ...@@ -206,6 +206,8 @@ LynxDamageDeformation::damageCorrection()
RankFourTensor RankFourTensor
LynxDamageDeformation::damageTangentOperator(const RankFourTensor & tme) LynxDamageDeformation::damageTangentOperator(const RankFourTensor & tme)
{ {
if (_has_plasticity && (_G[_qp] != 0.0) && (_K[_qp] != 0.0))
{
// Build damage correction to the elasticity tensor // Build damage correction to the elasticity tensor
Real xi = strainRatio(_elastic_strain[_qp]); Real xi = strainRatio(_elastic_strain[_qp]);
RankTwoTensor e = (_elastic_strain[_qp].L2norm() != 0.0) RankTwoTensor e = (_elastic_strain[_qp].L2norm() != 0.0)
...@@ -223,6 +225,9 @@ LynxDamageDeformation::damageTangentOperator(const RankFourTensor & tme) ...@@ -223,6 +225,9 @@ LynxDamageDeformation::damageTangentOperator(const RankFourTensor & tme)
damage_operator -= _dstress_ddamage[_qp].outerProduct(_ddamage_rate_dstrain[_qp]) * _dt; damage_operator -= _dstress_ddamage[_qp].outerProduct(_ddamage_rate_dstrain[_qp]) * _dt;
return damage_operator; return damage_operator;
}
else
return RankFourTensor();
} }
Real Real
......
...@@ -342,6 +342,7 @@ LynxDeformationBase::computeQpDeformation() ...@@ -342,6 +342,7 @@ LynxDeformationBase::computeQpDeformation()
reformStressTensor(pressure, stress_dev); reformStressTensor(pressure, stress_dev);
// Additional correction // Additional correction
if (_has_plasticity && (_G[_qp] != 0.0) && (_K[_qp] != 0.0))
damageCorrection(); damageCorrection();
// Update tangent operator modulus // Update tangent operator modulus
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment