Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://www.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 "ADLaplacianSplit.h" 11 : 12 : registerMooseObject("PhaseFieldApp", ADLaplacianSplit); 13 : 14 : InputParameters 15 669 : ADLaplacianSplit::validParams() 16 : { 17 669 : InputParameters params = ADKernelGrad::validParams(); 18 669 : params.addClassDescription( 19 : "Split with a variable that holds the Laplacian of a phase field variable."); 20 1338 : params.addRequiredCoupledVar("c", "Field variable to take the Laplacian of"); 21 669 : return params; 22 0 : } 23 : 24 360 : ADLaplacianSplit::ADLaplacianSplit(const InputParameters & parameters) 25 360 : : ADKernelGrad(parameters), _var_c(adCoupledValue("c")), _grad_c(adCoupledGradient("c")) 26 : { 27 360 : } 28 : 29 : ADRealGradient 30 38002508 : ADLaplacianSplit::precomputeQpResidual() 31 : { 32 38002508 : return _grad_c[_qp]; // * _grad_test[_i][_qp] 33 : }