Skip to content

Commit

Permalink
Minor corrections to fix compilation issue ref idaholab#184
Browse files Browse the repository at this point in the history
  • Loading branch information
vprithiv committed Feb 23, 2023
1 parent 6521015 commit 6d3ee8c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/materials/ComputeMultipleInelasticDamageStress.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ComputeMultipleInelasticDamageStress : public ComputeMultipleInelasticStre
/// damage parameter for DamagePlasticityStressUpdate model
const MaterialProperty<Real> & _D;
const MaterialProperty<Real> & _D_old;
const MaterialProperty<Real> & _D_older;


virtual void computeQpJacobianMult() override;

Expand Down
3 changes: 1 addition & 2 deletions include/materials/DamagePlasticityStressUpdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ class DamagePlasticityStressUpdate : public MultiParameterPlasticityStressUpdate
/// Eigenvectors of the trial stress as a RankTwoTensor, in order to rotate the returned stress back to stress space
RankTwoTensor _eigvecs;

MaterialProperty<Real> & _max_principal;
MaterialProperty<Real> & _min_principal;

MaterialProperty<Real> & _intnl0;
MaterialProperty<Real> & _intnl1;
MaterialProperty<Real> & _ele_len;
Expand Down
5 changes: 3 additions & 2 deletions src/materials/ComputeMultipleInelasticDamageStress.C
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ ComputeMultipleInelasticDamageStress::validParams()
{
InputParameters params = ComputeMultipleInelasticStress::validParams();
params.addClassDescription("This ComputeMultipleInelasticStress is to be used with "
"DamagePlasticityStressUpdate") return params;
"DamagePlasticityStressUpdate");
return params;
}

ComputeMultipleInelasticDamageStress::ComputeMultipleInelasticDamageStress(
Expand Down Expand Up @@ -63,7 +64,7 @@ ComputeMultipleInelasticDamageStress::computeAdmissibleState(
inelastic_strain_increment,
_rotation_increment[_qp],
_stress[_qp],
_stress_old[_qp] / (1.0 - _D_older[_qp]),
_stress_old[_qp] / (1.0 - _D_old[_qp]),
// _stress_old[_qp] / (1.0 - _D[_qp]),
_elasticity_tensor[_qp],
_elastic_strain_old[_qp],
Expand Down
3 changes: 2 additions & 1 deletion src/materials/DamagePlasticityStressUpdate.C
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ DamagePlasticityStressUpdate::DamagePlasticityStressUpdate(const InputParameters
_ft0(0.5 * _ft /
((1. - _Dt) * std::pow((_zt - _sqrtPhit_max / _at), (1. - _dt_bt)) * _sqrtPhit_max)),
_fc0(_fc / ((1. - _Dc) * std::pow((_zc - _sqrtPhic_max / _ac), (1. - _dc_bc)) * _sqrtPhic_max)),
_small_smoother2(Utility::pow(getParam<Real>("tip_smoother"), 2)),
_small_smoother2(Utility::pow<2>(getParam<Real>("tip_smoother"))),


_sqrt3(std::sqrt(3.)),
_perfect_guess(getParam<bool>("perfect_guess")),
Expand Down

0 comments on commit 6d3ee8c

Please sign in to comment.