20 params.
addCoupledVar(
"coupled_variables",
"Vector of variable arguments to prefactor");
21 params.
addParam<MaterialPropertyName>(
24 "Material property providing a prefactor of electric potential contribution");
30 _grad_elec_potential(coupledGradient(
"elec_potential")),
31 _elec_potential_var(coupled(
"elec_potential")),
32 _prefactor(getMaterialProperty<Real>(
"prefactor")),
33 _dprefactor_dphi(getMaterialPropertyDerivative<Real>(
"prefactor", _var.
name())),
34 _dprefactor_darg(_n_args)
36 for (
unsigned int i = 0; i < _n_args; ++i)
43 validateNonlinearCoupling<Real>(
"prefactor");
56 _phi[_j][_qp] * _test[_i][_qp];
62 const unsigned int cvar = mapJvarToCvar(jvar);
67 _phi[_j][_qp] * _test[_i][_qp];
70 _phi[_j][_qp] * _test[_i][_qp];
registerMooseObject("PhaseFieldApp", MatGradSquareCoupled)
static InputParameters validParams()
virtual Real computeQpJacobian()
const MaterialProperty< Real > & _prefactor
MatGradSquareCoupled(const InputParameters ¶meters)
const VariableGradient & _grad_elec_potential
std::vector< const MaterialProperty< Real > * > _dprefactor_darg
const unsigned int _elec_potential_var
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
virtual void initialSetup()
static InputParameters validParams()
const MaterialProperty< Real > & _dprefactor_dphi
virtual Real computeQpResidual()