Skip to content

Commit

Permalink
Merge pull request #76 from hugary1995/initial_damage
Browse files Browse the repository at this point in the history
Promote initial conditions for damage to be stateful
  • Loading branch information
reverendbedford authored Nov 1, 2024
2 parents 5aa9f1b + 9df12f6 commit 7bd992b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/materials/GrainBoundaryCavitation.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ class GrainBoundaryCavitation : public CZMComputeLocalTractionTotalBase

/// @{ Initial conditions
const MaterialProperty<Real> & _a0;
const MaterialProperty<Real> & _a0_old;
const MaterialProperty<Real> & _b0;
const MaterialProperty<Real> & _b0_old;
/// @}

/// @{ Model parameters. See MooseDocs for their descriptions.
Expand Down
2 changes: 2 additions & 0 deletions src/materials/GrainBoundaryCavitation.C
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ GrainBoundaryCavitation::GrainBoundaryCavitation(const InputParameters & paramet
_D_old(getMaterialPropertyOldByName<Real>(_base_name + "damage")),
// initial conditions
_a0(getMaterialPropertyByName<Real>(_base_name + getParam<MaterialPropertyName>("a0"))),
_a0_old(getMaterialPropertyOldByName<Real>(_base_name + getParam<MaterialPropertyName>("a0"))),
_b0(getMaterialPropertyByName<Real>(_base_name + getParam<MaterialPropertyName>("b0"))),
_b0_old(getMaterialPropertyOldByName<Real>(_base_name + getParam<MaterialPropertyName>("b0"))),
// model parameters
_psi(getParam<Real>("psi") / 180 * M_PI),
_D_GB(getMaterialPropertyByName<Real>(_base_name + getParam<MaterialPropertyName>("D_GB"))),
Expand Down
Binary file modified tests/materials/czm/GBCavitation-new/gold/Tx_150_Ty_0.e
Binary file not shown.

0 comments on commit 7bd992b

Please sign in to comment.