20 "Stress in the plane of an interface defined by the gradient of an order parameter");
22 "Order parameters that define the interface. The interface is the region " 23 "where the gradient of this order parameter is non-zero.");
25 "Interfacial planar stress magnitude (one " 26 "value to apply to all order parameters or one value " 27 "per order parameter listed in 'v')");
32 "Range over which order parameters change across an " 33 "interface. By default order parameters are assumed to " 35 params.
addParam<MaterialPropertyName>(
"planar_stress_name",
37 "Material property name for the interfacial planar stress");
43 _nvar(coupledComponents(
"v")),
45 _op_range(getParam<
std::vector<
Real>>(
"op_range")),
46 _stress(getParam<
std::vector<
Real>>(
"stress")),
48 declareProperty<
RankTwoTensor>(getParam<MaterialPropertyName>(
"planar_stress_name")))
53 paramError(
"stress",
"Supply either one single stress or one per order parameter");
58 paramError(
"op_range",
"Supply either one single op_range or one per order parameter");
88 S(0, 0) += (ny * ny + nz * nz) * s;
89 S(0, 1) += -nx * ny * s;
90 S(1, 1) += (nx * nx + nz * nz) * s;
91 S(0, 2) += -nx * nz * s;
92 S(1, 2) += -ny * nz * s;
93 S(2, 2) += (nx * nx + ny * ny) * s;
registerMooseObject("SolidMechanicsApp", ComputeInterfaceStress)
static InputParameters validParams()
static constexpr Real TOLERANCE
std::vector< Real > _stress
ComputeInterfaceStress(const InputParameters ¶meters)
std::vector< Real > _op_range
ADRealEigenVector< T, D, asd > sqrt(const ADRealEigenVector< T, D, asd > &)
virtual const VariableGradient & coupledGradient(const std::string &var_name, unsigned int comp=0) const
virtual void computeQpProperties() override
MaterialProperty< RankTwoTensor > & _planar_stress
static InputParameters validParams()
static const std::string S
void paramError(const std::string ¶m, Args... args) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< const VariableGradient * > _grad_v
Calculates an Extra-Stress tensor that lies in the plane of an interface defined by the gradient of a...