Line data Source code
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 : 10 : #include "ADACInterfaceKobayashi2.h" 11 : 12 : registerMooseObject("PhaseFieldApp", ADACInterfaceKobayashi2); 13 : 14 : InputParameters 15 23 : ADACInterfaceKobayashi2::validParams() 16 : { 17 23 : InputParameters params = ADKernelGrad::validParams(); 18 23 : params.addClassDescription("Anisotropic Gradient energy Allen-Cahn Kernel Part 2"); 19 46 : params.addParam<MaterialPropertyName>("mob_name", "L", "The mobility used with the kernel"); 20 46 : params.addParam<MaterialPropertyName>("eps_name", "eps", "The anisotropic parameter"); 21 23 : return params; 22 0 : } 23 : 24 12 : ADACInterfaceKobayashi2::ADACInterfaceKobayashi2(const InputParameters & parameters) 25 : : ADKernelGrad(parameters), 26 12 : _mob(getADMaterialProperty<Real>("mob_name")), 27 36 : _eps(getADMaterialProperty<Real>("eps_name")) 28 : { 29 12 : } 30 : 31 : ADRealGradient 32 1667072 : ADACInterfaceKobayashi2::precomputeQpResidual() 33 : { 34 : // Set interfacial part of residual 35 1667072 : return _eps[_qp] * _eps[_qp] * _mob[_qp] * _grad_u[_qp]; 36 : }