https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
registerMooseObject("PhaseFieldTestApp", ADDiffusionRate)
static InputParameters validParams()
const ADVariableGradient & _grad_u_dot
const Real & _mu
virtual ADRealVectorValue precomputeQpResidual() override
ADDiffusionRate(const InputParameters &parameters)
static InputParameters validParams()
unsigned int _qp