18 InputParameters params = validParams<Material>();
19 params.addClassDescription(
"Calculate normal tensor of a phase based on gradient");
20 params.addRequiredCoupledVar(
"phase",
"Phase variable");
21 params.addRequiredParam<MaterialPropertyName>(
"normal_tensor_name",
"Name of normal tensor");
26 : DerivativeMaterialInterface<Material>(parameters),
27 _grad_u(coupledGradient(
"phase")),
29 declareProperty<
RankTwoTensor>(getParam<MaterialPropertyName>(
"normal_tensor_name")))
42 const Real magnitude =
_grad_u[_qp].norm();
46 RealVectorValue vector =
_grad_u[_qp] / magnitude;