https://mooseframework.inl.gov
ADLaplacianSplit.C
Go to the documentation of this file.
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 
16 {
18  params.addClassDescription(
19  "Split with a variable that holds the Laplacian of a phase field variable.");
20  params.addRequiredCoupledVar("c", "Field variable to take the Laplacian of");
21  return params;
22 }
23 
25  : ADKernelGrad(parameters), _var_c(adCoupledValue("c")), _grad_c(adCoupledGradient("c"))
26 {
27 }
28 
31 {
32  return _grad_c[_qp]; // * _grad_test[_i][_qp]
33 }
Split with a variable that holds the Laplacian of the phase field.
virtual ADRealGradient precomputeQpResidual()
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
ADLaplacianSplit(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
const ADVariableGradient & _grad_c
static InputParameters validParams()
unsigned int _qp
registerMooseObject("PhaseFieldApp", ADLaplacianSplit)