https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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}
registerMooseObject("PhaseFieldApp", ADACInterfaceKobayashi2)
Kernel 2 of 2 for interfacial energy anisotropy in the Allen-Cahn equation as implemented in R.
static InputParameters validParams()
ADRealGradient precomputeQpResidual() override
const ADMaterialProperty< Real > & _eps
Interfacial parameter.
const ADMaterialProperty< Real > & _mob
Mobility.
ADACInterfaceKobayashi2(const InputParameters &parameters)
static InputParameters validParams()
const ADTemplateVariableGradient< T > & _grad_u
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp