21 params.
addParam<MaterialPropertyName>(
22 "h",
"h",
"Switching Function Material that provides h(eta)");
23 params.
addRequiredParam<std::string>(
"base_A",
"Base name for the Phase A strain.");
24 params.
addRequiredParam<std::string>(
"base_B",
"Base name for the Phase B strain.");
25 params.
addParam<std::string>(
"base_name",
"Base name for the computed global stress (optional).");
31 _h_eta(getMaterialProperty<
Real>(
"h")),
33 _base_A(getParam<
std::string>(
"base_A") +
"_"),
34 _stress_A(getMaterialPropertyByName<
RankTwoTensor>(_base_A +
"stress")),
35 _dstress_dstrain_A(getMaterialPropertyByName<
RankFourTensor>(_base_A +
"Jacobian_mult")),
37 _base_B(getParam<
std::string>(
"base_B") +
"_"),
38 _stress_B(getMaterialPropertyByName<
RankTwoTensor>(_base_B +
"stress")),
39 _dstress_dstrain_B(getMaterialPropertyByName<
RankFourTensor>(_base_B +
"Jacobian_mult")),
41 _base_name(isParamValid(
"base_name") ? getParam<
std::string>(
"base_name") +
"_" :
""),
42 _stress(declareProperty<
RankTwoTensor>(_base_name +
"stress")),
43 _dstress_dstrain(declareProperty<
RankFourTensor>(_base_name +
"Jacobian_mult")),
44 _global_extra_stress(getDefaultMaterialProperty<
RankTwoTensor>(
"extra_stress"))
registerMooseObject("SolidMechanicsApp", TwoPhaseStressMaterial)
const MaterialProperty< RankTwoTensor > & _global_extra_stress
Global extra stress tensor.
const MaterialProperty< RankTwoTensor > & _stress_A
Construct a global strain from the phase strains in a manner that is consistent with the construction...
MaterialProperty< RankTwoTensor > & _stress
const MaterialProperty< RankFourTensor > & _dstress_dstrain_B
static InputParameters validParams()
TwoPhaseStressMaterial(const InputParameters ¶meters)
MaterialProperty< RankFourTensor > & _dstress_dstrain
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const MaterialProperty< RankTwoTensor > & _stress_B
virtual void computeQpProperties()
const MaterialProperty< RankFourTensor > & _dstress_dstrain_A
const MaterialProperty< Real > & _h_eta