https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
13
16{
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}
registerMooseObject("PhaseFieldApp", ADLaplacianSplit)
static InputParameters validParams()
Split with a variable that holds the Laplacian of the phase field.
virtual ADRealGradient precomputeQpResidual()
static InputParameters validParams()
ADLaplacianSplit(const InputParameters &parameters)
const ADVariableGradient & _grad_c
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp