https://mooseframework.inl.gov
ADACInterfaceKobayashi2.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
16 {
18  params.addClassDescription("Anisotropic Gradient energy Allen-Cahn Kernel Part 2");
19  params.addParam<MaterialPropertyName>("mob_name", "L", "The mobility used with the kernel");
20  params.addParam<MaterialPropertyName>("eps_name", "eps", "The anisotropic parameter");
21  return params;
22 }
23 
25  : ADKernelGrad(parameters),
26  _mob(getADMaterialProperty<Real>("mob_name")),
27  _eps(getADMaterialProperty<Real>("eps_name"))
28 {
29 }
30 
33 {
34  // Set interfacial part of residual
35  return _eps[_qp] * _eps[_qp] * _mob[_qp] * _grad_u[_qp];
36 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
registerMooseObject("PhaseFieldApp", ADACInterfaceKobayashi2)
static InputParameters validParams()
Kernel 2 of 2 for interfacial energy anisotropy in the Allen-Cahn equation as implemented in R...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ADRealGradient precomputeQpResidual() override
const ADTemplateVariableGradient< T > & _grad_u
const ADMaterialProperty< Real > & _mob
Mobility.
void addClassDescription(const std::string &doc_string)
const ADMaterialProperty< Real > & _eps
Interfacial parameter.
ADACInterfaceKobayashi2(const InputParameters &parameters)
unsigned int _qp