Skip to content

Commit

Permalink
Changed D_older to D_old ref idaholab#184
Browse files Browse the repository at this point in the history
  • Loading branch information
vprithiv committed Feb 14, 2023
1 parent 111c602 commit 4f587e9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/materials/ComputeMultipleInelasticDamageStress.C
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,15 @@ ComputeMultipleInelasticDamageStress::ComputeMultipleInelasticDamageStress(
const InputParameters & parameters)
: ComputeMultipleInelasticStress(parameters),
_D(getMaterialProperty<Real>("elemental_damage_variable")),
_D_old(getMaterialPropertyOld<Real>("elemental_damage_variable")),
_D_older(getMaterialPropertyOlder<Real>("elemental_damage_variable"))
_D_old(getMaterialPropertyOld<Real>("elemental_damage_variable"))
{
}

void
ComputeMultipleInelasticDamageStress::computeQpJacobianMult()
{
ComputeMultipleInelasticStress::computeQpJacobianMult();
_Jacobian_mult[_qp] = (1.0 - _D_older[_qp]) * _Jacobian_mult[_qp];
_Jacobian_mult[_qp] = (1.0 - _D_old[_qp]) * _Jacobian_mult[_qp];
// _Jacobian_mult[_qp] = (1.0 - _D[_qp]) * _Jacobian_mult[_qp];
}

Expand All @@ -49,7 +48,7 @@ ComputeMultipleInelasticDamageStress::updateQpStateSingleModel(
{
ComputeMultipleInelasticStress::updateQpStateSingleModel(
model_number, elastic_strain_increment, combined_inelastic_strain_increment);
_Jacobian_mult[_qp] = (1.0 - _D_older[_qp]) * _Jacobian_mult[_qp];
_Jacobian_mult[_qp] = (1.0 - _D_old[_qp]) * _Jacobian_mult[_qp];
}

void
Expand All @@ -69,5 +68,5 @@ ComputeMultipleInelasticDamageStress::computeAdmissibleState(
_elastic_strain_old[_qp],
_tangent_operator_type == TangentOperatorEnum::nonlinear,
consistent_tangent_operator);
_stress[_qp] *= (1.0 - _D_older[_qp]);
_stress[_qp] *= (1.0 - _D_old[_qp]);
}

0 comments on commit 4f587e9

Please sign in to comment.