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");
23 "The mobility is a function of any MOOSE variable (if " 24 "this is set to false L must be constant over the " 31 _L(getMaterialProperty<
Real>(
"mob_name")),
32 _kappa(getMaterialProperty<
Real>(
"kappa_name")),
33 _variable_L(getParam<bool>(
"variable_L")),
34 _dLdop(getMaterialPropertyDerivative<
Real>(
"mob_name", _var.
name())),
35 _d2Ldop2(getMaterialPropertyDerivative<
Real>(
"mob_name", _var.
name(), _var.
name())),
36 _dkappadop(getMaterialPropertyDerivative<
Real>(
"kappa_name", _var.
name())),
44 for (
unsigned int i = 0; i <
_n_args; ++i)
47 const VariableName iname = ivar->
name();
52 "The kernel variable should not be specified in the coupled `args` parameter.");
55 "The kernel variable should not be specified in the coupled `coupled_variables` " 59 _dLdarg[i] = &getMaterialPropertyDerivative<Real>(
"mob_name", i);
60 _dkappadarg[i] = &getMaterialPropertyDerivative<Real>(
"kappa_name", i);
67 _d2Ldarg2[i][
j] = &getMaterialPropertyDerivative<Real>(
"mob_name", i,
j);
74 validateCoupling<Real>(
"mob_name");
75 validateCoupling<Real>(
"kappa_name");
82 for (
unsigned int i = 0; i <
_n_args; ++i)
124 for (
unsigned int i = 0; i <
_n_args; ++i)
149 for (
unsigned int i = 0; i <
_n_args; ++i)
virtual bool isCoupled(const std::string &var_name, unsigned int i=0) const
const VariableGradient & _grad_u
static InputParameters validParams()
const FieldVariableGradient & gradSln() const override
registerMooseObject("PhaseFieldApp", ACInterface)
const VariablePhiGradient & _grad_phi
std::vector< const VariableGradient * > _gradarg
Gradients for all coupled variables.
virtual Real computeQpJacobian()
const std::string & name() const override
const MaterialProperty< Real > & _L
Mobility.
const bool _variable_L
flag set if L is a function of non-linear variables in args
RealGradient nablaLPsi()
the term
RealGradient kappaNablaLPsi()
the term
std::vector< MooseVariable *> _coupled_standard_moose_vars
ACInterface(const InputParameters ¶meters)
const MaterialProperty< Real > & _dLdop
Mobility derivatives w.r.t. order parameter.
std::vector< const MaterialProperty< Real > * > _d2Ldargdop
std::vector< const MaterialProperty< Real > * > _dkappadarg
kappa derivative w.r.t. other coupled variables
const VariableTestValue & _test
Compute the Allen-Cahn interface term with the weak form residual .
virtual void initialSetup()
static InputParameters validParams()
std::vector< const MaterialProperty< Real > * > _dLdarg
Mobility derivative w.r.t. other coupled variables.
void paramError(const std::string ¶m, Args... args) const
std::vector< std::vector< const MaterialProperty< Real > * > > _d2Ldarg2
unsigned int mapJvarToCvar(unsigned int jvar)
const MaterialProperty< Real > & _dkappadop
kappa derivative w.r.t. order parameter
const MaterialProperty< Real > & _kappa
Interfacial parameter.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableTestGradient & _grad_test
const MaterialProperty< Real > & _d2Ldop2
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
const unsigned int _n_args
virtual Real computeQpResidual()
const VariablePhiValue & _phi
virtual Real computeQpOffDiagJacobian(unsigned int jvar)