https://mooseframework.inl.gov
ADDiffusionRate.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 
10 #include "ADDiffusionRate.h"
11 
12 registerMooseObject("PhaseFieldTestApp", ADDiffusionRate);
13 
16 {
17  auto params = ADKernelGrad::validParams();
18  params.addClassDescription("The Laplacian operator on the time derivative ($-\\nabla \\cdot "
19  "\\nabla \\dot{u}$), with the weak "
20  "form of $(\\nabla \\phi_i, \\nabla \\dot{u}_h)$.");
21 
22  params.addParam<Real>("mu", 1., "Viscosity on the Laplacian-rate");
23  return params;
24 }
25 
27  : ADKernelGrad(parameters), _grad_u_dot(_var.adGradSlnDot()), _mu(getParam<Real>("mu"))
28 {
29 }
30 
33 {
34  return _mu * _grad_u_dot[_qp];
35 }
const Real & _mu
static InputParameters validParams()
static InputParameters validParams()
registerMooseObject("PhaseFieldTestApp", ADDiffusionRate)
ADDiffusionRate(const InputParameters &parameters)
const ADVariableGradient & _grad_u_dot
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual ADRealVectorValue precomputeQpResidual() override
unsigned int _qp