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()
RankFourTensor
LynxDamageDeformation::damageTangentOperator(const RankFourTensor & tme)
{
if (_has_plasticity && (_G[_qp] != 0.0) && (_K[_qp] != 0.0))
{
// Build damage correction to the elasticity tensor
Real xi = strainRatio(_elastic_strain[_qp]);
RankTwoTensor e = (_elastic_strain[_qp].L2norm() != 0.0)
......@@ -223,6 +225,9 @@ LynxDamageDeformation::damageTangentOperator(const RankFourTensor & tme)
damage_operator -= _dstress_ddamage[_qp].outerProduct(_ddamage_rate_dstrain[_qp]) * _dt;
return damage_operator;
}
else
return RankFourTensor();
}
Real
......
......@@ -342,6 +342,7 @@ LynxDeformationBase::computeQpDeformation()
reformStressTensor(pressure, stress_dev);
// Additional correction
if (_has_plasticity && (_G[_qp] != 0.0) && (_K[_qp] != 0.0))
damageCorrection();
// 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