19 params.
addParam<MaterialPropertyName>(
"mob_name",
"L",
"The mobility used with the kernel");
20 params.
addParam<MaterialPropertyName>(
"kappa_name",
"kappa_op",
"The kappa used with the kernel");
21 params.
addCoupledVar(
"args",
"Vector of nonlinear variable arguments this object depends on");
26 "The mobility is a function of any MOOSE variable (if " 27 "this is set to false L must be constant over the " 34 _prop_L(getADMaterialProperty<
Real>(
"mob_name")),
35 _name_L(getParam<MaterialPropertyName>(
"mob_name")),
36 _kappa(getADMaterialProperty<
Real>(
"kappa_name")),
37 _variable_L(getParam<bool>(
"variable_L")),
39 ? &getADMaterialProperty<
Real>(derivativePropertyNameFirst(_name_L, _var.
name()))
41 _nvar(
Coupleable::_coupled_standard_moose_vars.size()),
47 for (
unsigned int i = 0; i <
_nvar; ++i)
50 const VariableName iname = ivar->
name();
56 "The kernel variable should not be specified in the coupled `args` parameter.");
60 "The kernel variable should not be specified in the coupled `coupled_variables` " 78 for (
unsigned int i = 0; i <
_nvar; ++i)
virtual bool isCoupled(const std::string &var_name, unsigned int i=0) const
const ADTemplateVariableTestGradient< T > & _grad_test
const unsigned int _nvar
number of coupled variables
const std::string & name() const override
registerMooseObject("PhaseFieldApp", ADACInterface)
const MaterialPropertyName derivativePropertyNameFirst(const MaterialPropertyName &base, const SymbolName &c1) const
const ADTemplateVariableTestValue< T > & _test
DualNumber< Real, DNDerivativeType, true > ADReal
std::vector< MooseVariable *> _coupled_standard_moose_vars
std::vector< const ADVariableGradient * > _gradarg
Gradients for all coupled variables.
Compute the Allen-Cahn interface term with the weak form residual .
static InputParameters validParams()
static InputParameters validParams()
void paramError(const std::string ¶m, Args... args) const
ADACInterface(const InputParameters ¶meters)
const ADMaterialProperty< Real > & _prop_L
Mobility.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ADTemplateVariableGradient< Real > & adGradSln() const override
const bool _variable_L
flag set if L is a function of non-linear variables in args
const ADTemplateVariableGradient< T > & _grad_u
const MaterialPropertyName & _name_L
Mobility property name.
MooseVariableFE< T > & _var
std::vector< const ADMaterialProperty< Real > * > _dLdarg
Mobility derivative w.r.t. other coupled variables.
const ADMaterialProperty< Real > & _kappa
Interfacial parameter.
virtual ADReal computeQpResidual()