18 params.
addClassDescription(
"Grain-Boundary model poly-crystalline interface Allen-Cahn Kernel");
23 :
ACGrGrBase(parameters), _gamma(getMaterialProperty<
Real>(
"gamma_asymm"))
36 std::vector<Real> other_ops(
_op_num);
37 for (
unsigned int i = 0; i <
_op_num; ++i)
38 other_ops[i] = (*
_vals[i])[_qp];
48 std::vector<Real> other_ops(
_op_num);
53 for (
unsigned int i = 0; i <
_op_num; ++i)
54 SumOPj += other_ops[i] * other_ops[i];
61 return _mu[_qp] * (op * op * op - op + 2.0 *
_gamma[_qp] * op * SumOPj);
66 return _mu[_qp] * (_phi[_j][_qp] * (3.0 * op * op - 1.0 + 2.0 *
_gamma[_qp] * SumOPj));
79 std::vector<Real> other_ops(
_op_num);
82 for (
unsigned int i = 0; i <
_op_num; ++i)
86 const Real dSumOPj = 2.0 * other_ops[i] * _phi[_j][_qp];
87 const Real dDFDOP =
_mu[_qp] * 2.0 *
_gamma[_qp] * op * dSumOPj;
89 return _L[_qp] * _test[_i][_qp] * dDFDOP;
This is the base class for kernels that calculate the residual for grain growth.
const unsigned int _op_num
This kernel calculates the residual for grain growth for a single phase, poly-crystal system...
const MaterialProperty< Real > & _L
Mobility.
void mooseError(Args &&... args)
virtual Real assignThisOp()
const std::vector< unsigned int > _vals_var
static InputParameters validParams()
const MaterialProperty< Real > & _mu
virtual Real computeDFDOP(PFFunctionType type)
static InputParameters validParams()
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
virtual std::vector< Real > assignOtherOps()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ACGrGrPoly(const InputParameters ¶meters)
const MaterialProperty< Real > & _gamma
const std::vector< const VariableValue * > _vals
registerMooseObject("PhaseFieldApp", ACGrGrPoly)